From 52cbe619ebf475d8499140630bca02a540192f93 Mon Sep 17 00:00:00 2001 From: zolliker Date: Tue, 10 Nov 2009 10:40:23 +0000 Subject: [PATCH] - introduced header file dependency check --- hardsup/make_gen | 2 +- hardsup/makefile_linux | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hardsup/make_gen b/hardsup/make_gen index 32e8a1f..3408078 100644 --- a/hardsup/make_gen +++ b/hardsup/make_gen @@ -19,7 +19,7 @@ libhlib.a: $(OBJ) ranlib libhlib.a clean: - rm -f *.o *.a + rm -f *.o *.a *.d diff --git a/hardsup/makefile_linux b/hardsup/makefile_linux index adae6c6..7c5971a 100644 --- a/hardsup/makefile_linux +++ b/hardsup/makefile_linux @@ -9,6 +9,9 @@ include ../../linux_def CC = gcc -CFLAGS = -g -DLINUX $(DFORTIFY) -I. -I../.. -Wall -Wno-unused +CFLAGS = -g -DLINUX $(DFORTIFY) -I. -I../.. -MMD -Wall -Wno-unused include make_gen + +-include $(OBJ:.o=.d) +