Changeset 2895 for trunk/kBuild/tools/OPENWATCOM.kmk
- Timestamp:
- Sep 8, 2016, 3:28:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/OPENWATCOM.kmk
r2882 r2895 54 54 # Resolve any fancy stuff once and for all. 55 55 PATH_TOOL_OPENWATCOM := $(PATH_TOOL_OPENWATCOM) 56 endif 57 58 # Clear the feature indicator if not available on the current host. 59 ifdef TOOL_OPENWATCOM_USE_KSUBMIT 60 ifneq ($(KBUILD_HOST),win) 61 override TOOL_OPENWATCOM_USE_KSUBMIT := 62 endif 56 63 endif 57 64 … … 149 156 150 157 if $(KBUILD_KMK_REVISION) >= 2747 151 TOOL_OPENWATCOM_ENV_SETUP_BD ?= $(call TOOL_OPENWATCOM_ENV_SETUP,$1, $2 --wcc-brain-damage)158 TOOL_OPENWATCOM_ENV_SETUP_BD ?= $(call TOOL_OPENWATCOM_ENV_SETUP,$1, --wcc-brain-damage $2) 152 159 else 153 160 TOOL_OPENWATCOM_ENV_SETUP_BD ?= $(call TOOL_OPENWATCOM_ENV_SETUP,$1,$2) … … 208 215 TOOL_OPENWATCOM_COMPILE_AS_DEPEND = 209 216 TOOL_OPENWATCOM_COMPILE_AS_DEPORD = 210 TOOL_OPENWATCOM_COMPILE_AS_OUTPUT = $(obj).err 217 TOOL_OPENWATCOM_COMPILE_AS_OUTPUT_MAYBE = $(obj).err 218 ifdef TOOL_OPENWATCOM_USE_KSUBMIT 211 219 define TOOL_OPENWATCOM_COMPILE_AS_CMDS 212 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_AS) \ 213 $(flags) \ 214 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 215 $(addprefix -d, $(defs)) \ 216 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 217 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 218 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 219 $(QUIET)$(APPEND) -n $(obj).err 220 ## @todo dependencies 221 endef 220 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,, -P $(DEP_OBJ_INT) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)") \ 221 $(TOOL_OPENWATCOM_AS) \ 222 $(flags) \ 223 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 224 $(addprefix -d, $(defs)) \ 225 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 226 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 227 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 228 endef 229 else 230 define TOOL_OPENWATCOM_COMPILE_AS_CMDS 231 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_AS) \ 232 $(flags) \ 233 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 234 $(addprefix -d, $(defs)) \ 235 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 236 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 237 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 238 $(QUIET)$(DEP_OBJ) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)" 239 endef 240 endif 222 241 223 242 224 243 TOOL_OPENWATCOM_COMPILE_C_DEPEND = 225 244 TOOL_OPENWATCOM_COMPILE_C_DEPORD = 226 TOOL_OPENWATCOM_COMPILE_C_OUTPUT = $(obj).err 245 TOOL_OPENWATCOM_COMPILE_C_OUTPUT_MAYBE = $(obj).err 246 ifdef TOOL_OPENWATCOM_USE_KSUBMIT 247 define TOOL_OPENWATCOM_COMPILE_C_CMDS 248 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,, -P $(DEP_OBJ_INT) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)") \ 249 $(TOOL_OPENWATCOM_CC) \ 250 $(flags) \ 251 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 252 $(addprefix -d, $(defs)) \ 253 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 254 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 255 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 256 endef 257 else 227 258 define TOOL_OPENWATCOM_COMPILE_C_CMDS 228 259 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_CC) \ … … 233 264 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 234 265 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 235 $(QUIET)$( APPEND) -n $(obj).err236 ## @todo dependencies 237 end ef266 $(QUIET)$(DEP_OBJ) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)" 267 endef 268 endif 238 269 239 270 TOOL_OPENWATCOM_COMPILE_CXX_DEPEND = 240 271 TOOL_OPENWATCOM_COMPILE_CXX_DEPORD = 241 TOOL_OPENWATCOM_COMPILE_CXX_OUTPUT = $(obj).err 272 TOOL_OPENWATCOM_COMPILE_CXX_OUTPUT_MAYBE = $(obj).err 273 ifdef TOOL_OPENWATCOM_USE_KSUBMIT 242 274 define TOOL_OPENWATCOM_COMPILE_CXX_CMDS 243 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_CXX) \ 244 $(flags) \ 245 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 246 $(addprefix -d, $(defs)) \ 247 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 248 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 249 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 250 $(QUIET)$(APPEND) -n $(obj).err 251 ## @todo dependencies 252 endef 275 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,, -P $(DEP_OBJ_INT) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)") \ 276 $(TOOL_OPENWATCOM_CXX) \ 277 $(flags) \ 278 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 279 $(addprefix -d, $(defs)) \ 280 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 281 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 282 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 283 endef 284 else 285 define TOOL_OPENWATCOM_COMPILE_CXX_CMDS 286 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_CXX) \ 287 $(flags) \ 288 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \ 289 $(addprefix -d, $(defs)) \ 290 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \ 291 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \ 292 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source))) 293 $(QUIET)$(DEP_OBJ) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)" 294 endef 295 endif 253 296 254 297 TOOL_OPENWATCOM_COMPILE_RC_OUTPUT = … … 256 299 TOOL_OPENWATCOM_COMPILE_RC_DEPORD = 257 300 define TOOL_OPENWATCOM_COMPILE_RC_CMDS 258 $(QUIET) 301 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \ 259 302 $(TOOL_OPENWATCOM_RC) -r\ 260 303 $(flags) \
Note:
See TracChangeset
for help on using the changeset viewer.