(Unix build scripts) Failed mkdep doesn't result in empty .d files anymore.

Now using the gcc 3 "-MF" and "-MT" options.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2389 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-06-22 12:55:56 +00:00
parent f935c82094
commit 2d6763b0d1
3 changed files with 13 additions and 6 deletions
+4 -4
View File
@@ -1,6 +1,8 @@
# Make file for the uqm build system. Invoked from build/unix/build_functions
# By Serge van den Boom
.DELETE_ON_ERROR:
SOURCES := $(shell cat "$(DEPEND_FILE)")
-include $(SOURCES:=.d)
@@ -16,13 +18,11 @@ endef
endif
define act_mkdep_c
$(MKDEPEND) $(CFLAGS) "$<" | \
$(SED) -e 's,^\(.*\).o:,'"$(@D)"'/\1.c.o:,' > "$@"
$(MKDEPEND) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@"
endef
define act_mkdep_m
$(MKDEPEND) $(CFLAGS) "$<" | \
$(SED) -e 's,^\(.*\).o:,'"$(@D)"'/\1.m.o:,' > "$@"
$(MKDEPEND) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@"
endef
define act_windres