summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-11 13:04:50 +0000
committertron <tron@openttd.org>2005-08-11 13:04:50 +0000
commit2aebbaeecdf3619862eb173de9f63c4446a4b604 (patch)
tree5071f625da993208e7b7bdd838c6b1a82d24e8f3 /Makefile
parenta4e00b6f0546b636bcdf19269eeb610a421bbdca (diff)
downloadopenttd-2aebbaeecdf3619862eb173de9f63c4446a4b604.tar.xz
(svn r2853) Add missing dependencies and flags to the dependency targets and make the info target more informative
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 29d0a6efe..f87fd497d 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)'