summaryrefslogtreecommitdiff
blob: 189e6936e457dce9c339eb3d5fff623d0bbe0677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/examples/Makefile.orig	2012-01-24 05:31:40.000000000 +0000
+++ b/examples/Makefile	2012-05-08 19:00:08.000000000 +0100
@@ -1,7 +1,6 @@
 # This makefile is on purpose not made with configure, to show how to use the library
 # The make file requires that the fann library is installed (see ../README)
 
-GCC=gcc
 
 TARGETS = xor_train xor_test xor_test_fixed simple_train steepness_train simple_test robot mushroom cascade_train scaling_test scaling_train
 DEBUG_TARGETS = xor_train_debug xor_test_debug xor_test_fixed_debug cascade_train_debug
@@ -9,10 +8,10 @@
 all: $(TARGETS)
 
 %: %.c Makefile
-	$(GCC) -O3 $< -o $@ -lfann -lm
+	$(CC) $(CFLAGS) $< -lfann -lm -o $@
 
 %_fixed: %.c Makefile
-	$(GCC) -O3 -DFIXEDFANN $< -o $@ -lfixedfann -lm
+	$(CC) $(CFLAGS) -DFIXEDFANN $< -lfixedfann -lm -o $@
 
 clean:
 	rm -f $(TARGETS) $(DEBUG_TARGETS) xor_fixed.data *.net *~ *.obj *.exe *.tds noscale.txt withscale.txt scale_test_results.txt