(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:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user