Objective C dependency making.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1826 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -20,6 +20,11 @@ define act_mkdep_c
|
||||
$(SED) -e 's,^\(.*\).o:,'"$(@D)"'/\1.c.o:,' > "$@"
|
||||
endef
|
||||
|
||||
define act_mkdep_m
|
||||
$(MKDEPEND) -o - $(CFLAGS) "$<" | \
|
||||
$(SED) -e 's,^\(.*\).o:,'"$(@D)"'/\1.m.o:,' > "$@"
|
||||
endef
|
||||
|
||||
define act_windres
|
||||
$(WINDRES) --include-dir $(dir $<) -o "$@" "$<"
|
||||
endef
|
||||
@@ -47,6 +52,13 @@ $(OBJDIR)%.c.d: $(BUILD_ROOT)%.c
|
||||
fi
|
||||
$(call act,act_mkdep_c,MKDEP ,$@)
|
||||
|
||||
$(OBJDIR)%.m.d: $(BUILD_ROOT)%.m
|
||||
@DIR=$(dir $@); \
|
||||
if [ ! -d $$DIR ]; then \
|
||||
mkdir -p "$$DIR"; \
|
||||
fi
|
||||
$(call act,act_mkdep_m,MKDEP ,$@)
|
||||
|
||||
%.rc.o: %.rc
|
||||
@DIR=$(dir $@); \
|
||||
if [ ! -d $$DIR ]; then \
|
||||
|
||||
Reference in New Issue
Block a user