diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-02-28 12:26:42 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-02-28 12:26:42 +0100 |
commit | 9ea1274d7cd7bf6b475c4b0b76c972e932c17a9f (patch) | |
tree | c515eb1484b8eeb4b8f4859284ea9804d1f59cef /makefiles | |
parent | 928fc83a6492e6ceaf7a46b888526e20bcd3a6dc (diff) | |
download | wolfbones-9ea1274d7cd7bf6b475c4b0b76c972e932c17a9f.tar.gz wolfbones-9ea1274d7cd7bf6b475c4b0b76c972e932c17a9f.tar.bz2 |
fixed generation of dependenies and added an empty sys_internal.h for internal porting flags
Diffstat (limited to 'makefiles')
-rw-r--r-- | makefiles/gmake/depend.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/makefiles/gmake/depend.mk b/makefiles/gmake/depend.mk index bcdb5b2..6f9ff02 100644 --- a/makefiles/gmake/depend.mk +++ b/makefiles/gmake/depend.mk @@ -16,12 +16,12 @@ ifeq "$(COMPILER)" "gcc" %.d : %.c @echo Generating dependencies for $< - @$(CC) -DMAKE_DEPENDENCIES -MM -MT $@ $(CFLAGS) $< | \ + @$(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 $@ $(CCPPFLAGS) $< | \ + @$(CCPP) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CCPPFLAGS) $< | \ sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@ endif @@ -38,12 +38,12 @@ ifeq "$(COMPILER)" "icc" %.d : %.c @echo Generating dependencies for $< - @$(CC) -DMAKE_DEPENDENCIES -MM -MT $@ $(CFLAGS) $< | \ + @$(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 $@ $(CCPPFLAGS) $< | \ + @$(CCPP) -DMAKE_DEPENDENCIES -MM -MT $(@:.d=.o) $(CCPPFLAGS) $< | \ sed "s,\($*\.o\)[ :]*\(.*\),$@ : $$\(wildcard \2\)\&\&\&\1 : \2,g" | tr -s '&' "\n" > $@ endif |