(svn r2853) Add missing dependencies and flags to the dependency targets and make the info target more informative
authortron
Thu, 11 Aug 2005 13:04:50 +0000
changeset 2327 076c79dea490
parent 2326 8351ced42e69
child 2328 1cb2cbfe51ae
(svn r2853) Add missing dependencies and flags to the dependency targets and make the info target more informative
Makefile
--- a/Makefile	Thu Aug 11 13:03:39 2005 +0000
+++ b/Makefile	Thu Aug 11 13:04:50 2005 +0000
@@ -999,17 +999,17 @@
 
 %.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 @@
 	@echo 'CFLAGS  = $(CFLAGS)'
 	@echo 'LDFLAGS = $(LDFLAGS)'
 	@echo 'LIBS    = $(LIBS)'
+	@echo 'CDEFS   = $(CDEFS)'