Track header dependencies in Makefile, fixes #62

This commit is contained in:
Lewis Van Winkle
2026-08-04 22:34:27 -05:00
parent c12759b08c
commit b22348887e

View File

@@ -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)