# Last edited on 2003-09-25 10:52:36 by stolfi INC = /home/staff/stolfi/PUB/include LIB = /home/staff/stolfi/PUB/${PLATFORM}/lib HFILES = \ psplot_def.h \ psplot_protos.h \ psplot.h \ pswrite.h HOFILES = \ psplot_def.ho \ psplot_protos.ho \ psplot.ho \ pswrite.ho OFILES = \ psplot.o \ pswrite.o LIBFILE = \ libpsplot.a GCCFLAGS = \ -I. -I${INC} \ -g \ -ansi \ -Wall -Wpointer-arith -Wmissing-prototypes all: cleanup ${HOFILES} ${LIBFILE} install cleanup: ;\ ( cd ${INC} && rm -f ${HFILES} ${HOFILES} ) ;\ ( cd ${LIB} && rm -f ${LIBFILE} ) test: cd tests && ${MAKE} all install: cp -p ${HFILES} ${INC} cp ${HOFILES} ${INC} cp -p ${LIBFILE} ${LIB} %.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: psplot_def.ho:: psplot_def.h psplot.ho:: psplot.h psplot_def.ho psplot_protos.ho:: psplot_protos.h psplot_def.ho psplot.ho pswrite.ho:: pswrite.h # Dependencies for .c files: psplot.o:: psplot.c \ psplot.ho psplot_def.ho psplot_protos.ho pswrite.ho \ ${INC}/js.ho ${INC}/ioprotos.ho