| 1 |
#!/usr/bin/make -f |
| 2 |
# Based on upstream's makefile for the examples, see $SRC/examples/Makefile |
| 3 |
# See the README in this directory for instructions on how to run this |
| 4 |
|
| 5 |
CC=gcc |
| 6 |
|
| 7 |
TARGETS = xor_train xor_test simple_train steepness_train simple_test robot mushroom momentums cascade_train scaling_test scaling_train |
| 8 |
|
| 9 |
all: $(TARGETS) |
| 10 |
|
| 11 |
%: /usr/share/doc/libfann-dev/examples/%.c |
| 12 |
$(CC) -O3 $< -o $@ -lm -lfann |
| 13 |
|
| 14 |
clean: |
| 15 |
rm -f $(TARGETS) xor_fixed.data *.net |
| 16 |
|
| 17 |
runtest: $(TARGETS) |
| 18 |
@echo |
| 19 |
@echo Training network |
| 20 |
./xor_train |
| 21 |
|
| 22 |
@echo |
| 23 |
@echo Testing network with floats |
| 24 |
./xor_test |