Changeset 79 for trunk/kBuild
- Timestamp:
- Jun 1, 2004, 3:39:33 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r78 r79 66 66 # @param $2 normalized main target 67 67 # @param $3 tooltype 68 _SOURCE_TOOL = $(strip $(firstword $($1_$2_$(3)TOOL) $($1_$2_TOOL) $($1_$(3)TOOL) $($1_TOOL) $($2_$(3)TOOL) $($2_TOOL) $($(3)TOOL) $(TOOL) )) 68 _SOURCE_TOOL = $(strip $(firstword \ 69 $($1_$2_$(3)TOOL.$(BUILD_TARGET)) $($1_$2_TOOL.$(BUILD_TARGET)) \ 70 $($1_$2_$(3)TOOL) $($1_$2_TOOL) \ 71 $($1_$(3)TOOL.$(BUILD_TARGET)) $($1_TOOL.$(BUILD_TARGET)) \ 72 $($1_$(3)TOOL) $($1_TOOL) \ 73 $($2_$(3)TOOL.$(BUILD_TARGET)) $($2_TOOL.$(BUILD_TARGET)) \ 74 $($2_$(3)TOOL) $($2_TOOL) \ 75 $($(3)TOOL.$(BUILD_TARGET)) $(TOOL.$(BUILD_TARGET)) \ 76 $($(3)TOOL) $(TOOL) )) 69 77 70 78 ## Figure out the tool for a target. 71 79 # @param $1 normalized target. 72 80 # @param $2 tooltype. 73 _TARGET_TOOL = $(strip $(firstword $($(1)_$(2)TOOL) $($(1)_TOOL) $($(2)TOOL) $(TOOL) )) 81 _TARGET_TOOL = $(strip $(firstword \ 82 $($(1)_$(2)TOOL.$(BUILD_TARGET)) $($(1)_$(2)TOOL) \ 83 $($(1)_TOOL.$(BUILD_TARGET)) $($(1)_TOOL) \ 84 $($(2)TOOL) $($(2)TOOL.$(BUILD_TARGET)) \ 85 $(TOOL.$(BUILD_TARGET)) $(TOOL) \ 86 )) 74 87 75 88 ## Figure out where to put object files. … … 151 164 endif 152 165 endif 166 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET) 167 ifndef $(target)_$(prop).$(BUILD_TARGET) 168 $(eval $(target)_$(prop).$(BUILD_TARGET) := $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET))) 169 endif 170 endif 153 171 endef 154 172 … … 160 178 $(eval $(target)_$(prop) := $($(target)_$(prop)) $(TEMPLATE_$($(target)_TEMPLATE)_$(prop))) 161 179 endif 162 #$ (warning 1b $(target)_$(prop)=$($(target)_$(prop)) org=$(origin $(target)_$(prop)) TEMPLATE_$($(target)_TEMPLATE)_$(prop)=$(TEMPLATE_$($(target)_TEMPLATE)_$(prop)) org=$(origin TEMPLATE_$($(target)_TEMPLATE)_$(prop))) 180 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET) 181 $(eval $(target)_$(prop).$(BUILD_TARGET) := $($(target)_$(prop).$(BUILD_TARGET)) $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET))) 182 endif 183 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET_CPU) 184 $(eval $(target)_$(prop).$(BUILD_TARGET_CPU) := $($(target)_$(prop).$(BUILD_TARGET)) $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET_CPU))) 185 endif 186 ifdef TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET_ARCH) 187 $(eval $(target)_$(prop).$(BUILD_TARGET_ARCH) := $($(target)_$(prop).$(BUILD_TARGET)) $(TEMPLATE_$($(target)_TEMPLATE)_$(prop).$(BUILD_TARGET_ARCH))) 188 endif 163 189 endef 164 190 … … 166 192 # @param $(target) Target name. 167 193 define def_inherit_template 168 $(foreach prop, TOOL ARTOOL CTOOL CXXTOOL ASTOOL\194 $(foreach prop, TOOL ARTOOL CTOOL CXXTOOL ASTOOL LDTOOL\ 169 195 ,$(eval $(def_inherit_template_one))) 170 196 $(foreach prop,SDKS DEFS INCS COPTS CFLAGS CDEFS CINCS CXXOPTS CXXFLAGS CXXDEFS CXXINCS ASOPTS ASFLAGS ASDEFS ASINCS\ … … 182 208 define def_tools_target_source 183 209 $(foreach tool,\ 210 $($(source)_TOOL.$(BUILD_TARGET)) $($(target)_$(source)_TOOL.$(BUILD_TARGET))\ 184 211 $($(source)_TOOL) $($(target)_$(source)_TOOL)\ 212 $($(source)_CTOOL.$(BUILD_TARGET)) $($(target)_$(source)_CTOOL.$(BUILD_TARGET))\ 185 213 $($(source)_CTOOL) $($(target)_$(source)_CTOOL)\ 214 $($(source)_CXXTOOL.$(BUILD_TARGET)) $($(target)_$(source)_CXXTOOL.$(BUILD_TARGET))\ 186 215 $($(source)_CXXTOOL) $($(target)_$(source)_CXXTOOL)\ 216 $($(source)_ASTOOL.$(BUILD_TARGET)) $($(target)_$(source)_ASTOOL.$(BUILD_TARGET))\ 187 217 $($(source)_ASTOOL) $($(target)_$(source)_ASTOOL)\ 218 $($(source)_ARTOOL.$(BUILD_TARGET)) $($(target)_$(source)_ARTOOL.$(BUILD_TARGET))\ 188 219 $($(source)_ARTOOL) $($(target)_$(source)_ARTOOL)\ 220 $($(source)_LDTOOL.$(BUILD_TARGET)) $($(target)_$(source)_LDTOOL.$(BUILD_TARGET))\ 189 221 $($(source)_LDTOOL) $($(target)_$(source)_LDTOOL)\ 190 222 ,$(eval _TOOLS += $(tool))) … … 192 224 define def_tools_target 193 225 $(foreach tool,\ 226 $($(target)_TOOL.$(BUILD_TARGET))\ 194 227 $($(target)_TOOL)\ 228 $($(target)_CTOOL.$(BUILD_TARGET))\ 195 229 $($(target)_CTOOL)\ 230 $($(target)_CXXTOOL.$(BUILD_TARGET))\ 196 231 $($(target)_CXXTOOL)\ 232 $($(target)_ASTOOL.$(BUILD_TARGET))\ 197 233 $($(target)_ASTOOL)\ 234 $($(target)_ARTOOL.$(BUILD_TARGET))\ 198 235 $($(target)_ARTOOL)\ 236 $($(target)_LDTOOL.$(BUILD_TARGET))\ 199 237 $($(target)_LDTOOL)\ 200 , 238 ,$(eval _TOOLS += $(tool))) 201 239 $(foreach source, $($(target)_SOURCES), $(eval $(def_tools_target_source))) 202 240 endef … … 205 243 206 244 define def_tools_include 245 $(warning tool=$(tool)) 207 246 ifndef TOOL_$(tool) 208 247 include $(firstword $(wildcard $(PATH_KBUILD)/tools/$(tool).kmk))
Note:
See TracChangeset
for help on using the changeset viewer.