File: libfann-doc.examples.Makefile

package info (click to toggle)
libfann 2.2.0%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,792 kB
  • sloc: ansic: 6,033; cpp: 1,436; makefile: 113; sh: 27
file content (24 lines) | stat: -rw-r--r-- 570 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# Based on upstream's makefile for the examples, see $SRC/examples/Makefile
# See the README in this directory for instructions on how to run this

CC=gcc

TARGETS = xor_train xor_test simple_train steepness_train simple_test robot mushroom momentums cascade_train scaling_test scaling_train

all: $(TARGETS)

%: /usr/share/doc/libfann-dev/examples/%.c
	$(CC) -O3 $< -o $@ -lm -lfann

clean:
	rm -f $(TARGETS) xor_fixed.data *.net

runtest: $(TARGETS)
	@echo
	@echo Training network
	./xor_train

	@echo
	@echo Testing network with floats
	./xor_test