genann/Makefile

35 lines
609 B
Makefile
Raw Normal View History

CFLAGS = -Wall -Wshadow -O3 -g -march=native
LDLIBS = -lm
2016-02-10 02:53:54 +03:00
all: test example1 example2 example3 example4
2017-12-18 05:38:30 +03:00
sigmoid: CFLAGS += -Dgenann_act=genann_act_sigmoid_cached
sigmoid: all
threshold: CFLAGS += -Dgenann_act=genann_act_threshold
threshold: all
linear: CFLAGS += -Dgenann_act=genann_act_linear
linear: all
2016-02-10 02:53:54 +03:00
test: test.o genann.o
check: test
./$^
2016-02-10 02:53:54 +03:00
example1: example1.o genann.o
example2: example2.o genann.o
example3: example3.o genann.o
example4: example4.o genann.o
clean:
$(RM) *.o
$(RM) test example1 example2 example3 example4 *.exe
$(RM) persist.txt
2017-12-18 05:38:30 +03:00
.PHONY: sigmoid threshold linear clean