# Last edited on 2002-11-08 03:47:21 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 = flttests LIBS = \ ${LIB}/libflt.a \ ${LIB}/libjs.a .PHONY: all clean run all: clean run clean: -/bin/rm -f *.o *.ho ${PROG} run: ${PROG} ${PROG} GCCFLAGS = \ -D${PLATF} \ -I${INC} \ -g \ -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: flttests.o:: flttests.c ${INC}/js.ho ${INC}/ioprotos.ho ${INC}/flt.ho