# Last edited on 2011-05-29 10:48:55 by stolfi INC = ${HOME}/PUB/include LIB = ${HOME}/PUB/${PLATFORM}/lib PROG := dg_testtents HFILES := \ dg_spline.h CFILES := \ dg_spline.c \ ${PROG}.c HOFILES := ${subst .h,.ho,${HFILES}} OFILES := ${subst .c,.o,${CFILES}} .PHONY: clean all run all: ${PROG} run clean: -/bin/rm -f *.o *.ho *.a core OTHERLIBS := \ ${LIB}/libjs.a \ ${LIB}/libdygrid.a \ ${LIB}/libps.a GCCFLAGS = \ -I. -I.. -I${INC} \ -g -ffloat-store -frounding-math \ -Wall -Wpointer-arith -Wmissing-prototypes dg%.o: dg%.c ${INC}/js.ho ${INC}/vec.ho ;\ gcc -c ${GCCFLAGS} dg$*.c dg%.ho: dg%.h ${INC}/js.ho ${INC}/vec.ho ;\ gcc -o dg$*.ho -c ${GCCFLAGS} -x c dg$*.h \ || /bin/rm -f dg$*.ho DATA := data.inp PSVIEW := okular ${PROG}: ${MAINC} ${HOFILES} ${OFILES} ${DATA} ;\ gcc -o ${PROG} ${GCCFLAGS} ${OFILES} -lm ${OTHERLIBS}; \ ${PROG} < ${DATA} ;\ ${PSVIEW} gridplot.eps # Dependencies of .h files: dg_spline.ho: dg_spline.h ${INC}/dg_tree.ho # Dependencies of .c files: dg_spline.o: dg_spline.c dg_spline.ho ${INC}/dg_tree.ho dg_testtents.o: dg_testtents.c dg_spline.ho