Changeset 2572 for trunk/kBuild/tools/OPENWATCOM-16.kmk
- Timestamp:
- Apr 27, 2012, 3:19:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/OPENWATCOM-16.kmk
r2413 r2572 46 46 TOOL_OPENWATCOM-16_COMPILE_AS_OUTPUT = $(obj).err 47 47 define TOOL_OPENWATCOM-16_COMPILE_AS_CMDS 48 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_ CC16) \48 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AS) \ 49 49 $(flags) \ 50 $(addsuffix , $(addprefix -i=, $( subst /,\\,$(incs)))) \50 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 51 51 $(addprefix -d, $(defs)) \ 52 -fo=$( subst /,\\,$(obj)) \53 -fr=$( subst /,\\,$(obj)).err \54 $( subst /,\\,$(abspath $(source)))52 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 53 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 54 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 55 55 $(QUIET)$(APPEND) -n $(obj).err 56 56 ## @todo dependencies … … 63 63 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CC16) \ 64 64 $(flags) \ 65 $(addsuffix , $(addprefix -i=, $( subst /,\\,$(incs)))) \65 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 66 66 $(addprefix -d, $(defs)) \ 67 -fo=$( subst /,\\,$(obj)) \68 -fr=$( subst /,\\,$(obj)).err \69 $( subst /,\\,$(abspath $(source)))67 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 68 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 69 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 70 70 $(QUIET)$(APPEND) -n $(obj).err 71 71 ## @todo dependencies … … 78 78 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CXX16) \ 79 79 $(flags) \ 80 $(addsuffix , $(addprefix -i=, $( subst /,\\,$(incs)))) \80 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 81 81 $(addprefix -d, $(defs)) \ 82 -fo=$( subst /,\\,$(obj)) \83 -fr=$( subst /,\\,$(obj)).err \84 $( subst /,\\,$(abspath $(source)))82 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 83 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 84 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 85 85 $(QUIET)$(APPEND) -n $(obj).err 86 86 ## @todo dependencies … … 94 94 $(TOOL_OPENWATCOM_RC) -r\ 95 95 $(flags) \ 96 $(addprefix -i=, $( subst /,\\,$(incs))) \96 $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs))) \ 97 97 $(addprefix -d, $(defs))\ 98 -fo=$( subst /,\\,$(obj)) \99 $( subst /,\\,$(abspath $(source)))98 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 99 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 100 100 endef 101 101 … … 104 104 TOOL_OPENWATCOM-16_LINK_LIBRARY_DEPORD = 105 105 define TOOL_OPENWATCOM-16_LINK_LIBRARY_CMDS 106 $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$( subst /,\,$(objs) $(othersrc)),'+"$(obj)"')107 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $( subst /,\\,$(out)) @$(outbase).rsp106 $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(call TOOL_OPENWATCOM_FIX_SLASHES,$(objs) $(othersrc)),'+"$(obj)"') 107 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) @$(outbase).rsp 108 108 endef 109 109 110 110 TOOL_OPENWATCOM-16_LINK_PROGRAM_OUTPUT = $(outbase).map 111 TOOL_OPENWATCOM-16_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).sym 111 112 TOOL_OPENWATCOM-16_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 112 113 TOOL_OPENWATCOM-16_LINK_PROGRAM_DEPORD = … … 115 116 $(TOOL_OPENWATCOM_LD16) \ 116 117 $(flags) \ 117 -fe=$( subst /,\\,$(out)) \118 -fm=$( subst /,\\,$(outbase).map) \119 $( subst /,\\,$(filter-out %.res,$(objs))) \120 $( subst /,\\,$(libs)) \121 $( subst /,\\,$(othersrc))118 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 119 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \ 120 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \ 121 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \ 122 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc)) 122 123 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \ 123 124 $(TOOL_OPENWATCOM_RC) \ 124 125 $(filter -bt=%,$(flags)) \ 125 /fe=$( subst /,\\,$(out)) \126 $( subst /,\\,$(filter %.res,$(objs))))126 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 127 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs)))) 127 128 endef 128 129 129 130 TOOL_OPENWATCOM-16_LINK_DLL_OUTPUT = $(outbase).map 131 TOOL_OPENWATCOM-16_LINK_DLL_OUTPUT_MAYBE = $(outbase).sym 130 132 TOOL_OPENWATCOM-16_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 131 133 TOOL_OPENWATCOM-16_LINK_DLL_DEPORD = … … 134 136 $(TOOL_OPENWATCOM_LD16) \ 135 137 $(flags) \ 136 -fe=$( subst /,\\,$(out)) \137 -fm=$( subst /,\\,$(outbase).map) \138 $( subst /,\\,$(filter-out %.res,$(objs))) \139 $( subst /,\\,$(libs)) \140 $( subst /,\\,$(othersrc))138 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 139 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \ 140 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \ 141 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \ 142 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc)) 141 143 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \ 142 144 $(TOOL_OPENWATCOM_RC) \ 143 145 $(filter -bt=%,$(flags)) \ 144 /fe=$( subst /,\\,$(out)) \145 $( subst /,\\,$(filter %.res,$(objs))))146 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 147 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs)))) 146 148 endef 147 149 148 150 TOOL_OPENWATCOM-16_LINK_SYSMOD_OUTPUT = $(outbase).map 151 TOOL_OPENWATCOM-16_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).sym 149 152 TOOL_OPENWATCOM-16_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 150 153 TOOL_OPENWATCOM-16_LINK_SYSMOD_DEPORD = … … 153 156 $(TOOL_OPENWATCOM_LD16) \ 154 157 $(flags) \ 155 -fe=$( subst /,\\,$(out)) \156 -fm=$( subst /,\\,$(outbase).map) \157 $( subst /,\\,$(filter-out %.res,$(objs))) \158 $( subst /,\\,$(libs)) \159 $( subst /,\\,$(othersrc))158 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 159 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \ 160 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \ 161 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \ 162 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc)) 160 163 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \ 161 164 $(TOOL_OPENWATCOM_RC) \ 162 165 $(filter -bt=%,$(flags)) \ 163 /fe=$( subst /,\\,$(out)) \164 $( subst /,\\,$(filter %.res,$(objs))))166 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 167 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs)))) 165 168 endef 166 169
Note:
See TracChangeset
for help on using the changeset viewer.