diff --git a/matrix/make_gen b/matrix/make_gen index 992e1d54..4d142e12 100644 --- a/matrix/make_gen +++ b/matrix/make_gen @@ -14,5 +14,4 @@ libmatrix.a: $(OBJ) ranlib libmatrix.a clean: - rm -f *.o - rm -f *.a + rm -f *.o *.a *.d diff --git a/matrix/makefile_linux b/matrix/makefile_linux index addaf48b..2021c24c 100644 --- a/matrix/makefile_linux +++ b/matrix/makefile_linux @@ -9,6 +9,9 @@ include ../linux_def CC = gcc -CFLAGS = -g $(DFORTIFY) +CFLAGS = -g $(DFORTIFY) -MMD include make_gen + +-include $(OBJ:.o=.d) +