From b95b09d405b1fea3b2c143503aa4eb1d05696546 Mon Sep 17 00:00:00 2001 From: Meiye_lj Date: Thu, 17 Apr 2025 21:42:07 +0800 Subject: [PATCH] fix missing dependecies in Makefile --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 427e3be..2be8a86 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -Wall -Wshadow -O3 -g -march=native +CFLAGS = -Wall -Wshadow -O3 -g -march=native -MMD LDLIBS = -lm all: check example1 example2 example3 example4 @@ -25,10 +25,11 @@ example3: example3.o genann.o example4: example4.o genann.o - clean: - $(RM) *.o + $(RM) *.o *.d $(RM) test example1 example2 example3 example4 *.exe $(RM) persist.txt .PHONY: sigmoid threshold linear clean + +-include $(wildcard *.d)