# Last edited on 2001-09-30 20:44:41 by stolfi # Determine major platform for C compilation IS_LINUX := $(findstring Linux,${PLATFORM}) IS_SUNIV := $(findstring SunOS-4,${PLATFORM}) IS_SUNV := $(findstring SunOS-5,${PLATFORM}) IS_OSFIV := $(findstring OSF1-V4,${PLATFORM}) PLATF := $(subst -,,${IS_LINUX}${IS_SUNIV}${IS_SUNV}${IS_OSFIV}) INC = /home/staff/stolfi/PUB/include LIB = /home/staff/stolfi/PUB/${PLATFORM}/lib PROG = testnow LIBS = \ ${LIB}/libjs.a .PHONY: all clean run all: clean run clean: -/bin/rm -f *.o *.ho *.a ${PROG} core run: ${PROG} time ${PROG} GCCFLAGS = \ -D${PLATF} \ -I${INC} \ -g \ -ansi \ -Wall -Wpointer-arith -Wmissing-prototypes \ ${PROG}: ${PROG}.c ${LIBS} ;\ rm -f ${PROG} && \ gcc ${GCCFLAGS} -o ${PROG} ${PROG}.c -L${LIB} ${LIBS} -lm # Dependencies of .c and .s files: testnow.o:: testnow.c ${INC}/js.ho