Changeset 729 for trunk/kBuild/gnumake-footer.kmk
- Timestamp:
- Dec 17, 2006, 3:12:07 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/gnumake-footer.kmk
r723 r729 24 24 # 25 25 # 26 27 ## Figure out the tool for a source 28 # @param target source file 29 # @param source normalized main target 30 # @param type tooltype 31 # @param bld_trg build target. 32 # @param bld_trg_arch build target architecture. 33 # @remark Obsoleted by kBuild helpers in kmk. Only required for gmake compatbility. 34 _SOURCE_TOOL = $(strip $(firstword \ 35 $($(target)_$(source)_$(type)TOOL.$(bld_trg).$(bld_trg_arch)) \ 36 $($(target)_$(source)_$(type)TOOL.$(bld_trg)) \ 37 $($(target)_$(source)_$(type)TOOL) \ 38 $($(target)_$(source)_TOOL.$(bld_trg).$(bld_trg_arch)) \ 39 $($(target)_$(source)_TOOL.$(bld_trg)) \ 40 $($(target)_$(source)_TOOL) \ 41 $($(source)_$(type)TOOL.$(bld_trg).$(bld_trg_arch)) \ 42 $($(source)_$(type)TOOL.$(bld_trg)) \ 43 $($(source)_$(type)TOOL) \ 44 $($(source)_TOOL.$(bld_trg).$(bld_trg_arch)) \ 45 $($(source)_TOOL.$(bld_trg)) \ 46 $($(source)_TOOL) \ 47 $($(target)_$(type)TOOL.$(bld_trg).$(bld_trg_arch)) \ 48 $($(target)_$(type)TOOL.$(bld_trg)) \ 49 $($(target)_$(type)TOOL) \ 50 $($(target)_TOOL.$(bld_trg).$(bld_trg_arch)) \ 51 $($(target)_TOOL.$(bld_trg)) \ 52 $($(target)_TOOL) \ 53 $($(type)TOOL.$(bld_trg).$(bld_trg_arch)) \ 54 $($(type)TOOL.$(bld_trg)) \ 55 $($(type)TOOL) \ 56 $(TOOL.$(bld_trg).$(bld_trg_arch)) \ 57 $(TOOL.$(bld_trg)) \ 58 $(TOOL) )) 59 60 ## Figure out where to put object files. 61 # @param $1 source file 62 # @param $2 normalized main target 63 # @remark There are two major hacks here: 64 # 1. Source files in the output directory are translated into a gen/ subdir. 65 # 2. Catch anyone specifying $(PATH_SUB_CURRENT)/sourcefile.c. 66 # @remark obsoleted by kBuild helpers in kmk. Only required for gmake compatbility. 67 _OBJECT_BASE = $(PATH_TARGET)/$(2)/$(call no-root-slash,$(call no-drive,$(basename \ 68 $(patsubst $(PATH_ROOT)/%,%,$(patsubst $(PATH_SUB_CURRENT)/%,%,$(patsubst $(PATH_TARGET)/$(2)/%,gen/%,$(1))))))) 26 69 27 70
Note:
See TracChangeset
for help on using the changeset viewer.