# Installation directories: INSTALLDIR = INSTALLDIR_IS_UNDEFINED EXPORTDIR = EXPORTDIR_IS_UNDEFINED INC = $(INSTALLDIR)/include LIB = $(INSTALLDIR)/$(PLATFORM)/lib HFILES = HOFILES = OFILES = PROG = \ deltest MAINOBJ = \ $(PROG).o LIBS = \ $(LIB)/libdelaunay.a \ $(LIB)/libquad.a \ $(LIB)/libps.a \ $(LIB)/libjs.a GCCFLAGS = \ -I$(INC) \ -g \ -ansi \ -Wall -Wtraditional -Wpointer-arith -Wmissing-prototypes \ -mfpu all: $(HOFILES) $(PROG) cleanup: ;\ rm -f *.o *.a *.ho $(PROG) %.o: %.c ;\ gcc -c $(GCCFLAGS) $*.c %.ho: %.h ;\ gcc -o $*.ho -c $(GCCFLAGS) -x c $*.h \ || /bin/rm -f $*.ho $(PROG): $(OFILES) $(MAINOBJ) $(LIBS) ;\ gcc -o $(PROG) $(MAINOBJ) $(OFILES) $(LIBS) -lm &&\ $(PROG) install: # Dependencies of .h files: # Dependencies for .c files: deltest.o:: deltest.c $(INC)/delaunay.ho $(INC)/quad.ho \ $(INC)/js.ho $(INC)/ps.ho