# Last edited on 2004-02-22 22:45:43 by stolfi LIBNAME = libppv HFILES := \ ppv_types.h \ ppv_array.h NON_HFILES := \ ppv_packing.h \ ppv_io.h \ ppv_convert.h CFILES := \ ppv_array.c NON_CFILES := \ ppv.c LIBFILE = \ ${LIBNAME}.a .PHONY: all clean uninstall install test # all: clean uninstall install all: uninstall install # all: test HOFILES := ${subst .h,.ho,${HFILES}} OFILES := ${subst .c,.o,${CFILES}} 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 # ====================================================================== INC = /home/staff/stolfi/PUB/include LIB = /home/staff/stolfi/PUB/${PLATFORM}/lib GCCFLAGS = \ -I. -I${INC} \ -g \ -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 ppv_types.ho: ppv_array.ho: ppv_types.ho ppv_array.o: ppv_array.ho