Changeset 530 for trunk/kBuild
- Timestamp:
- Sep 17, 2006, 10:38:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r524 r530 27 27 ifndef __footer_kmk__ 28 28 # start-of-file-content 29 30 # 31 # Make sure that the core variables we defined in recursive expansion mode 32 # up in header.kmk get expanded before we really start using them. The kBuild 33 # functions added to kmk to speed stuff up assumes that the variables are 34 # expanded here. 35 # 36 PATH_OBJ := $(PATH_OBJ) 37 PATH_TARGET := $(PATH_TARGET) 38 PATH_INS := $(PATH_INS) 39 PATH_BIN := $(PATH_BIN) 40 PATH_DLL := $(PATH_DLL) 41 PATH_SYS := $(PATH_SYS) 42 PATH_LIB := $(PATH_LIB) 43 PATH_DOC := $(PATH_DOC) 29 44 30 45 # … … 109 124 $($(target)_$(source)_TOOL.$(bld_trg)) \ 110 125 $($(target)_$(source)_TOOL) \ 126 $($(source)_$(type)TOOL.$(bld_trg).$(bld_trg_arch)) \ 127 $($(source)_$(type)TOOL.$(bld_trg)) \ 128 $($(source)_$(type)TOOL) \ 129 $($(source)_TOOL.$(bld_trg).$(bld_trg_arch)) \ 130 $($(source)_TOOL.$(bld_trg)) \ 131 $($(source)_TOOL) \ 111 132 $($(target)_$(type)TOOL.$(bld_trg).$(bld_trg_arch)) \ 112 133 $($(target)_$(type)TOOL.$(bld_trg)) \ … … 115 136 $($(target)_TOOL.$(bld_trg)) \ 116 137 $($(target)_TOOL) \ 117 $($(source)_$(type)TOOL.$(bld_trg).$(bld_trg_arch)) \118 $($(source)_$(type)TOOL.$(bld_trg)) \119 $($(source)_$(type)TOOL) \120 $($(source)_TOOL.$(bld_trg).$(bld_trg_arch)) \121 $($(source)_TOOL.$(bld_trg)) \122 $($(source)_TOOL) \123 138 $($(type)TOOL.$(bld_trg).$(bld_trg_arch)) \ 124 139 $($(type)TOOL.$(bld_trg)) \ … … 480 495 ## wrapper the compile command dependency check. 481 496 ifndef NO_COMPILE_CMDS_DEPS 497 ifdef NEW_KMK 498 _DEP_COMPILE_CMDS = $(comp-vars $(target)_$(source)_CMDS_PREV_,$(target)_$(source)_CMDS_,FORCE) 499 else 482 500 _DEP_COMPILE_CMDS = $(if $(subst $(strip $($(target)_$(source)_CMDS_PREV_)),,$(strip $($(target)_$(source)_CMDS_))),FORCE,) 501 endif 483 502 else 484 503 _DEP_COMPILE_CMDS = … … 577 596 # @param bld_trg_cpu Build target cpu. 578 597 # 579 # @remark I've no clue why I've to $(eval ..) everything in this define. MAKE bug? 580 # @remark I now have a clue. Have to use $$ if not. 581 define def_target_source_c_cpp_asm 598 define def_target_source_c_cpp_asm_old 582 599 #$ (warning dbg: def_target_source_c_cpp_asm: source='$(source)' target='$(target)' type='$(type)') 583 600 … … 937 954 endef 938 955 956 ## Generic macro for processing C, C++ and Assembly sources. 957 # @param $(target) Normalized target name. 958 # @param $(source) Source file name. 959 # @param $(type) Source type. {C,CXX,AS} 960 # @param bld_type Build type. 961 # @param bld_trg Build target. 962 # @param bld_trg_arch Build target arch. 963 # @param bld_trg_cpu Build target cpu. 964 # 965 #$ (warning dbg: def_target_source_c_cpp_asm: source='$(source)' target='$(target)' type='$(type)') 966 def_target_source_c_cpp_asm_new = $(kb-src-one x) 967 968 ifdef NEW_KMK 969 def_target_source_c_cpp_asm_var = def_target_source_c_cpp_asm_new 970 else 971 def_target_source_c_cpp_asm_var = def_target_source_c_cpp_asm_old 972 endif 973 939 974 ## Generic macro for processing all target sources. 940 975 # @param $(target) Normalized target name. … … 944 979 type := C 945 980 $(foreach source, $(filter %.c , $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\ 946 ,$(eval $(value def_target_source_c_cpp_asm)) )981 ,$(eval $(value $(def_target_source_c_cpp_asm_var))) ) 947 982 948 983 # C++ sources 949 984 type := CXX 950 985 $(foreach source, $(filter %.cpp %.cxx %.xx, $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\ 951 ,$(eval $(value def_target_source_c_cpp_asm)) )986 ,$(eval $(value $(def_target_source_c_cpp_asm_var))) ) 952 987 953 988 # ASM sources 954 989 type := AS 955 990 $(foreach source, $(filter %.asm %.s %.S , $($(target)_SOURCES) $($(target)_SOURCES.$(bld_trg)) $($(target)_SOURCES.$(bld_trg).$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_arch)) $($(target)_SOURCES.$(bld_trg_cpu)) $($(target)_SOURCES.$(bld_type)))\ 956 ,$(eval $(value def_target_source_c_cpp_asm)) )991 ,$(eval $(value $(def_target_source_c_cpp_asm_var))) ) 957 992 958 993 endef
Note:
See TracChangeset
for help on using the changeset viewer.