# # $Id$ # .SUFFIXES: .cpp CC=gcc CPPFLAGS=-Wall -O3 LDFLAGS= LIBS=-lstdc++ OBJFILES1=tools.o xy.o tri.o parameter.o file.o shape.o quadtree.o qhull.o OBJFILES2=test_profil.o test_tools.o test_xy.o test_tri.o test_file.o test_nodes.o test_quadtree.o test_qhull.o all: ../bin/test.exe ../bin/wsplgen.exe ../bin/test.exe: test.o $(OBJFILES1) $(OBJFILES2) $(CC) $(LDFLAGS) -o ../bin/test.exe test.o $(OBJFILES1) $(OBJFILES2) $(LIBS) ../bin/wsplgen.exe: wsplgen.o $(OBJFILES1) $(CC) $(LDFLAGS) -o ../bin/wsplgen.exe wsplgen.o $(OBJFILES1) $(LIBS) %.o: %.cpp %.h Makefile $(CC) -c $(CPPFLAGS) $*.cpp %.o: %.cpp Makefile $(CC) -c $(CPPFLAGS) $*.cpp clean: rm -f *.o dist-clean: rm -f ../bin/*.exe ../bin/test.txt ../bin/test_results/test.txt *.o