mirror of
https://github.com/codeplea/genann.git
synced 2026-09-17 14:33:36 +00:00
Track header dependencies in Makefile, fixes #62
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,4 +1,4 @@
|
|||||||
CFLAGS = -Wall -Wshadow -O3 -g -march=native
|
CFLAGS = -Wall -Wshadow -O3 -g -march=native -MMD
|
||||||
LDLIBS = -lm
|
LDLIBS = -lm
|
||||||
|
|
||||||
all: check example1 example2 example3 example4
|
all: check example1 example2 example3 example4
|
||||||
@@ -25,10 +25,11 @@ example3: example3.o genann.o
|
|||||||
|
|
||||||
example4: example4.o genann.o
|
example4: example4.o genann.o
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) *.o
|
$(RM) *.o *.d
|
||||||
$(RM) test example1 example2 example3 example4 *.exe
|
$(RM) test example1 example2 example3 example4 *.exe
|
||||||
$(RM) persist.txt
|
$(RM) persist.txt
|
||||||
|
|
||||||
.PHONY: sigmoid threshold linear clean
|
.PHONY: sigmoid threshold linear clean
|
||||||
|
|
||||||
|
-include $(wildcard *.d)
|
||||||
|
|||||||
Reference in New Issue
Block a user