Rename subdir 'Target' variable to 'Implementation' to be less overloaded.

llvm-svn: 93718
This commit is contained in:
Daniel Dunbar 2010-01-18 06:49:09 +00:00
parent 8e5a2f084a
commit 6bcbef6230
9 changed files with 14 additions and 15 deletions

View File

@ -177,8 +177,8 @@ $(call Set,ActiveFlags,$(call GetArgs,$(ActiveConfig),$(ActiveArch)))
$(call Set,ActiveObjects,$(ObjNames:%=$(ActiveObjPath)/%))
# Add to the input list for the appropriate library and update the dependency.
$(call Append,$(Target).Inputs.$(ActiveConfig).$(ActiveArch),$(ActiveObjects))
$(ProjObjRoot)/$(ActiveConfig)/$(ActiveArch)/libcompiler_rt.$(Target).a: $(ActiveObjects)
$(call Append,$(Implementation).Inputs.$(ActiveConfig).$(ActiveArch),$(ActiveObjects))
$(ProjObjRoot)/$(ActiveConfig)/$(ActiveArch)/libcompiler_rt.$(Implementation).a: $(ActiveObjects)
$(ActiveObjPath)/%.o: $(ActiveSrcPath)/%.s $(Dependencies) $(ActiveObjPath)/.dir
$(Summary) " ASSEMBLE: $(ActiveConfig)/$(ActiveArch): $$<"

View File

@ -11,7 +11,7 @@ SubDirs := i386 ppc x86_64 arm
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o)
Target := Generic
Implementation := Generic
# FIXME: use automatic dependencies?
Dependencies := $(wildcard $(Dir)/*.h)

View File

@ -13,7 +13,7 @@ OnlyArchs := armv6 armv7
AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
Target := Optimized
Implementation := Optimized
# FIXME: use automatic dependencies?
Dependencies := $(wildcard lib/*.h $(Dir)/*.h)

View File

@ -13,7 +13,7 @@ OnlyArchs := i386
AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
Target := Optimized
Implementation := Optimized
# FIXME: use automatic dependencies?
Dependencies := $(wildcard lib/*.h $(Dir)/*.h)

View File

@ -13,7 +13,7 @@ OnlyArchs := ppc
AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
Target := Optimized
Implementation := Optimized
# FIXME: use automatic dependencies?
Dependencies := $(wildcard lib/*.h $(Dir)/*.h)

View File

@ -13,7 +13,7 @@ OnlyArchs := x86_64
AsmSources := $(foreach file,$(wildcard $(Dir)/*.S),$(notdir $(file)))
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
ObjNames := $(Sources:%.c=%.o) $(AsmSources:%.S=%.o)
Target := Optimized
Implementation := Optimized
# FIXME: use automatic dependencies?
Dependencies := $(wildcard lib/*.h $(Dir)/*.h)

View File

@ -42,4 +42,3 @@ $(foreach arch,$(AvailableArchs),\
$(foreach key,$(SubDirKeys),\
$(foreach fn,$(basename $($(key).ObjNames)),\
$(call Append,AvailableIn.$(fn),$(key))))

View File

@ -19,20 +19,20 @@ SelectFunctionDir = $(strip \
# defined with a certain specificity.
SelectFunctionDirs_Opt_ConfigAndArch = $(strip \
$(foreach key,$(AvailableIn.$(3)),\
$(if $(and $(call streq,Optimized,$($(key).Target)),\
$(if $(and $(call streq,Optimized,$($(key).Implementation)),\
$(call contains,$($(key).OnlyConfigs),$(1)),\
$(call contains,$($(key).OnlyArchs),$(2))),$(key),)))
SelectFunctionDirs_Opt_Config = $(strip \
$(foreach key,$(AvailableIn.$(3)),\
$(if $(and $(call streq,Optimized,$($(key).Target)),\
$(if $(and $(call streq,Optimized,$($(key).Implementation)),\
$(call contains,$($(key).OnlyConfigs),$(1))),$(key),)))
SelectFunctionDirs_Opt_Arch = $(strip \
$(foreach key,$(AvailableIn.$(3)),\
$(if $(and $(call streq,Optimized,$($(key).Target)),\
$(if $(and $(call streq,Optimized,$($(key).Implementation)),\
$(call contains,$($(key).OnlyArchs),$(2))),$(key),)))
SelectFunctionDirs_Gen = $(strip \
$(foreach key,$(AvailableIn.$(3)),\
$(if $(call streq,Generic,$($(key).Target)),$(key))))
$(if $(call streq,Generic,$($(key).Implementation)),$(key))))
# Helper function to select the right set of dirs in generic priority order.
SelectFunctions_Gen = \

View File

@ -3,8 +3,8 @@
# Subdirectory makefiles must define:
# SubDirs - The subdirectories to traverse.
# ObjNames - The objects available in that directory.
# Target - The library configuration the objects should go in (Generic or
# Optimized)
# Implementation - The library configuration the objects should go in (Generic or
# Optimized)
# Dependencies - Any dependences for the object files.
#
# Subdirectory makefiles may define:
@ -44,7 +44,7 @@ $(foreach config,$(ConfigsToTraverse), \
# The list of variables which are intended to be overridden in a subdirectory
# makefile.
RequiredSubdirVariables := SubDirs ObjNames Target Dependencies
RequiredSubdirVariables := SubDirs ObjNames Implementation Dependencies
OptionalSubdirVariables := OnlyArchs OnlyConfigs
# Template: subdir_traverse_template subdir