diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-06-13 20:21:31 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-06-13 20:21:31 +0200 |
commit | d1ed63e35e95bdc73b20cebd9123d8a2d7a43ec1 (patch) | |
tree | ef0a2c210f3bd081785235575bac2e3addb7d525 /makefiles/gmake/depend.mk | |
parent | 7704c015826d571fdd9af6f1d691410f6b6355ac (diff) | |
download | wolfbones-d1ed63e35e95bdc73b20cebd9123d8a2d7a43ec1.tar.gz wolfbones-d1ed63e35e95bdc73b20cebd9123d8a2d7a43ec1.tar.bz2 |
removed most of the C++ stuff
added a TEST_DYNAMIC_* variables in order to be able to build test libraries
(as for testing the library loader)
Diffstat (limited to 'makefiles/gmake/depend.mk')
-rw-r--r-- | makefiles/gmake/depend.mk | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/makefiles/gmake/depend.mk b/makefiles/gmake/depend.mk index cb6556c..cfe5bb5 100644 --- a/makefiles/gmake/depend.mk +++ b/makefiles/gmake/depend.mk @@ -1,11 +1,11 @@ -# provides generic rules for C/C++ dependeny generation using +# provides generic rules for C dependeny generation using # 'makedepend', 'gcc -MM' or similar mechanisms # # requires: -# - compilers CC and CCPP +# - compilers CC # - INCLUDEDIRS -# - OBJS, CPP_OBJS and BIN_OBJS, CPP_BIN_OBJS -# - TEST_BINS, TEST_BIN_OBJS, TEST_CPP_BINS, TEST_CPP_BIN_OBJS +# - OBJS and BIN_OBJS +# - TEST_BINS, TEST_BIN_OBJS # # provides: # - included dependency files @@ -19,11 +19,6 @@ ifeq "$(COMPILER)" "gcc" @$(CC) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CFLAGS) $< | \ sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@ -%.d : %.cpp - @echo Generating dependencies for $< - @$(CCPP) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CCPPFLAGS) $< | \ - sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@ - endif ifeq "$(COMPILER)" "tcc" @@ -41,11 +36,6 @@ ifeq "$(COMPILER)" "icc" @$(CC) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CFLAGS) $< | \ sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@ -%.d : %.cpp - @echo Generating dependencies for $< - @$(CCPP) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CCPPFLAGS) $< | \ - sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@ - endif ifeq "$(COMPILER)" "spro" @@ -54,9 +44,6 @@ ifeq "$(COMPILER)" "spro" @echo Generating dependencies for $< @$(CC) -DMAKE_DEPENDENCIES -xM1 $(CFLAGS) $< > $@ -%.d : %.cpp - @echo Generating dependencies for $< - @$(CCPP) -DMAKE_DEPENDENCIES -xM1 $(CCPPFLAGS) $< > $@ endif ifeq "$(COMPILER)" "pcc" @@ -69,8 +56,5 @@ ifeq "$(COMPILER)" "pcc" endif -include $(OBJS:.o=.d) --include $(CPP_OBJS:.o=.d) -include $(BIN_OBJS:.o=.d) --include $(CPP_BIN_OBJS:.o=.d) -include $(TEST_BIN_OBJS:.o=.d) --include $(TEST_CPP_BIN_OBJS:.o=.d) |