# Last edited on 2003-01-14 15:44:49 by stolfi LIBNAME = libquad INC = /home/staff/stolfi/PUB/include LIB = /home/staff/stolfi/PUB/${PLATFORM}/lib HFILES = \ quad.h HOFILES = \ quad.ho OFILES = \ quad.o LIBFILE = \ ${LIBNAME}.a .PHONY: all clean uninstall install test all: clean uninstall install # all: test uninstall: cd ${INC} && /bin/rm -f ${HFILES} ${HOFILES} cd ${LIB} && /bin/rm -f ${LIBFILE} install: ${HOFILES} ${LIBFILE} cp -p ${HFILES} ${INC} cp ${HOFILES} ${INC} cp -p ${LIBFILE} ${LIB} test: cd tests && make all clean: -/bin/rm -f *.o *.ho *.a core cd tests && make clean GCCFLAGS = \ -I. -I${INC} \ -g \ -ansi \ -Wall -Wpointer-arith -Wmissing-prototypes %.o: %.c ;\ gcc -c ${GCCFLAGS} $*.c %.ho: %.h ;\ gcc -o $*.ho -c ${GCCFLAGS} -x c $*.h \ || /bin/rm -f $*.ho ${LIBFILE}: ${OFILES} ;\ rm -f $*.a && ar crv $*.a ${OFILES} && ranlib $*.a # Dependencies of .h files: quad.ho:: quad.h # Dependencies for .c files: quad.o:: quad.c quad.ho