gnumake2: gb_CObject__command_dep is not platform dependant anymore

This commit is contained in:
Bjoern Michaelsen 2010-08-04 13:47:50 +02:00
parent e412ef3ba5
commit dc49d6db12
5 changed files with 10 additions and 25 deletions

View file

@ -33,7 +33,16 @@ gb_CObject_REPOS := $(gb_REPOS)
gb_CObject_get_source = $(1)/$(2).c
# defined by platform
# gb_CObject__command
# gb_CObject__command_dep
ifeq ($(gb_FULLDEPS),$(true))
define gb_CObject__command_dep
mkdir -p $(dir $(1)) && \
echo '$(call gb_CObject_get_target,$(2)) : $$(gb_Helper_PHONY)' > $(1)
endef
else
gb_CObject__command_dep =
endif
define gb_CObject__rules
$$(call gb_CObject_get_target,%) : $$(call gb_CObject_get_source,$(1),%)

5
solenv/gbuild/platform/linux.mk Normal file → Executable file
View file

@ -137,11 +137,6 @@ $(call gb_Helper_abbreviate_dirs,\
$(6))
endef
define gb_CObject__command_dep
mkdir -p $(dir $(1)) && \
echo '$(call gb_CObject_get_target,$(2)) : $$(gb_Helper_PHONY)' > $(1)
endef
# CxxObject class

5
solenv/gbuild/platform/macosx.mk Normal file → Executable file
View file

@ -152,11 +152,6 @@ $(call gb_Helper_abbreviate_dirs,\
$(6))
endef
define gb_CObject__command_dep
mkdir -p $(dir $(1)) && \
echo '$(call gb_CObject_get_target,$(2)) : $$(gb_Helper_PHONY)' > $(1)
endef
# CxxObject class

5
solenv/gbuild/platform/solaris.mk Normal file → Executable file
View file

@ -135,11 +135,6 @@ $(call gb_Helper_abbreviate_dirs,\
$(6))
endef
define gb_CObject__command_dep
mkdir -p $(dir $(1)) && \
echo '$(call gb_CObject_get_target,$(2)) : $$(gb_Helper_PHONY)' > $(1)
endef
# CxxObject class

View file

@ -231,15 +231,6 @@ $(call gb_Helper_abbreviate_dirs_native,\
$(call gb_CObject__command_deponcompile,$(1),$(2),$(3),$(4),$(5),$(6))
endef
ifeq ($(gb_FULLDEPS),$(true))
define gb_CObject__command_dep
mkdir -p $(dir $(1)) && \
echo '$(call gb_CObject_get_target,$(2)) : $$(gb_Helper_PHONY)' > $(1)
endef
else
gb_CObject__command_dep =
endif
# CxxObject class