Changeset 2572 for trunk/kBuild/tools/OPENWATCOM.kmk
- Timestamp:
- Apr 27, 2012, 3:19:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/OPENWATCOM.kmk
r2413 r2572 121 121 endif 122 122 123 if1of ($(KBUILD_HOST), os2 win) 124 TOOL_OPENWATCOM_FIX_SLASHES = $(subst /,\\,$1) 125 else 126 TOOL_OPENWATCOM_FIX_SLASHES = $1 127 endif 128 123 129 # General Properties used by kBuild 124 130 TOOL_OPENWATCOM_ASOBJSUFF ?= .obj … … 169 175 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AS) \ 170 176 $(flags) \ 171 $(addsuffix , $(addprefix -i=, $( subst /,\\,$(incs)))) \177 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 172 178 $(addprefix -d, $(defs)) \ 173 -fo=$( subst /,\\,$(obj)) \174 -fr=$( subst /,\\,$(obj)).err \175 $( subst /,\\,$(abspath $(source)))179 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 180 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 181 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 176 182 $(QUIET)$(APPEND) -n $(obj).err 177 183 ## @todo dependencies … … 185 191 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CC) \ 186 192 $(flags) \ 187 $(addsuffix , $(addprefix -i=, $( subst /,\\,$(incs)))) \193 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 188 194 $(addprefix -d, $(defs)) \ 189 -fo=$( subst /,\\,$(obj)) \190 -fr=$( subst /,\\,$(obj)).err \191 $( subst /,\\,$(abspath $(source)))195 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 196 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 197 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 192 198 $(QUIET)$(APPEND) -n $(obj).err 193 199 ## @todo dependencies … … 200 206 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_CXX) \ 201 207 $(flags) \ 202 $(addsuffix , $(addprefix -i=, $( subst /,\\,$(incs)))) \208 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 203 209 $(addprefix -d, $(defs)) \ 204 -fo=$( subst /,\\,$(obj)) \205 -fr=$( subst /,\\,$(obj)).err \206 $( subst /,\\,$(abspath $(source)))210 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 211 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 212 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 207 213 $(QUIET)$(APPEND) -n $(obj).err 208 214 ## @todo dependencies … … 216 222 $(TOOL_OPENWATCOM_RC) -r\ 217 223 $(flags) \ 218 $(addprefix -i=, $( subst /,\\,$(incs))) \224 $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs))) \ 219 225 $(addprefix -d, $(defs))\ 220 -fo=$( subst /,\\,$(obj)) \221 $( subst /,\\,$(abspath $(source)))226 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 227 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 222 228 endef 223 229 … … 226 232 TOOL_OPENWATCOM_LINK_LIBRARY_DEPORD = 227 233 define TOOL_OPENWATCOM_LINK_LIBRARY_CMDS 228 $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$( subst /,\,$(objs) $(othersrc)),'+"$(obj)"')229 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $( subst /,\\,$(out)) @$(outbase).rsp234 $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(call TOOL_OPENWATCOM_FIX_SLASHES,$(objs) $(othersrc)),'+"$(obj)"') 235 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP) $(TOOL_OPENWATCOM_AR) $(flags) $(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) @$(outbase).rsp 230 236 endef 231 237 … … 237 243 $(TOOL_OPENWATCOM_LD) \ 238 244 $(flags) \ 239 -fe=$( subst /,\\,$(out)) \240 -fm=$( subst /,\\,$(outbase).map) \241 $( subst /,\\,$(filter-out %.res,$(objs))) \242 $( subst /,\\,$(libs)) \243 $( subst /,\\,$(othersrc))245 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 246 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \ 247 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \ 248 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \ 249 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc)) 244 250 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \ 245 251 $(TOOL_OPENWATCOM_RC) \ 246 252 $(filter -bt=%,$(flags)) \ 247 /fe=$( subst /,\\,$(out)) \248 $( subst /,\\,$(filter %.res,$(objs))))253 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 254 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs)))) 249 255 endef 250 256 … … 256 262 $(TOOL_OPENWATCOM_LD) \ 257 263 $(flags) \ 258 -fe=$( subst /,\\,$(out)) \259 -fm=$( subst /,\\,$(outbase).map) \260 $( subst /,\\,$(filter-out %.res,$(objs))) \261 $( subst /,\\,$(libs)) \262 $( subst /,\\,$(othersrc))264 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 265 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \ 266 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \ 267 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \ 268 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc)) 263 269 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \ 264 270 $(TOOL_OPENWATCOM_RC) \ 265 271 $(filter -bt=%,$(flags)) \ 266 /fe=$( subst /,\\,$(out)) \267 $( subst /,\\,$(filter %.res,$(objs))))272 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 273 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs)))) 268 274 endef 269 275 … … 275 281 $(TOOL_OPENWATCOM_LD) \ 276 282 $(flags) \ 277 -fe=$( subst /,\\,$(out)) \278 -fm=$( subst /,\\,$(outbase).map) \279 $( subst /,\\,$(filter-out %.res,$(objs))) \280 $( subst /,\\,$(libs)) \281 $( subst /,\\,$(othersrc))283 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 284 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \ 285 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \ 286 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \ 287 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc)) 282 288 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \ 283 289 $(TOOL_OPENWATCOM_RC) \ 284 290 $(filter -bt=%,$(flags)) \ 285 /fe=$( subst /,\\,$(out)) \286 $( subst /,\\,$(filter %.res,$(objs))))287 endef 288 291 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \ 292 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs)))) 293 endef 294
Note:
See TracChangeset
for help on using the changeset viewer.