CC = gcc CPP = g++ CFLAGS = -Wall -pipe -O3 -fstrength-reduce -fomit-frame-pointer -Wstrict-prototypes CPPFLAGS = ${CFLAGS} LIBS = -lm LIB_DIR = -L/usr/lib INC_DIR = -I/usr/include TEX = latex TEX_OPT_1 = --file-line-error-style TEX_OPT_2 = ${TEX_OPT_1} DVIPS = dvips DVIPS_OPT = DVIPDF = dvipdf DVIPDF_OPT = ### programs ### all: main.o \ perfcube.o \ perfrect.o \ Makefile ${CPP} ${CFLAGS} ${LIBS} ${LIB_DIR} -o gen_perf_cube main.o perfcube.o perfrect.o main.o: main.cpp \ perfcube.h \ perfrect.h \ Makefile ${CPP} ${CPPFLAGS} ${INC_DIR} -c -o main.o main.cpp perfcube.o: perfcube.h \ perfcube.cpp \ perfrect.h \ Makefile ${CPP} ${CPPFLAGS} ${INC_DIR} -c -o perfcube.o perfcube.cpp perfrect.o: perfrect.h \ perfrect.cpp \ Makefile ${CPP} ${CPPFLAGS} ${INC_DIR} -c -o perfrect.o perfrect.cpp install: ### documentation ### doc: ps \ pdf \ Makefile ps: docs/tokeletes_kocka.ps \ Makefile pdf: docs/tokeletes_kocka.pdf \ Makefile ### hungarian documentation ### docs/tokeletes_kocka.ps: docs/tokeletes_kocka.dvi \ Makefile cd docs && \ ${DVIPS} ${DVIPS_OPT} tokeletes_kocka.dvi && \ cd .. docs/tokeletes_kocka.pdf: docs/tokeletes_kocka.dvi \ Makefile cd docs && \ ${DVIPDF} ${DVIPDF_OPT} tokeletes_kocka.dvi && \ cd .. docs/tokeletes_kocka.dvi: docs/tokeletes_kocka.tex \ docs/teglatest.tex \ docs/kocka.tex \ docs/teszt.tex \ docs/teglatest.eps \ Makefile cd docs && \ ${TEX} ${TEX_OPT_1} tokeletes_kocka.tex && \ ${TEX} ${TEX_OPT_2} tokeletes_kocka.tex && \ cd .. docs/teglatest.eps: docs/teglatest.fig \ Makefile cd docs && \ fig2dev -L eps teglatest.fig teglatest_temp.eps && \ epsffit -c 0 0 225 275 teglatest_temp.eps teglatest.eps && \ cd .. ### cleaning ### clean: rm -f gen_perf_cube && \ rm -f main.o && \ rm -f perfcube.o && \ rm -f perfrect.o && \ cd docs && \ rm -f tokeletes_kocka.ps && \ rm -f tokeletes_kocka.pdf && \ rm -f tokeletes_kocka.dvi && \ rm -f tokeletes_kocka.toc && \ rm -f tokeletes_kocka.log && \ rm -f tokeletes_kocka.aux && \ rm -f missfont.log && \ rm -f teglatest.eps && \ rm -f teglatest_temp.eps && \ cd ..