CFLAGS=-O3 -ffast-math -funroll-loops -static # -msse -march=athlon CC=gcc all: test_nn test_avg test_era knn bin cover_tree.o: cover_tree.cc cover_tree.h $(CC) -c -Wall $(CFLAGS) cover_tree.cc point.o: point.cc point.h $(CC) -c -Wall $(CFLAGS) point.cc test_nn: point.o cover_tree.o stack.h point.h test_nn.cc $(CC) -Wall $(CFLAGS) -o test_nn test_nn.cc cover_tree.o point.o test_avg: point.o cover_tree.o stack.h point.h test_avg.cc $(CC) -Wall $(CFLAGS) -o test_avg test_avg.cc cover_tree.o point.o test_era: point.o cover_tree.o stack.h point.h test_era.cc $(CC) -Wall $(CFLAGS) -o test_era test_era.cc cover_tree.o point.o knn: point.o cover_tree.o stack.h point.h test_nn.cc $(CC) -Wall $(CFLAGS) -o knn knn.cc cover_tree.o point.o bin: cp arff2data ~/bin/wisp/ cp checkresults ~/bin/wisp/ cp nntest ~/bin/wisp/ cp test_era ~/bin/wisp/ clean: rm *.o