From 038501e17409a07bac01d3bfb865f2f0d0778139 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 11 Aug 2005 13:04:50 +0000 Subject: [PATCH] (svn r2853) Add missing dependencies and flags to the dependency targets and make the info target more informative --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 29d0a6efeb..f87fd497d1 100644 --- a/Makefile +++ b/Makefile @@ -999,17 +999,17 @@ endif %.o: .deps/%.d -.deps/%.d: %.c table/strings.h endian_target.h +.deps/%.d: %.c $(MAKE_CONFIG) table/strings.h endian_target.h @echo '===> Determining dependencies of $<' - $(Q)$(CC) $(CFLAGS) -M $< > $@ + $(Q)$(CC) $(CFLAGS) $(CDEFS) -M $< > $@ -.deps/%.d: %.cpp table/strings.h endian_target.h +.deps/%.d: %.cpp $(MAKE_CONFIG) table/strings.h endian_target.h @echo '===> Determining dependencies of $<' - $(Q)$(CXX) $(CFLAGS) -M $< > $@ + $(Q)$(CXX) $(CFLAGS) $(CDEFS) -M $< > $@ -.deps/%.d: %.m table/strings.h endian_target.h +.deps/%.d: %.m $(MAKE_CONFIG) table/strings.h endian_target.h @echo '===> Determining dependencies of $<' - $(Q)$(CC) $(CFLAGS) -M $< > $@ + $(Q)$(CC) $(CFLAGS) $(CDEFS) -M $< > $@ %.o: %.c $(MAKE_CONFIG) @@ -1029,3 +1029,4 @@ info: @echo 'CFLAGS = $(CFLAGS)' @echo 'LDFLAGS = $(LDFLAGS)' @echo 'LIBS = $(LIBS)' + @echo 'CDEFS = $(CDEFS)'