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:
meep-eep
2005-06-03 12:06:39 +00:00
parent 9e779ee74f
commit 6acdba48b7
+12
View File
@@ -20,6 +20,11 @@ define act_mkdep_c
$(SED) -e 's,^\(.*\).o:,'"$(@D)"'/\1.c.o:,' > "$@" $(SED) -e 's,^\(.*\).o:,'"$(@D)"'/\1.c.o:,' > "$@"
endef endef
define act_mkdep_m
$(MKDEPEND) -o - $(CFLAGS) "$<" | \
$(SED) -e 's,^\(.*\).o:,'"$(@D)"'/\1.m.o:,' > "$@"
endef
define act_windres define act_windres
$(WINDRES) --include-dir $(dir $<) -o "$@" "$<" $(WINDRES) --include-dir $(dir $<) -o "$@" "$<"
endef endef
@@ -47,6 +52,13 @@ $(OBJDIR)%.c.d: $(BUILD_ROOT)%.c
fi fi
$(call act,act_mkdep_c,MKDEP ,$@) $(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 %.rc.o: %.rc
@DIR=$(dir $@); \ @DIR=$(dir $@); \
if [ ! -d $$DIR ]; then \ if [ ! -d $$DIR ]; then \