source: trunk/kBuild/tools/OPENWATCOM.kmk

Last change on this file was 3578, checked in by bird, 3 years ago

tools/*WATCOM*: Converted to new DEFS quoting style.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.2 KB
RevLine 
[2065]1# $Id: OPENWATCOM.kmk 3578 2023-01-05 00:42:25Z bird $
2## @file
[2068]3# kBuild Tool Config - Open Watcom v1.4 and later.
[2065]4#
5
6#
[3121]7# Copyright (c) 2008-2017 knut st. osmundsen <bird-kBuild-spam-xviiv@anduin.net>
[2065]8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26# As a special exception you are granted permission to include this file, via
27# the kmk include directive, as you wish without this in itself causing the
28# resulting makefile, program or whatever to be covered by the GPL license.
29# This exception does not however invalidate any other reasons why the makefile,
30# program, whatever should not be covered the GPL.
31#
32#
33
[2068]34TOOL_OPENWATCOM = Open Watcom v1.4 and later (generic)
[2065]35
[2068]36ifeq ($(PATH_TOOL_OPENWATCOM),)
37 ifeq ($(PATH_TOOL_OPENWATCOM),)
[2750]38 PATH_TOOL_OPENWATCOM := $(wildcard $(KBUILD_DEVTOOLS_HST)/openwatcom/v*)
[2065]39 endif
[2068]40 ifeq ($(PATH_TOOL_OPENWATCOM),)
[2726]41 PATH_TOOL_OPENWATCOM := $(wildcard $(KBUILD_DEVTOOLS_TRG)/openwatcom/v*)
[2065]42 endif
[2075]43 ifeq ($(PATH_TOOL_OPENWATCOM),)
[2726]44 PATH_TOOL_OPENWATCOM := $(wildcard $(KBUILD_DEVTOOLS)/common/openwatcom/v*)
[2075]45 endif
[2078]46 ifeq ($(PATH_TOOL_OPENWATCOM)$(KBUILD_HOST),os2)
47 if1of ($(USER) $(USERNAME) $(LOGNAME), bird)
48 PATH_TOOL_OPENWATCOM := $(wildcard d:/dev/Watcom/v1.*)
49 endif
[2065]50 endif
[2068]51 PATH_TOOL_OPENWATCOM := $(firstword $(sort $(PATH_TOOL_OPENWATCOM)))
[2065]52 # if not found, we'll enter 'pathless' mode.
53else
54 # Resolve any fancy stuff once and for all.
[2068]55 PATH_TOOL_OPENWATCOM := $(PATH_TOOL_OPENWATCOM)
[2065]56endif
57
[2895]58# Clear the feature indicator if not available on the current host.
59ifdef TOOL_OPENWATCOM_USE_KSUBMIT
60 ifneq ($(KBUILD_HOST),win)
61 override TOOL_OPENWATCOM_USE_KSUBMIT :=
62 endif
63endif
64
[2068]65ifneq ($(PATH_TOOL_OPENWATCOM),)
66 TOOL_OPENWATCOM_PATHLESS := no
[2065]67
[2575]68 ifeq ($(KBUILD_HOST),darwin)
69 PATH_TOOL_OPENWATCOM_BIN = $(PATH_TOOL_OPENWATCOM)/binosx
70 TOOL_OPENWATCOM_ENV_SETUP ?= $(REDIRECT) \
[2576]71 -E 'PATH=$(PATH_TOOL_OPENWATCOM_BIN):$(PATH_TOOL_OPENWATCOM)/binl:$(PATH_TOOL_OPENWATCOM)/binw:$(PATH)' \
[2575]72 -E 'WATCOM=$(PATH_TOOL_OPENWATCOM)' \
73 -E 'EDPATH=$(PATH_TOOL_OPENWATCOM)/EDDAT' \
74 -E 'LIB=$1' \
75 -E 'INCLUDE=' \
[2731]76 $2 --
[2575]77 else ifeq ($(KBUILD_HOST),freebsd)
78 PATH_TOOL_OPENWATCOM_BIN = $(PATH_TOOL_OPENWATCOM)/binfbsd
79 TOOL_OPENWATCOM_ENV_SETUP ?= $(REDIRECT) \
[2576]80 -E 'PATH=$(PATH_TOOL_OPENWATCOM_BIN):$(PATH_TOOL_OPENWATCOM)/binl:$(PATH_TOOL_OPENWATCOM)/binw:$(PATH)' \
[2575]81 -E 'WATCOM=$(PATH_TOOL_OPENWATCOM)' \
82 -E 'EDPATH=$(PATH_TOOL_OPENWATCOM)/EDDAT' \
83 -E 'LIB=$1' \
84 -E 'INCLUDE=' \
[2731]85 $2 --
[2575]86 else ifeq ($(KBUILD_HOST),linux)
87 PATH_TOOL_OPENWATCOM_BIN = $(PATH_TOOL_OPENWATCOM)/binl
88 TOOL_OPENWATCOM_ENV_SETUP ?= $(REDIRECT) \
89 -E 'PATH=$(PATH_TOOL_OPENWATCOM_BIN):$(PATH_TOOL_OPENWATCOM)/binw:$(PATH)' \
90 -E 'WATCOM=$(PATH_TOOL_OPENWATCOM)' \
91 -E 'EDPATH=$(PATH_TOOL_OPENWATCOM)/EDDAT' \
92 -E 'LIB=$1' \
93 -E 'INCLUDE=' \
[2731]94 $2 --
[2575]95 else ifeq ($(KBUILD_HOST),os2)
[2068]96 PATH_TOOL_OPENWATCOM_BIN = $(PATH_TOOL_OPENWATCOM)/binp
97 TOOL_OPENWATCOM_ENV_SETUP ?= $(REDIRECT) \
98 -E 'BEGINLIBPATH=$(PATH_TOOL_OPENWATCOM)/binp/dll;$(BEGINLIBPATH)' \
[2070]99 -E 'LIBPATHSTRICT=T' \
[2575]100 -E 'PATH=$(PATH_TOOL_OPENWATCOM_BIN);$(PATH_TOOL_OPENWATCOM)/binw;$(PATH)' \
[2068]101 -E 'WATCOM=$(PATH_TOOL_OPENWATCOM)' \
[2079]102 -E 'EDPATH=$(PATH_TOOL_OPENWATCOM)/EDDAT' \
[2065]103 -E 'LIB=$1' \
104 -E 'INCLUDE=' \
[2731]105 $2 --
[2575]106 else ifeq ($(KBUILD_HOST),solaris)
107 PATH_TOOL_OPENWATCOM_BIN = $(PATH_TOOL_OPENWATCOM)/binsol
[2079]108 TOOL_OPENWATCOM_ENV_SETUP ?= $(REDIRECT) \
[2576]109 -E 'PATH=$(PATH_TOOL_OPENWATCOM_BIN):$(PATH_TOOL_OPENWATCOM)/binl:$(PATH_TOOL_OPENWATCOM)/binw:$(PATH)' \
[2079]110 -E 'WATCOM=$(PATH_TOOL_OPENWATCOM)' \
111 -E 'EDPATH=$(PATH_TOOL_OPENWATCOM)/EDDAT' \
112 -E 'LIB=$1' \
113 -E 'INCLUDE=' \
[2731]114 $2 --
[2065]115 else
[2068]116 PATH_TOOL_OPENWATCOM_BIN = $(PATH_TOOL_OPENWATCOM)/binnt
[2882]117 TOOL_OPENWATCOM_ENV_SETUP ?= $(if-expr defined(TOOL_OPENWATCOM_USE_KSUBMIT),kmk_builtin_kSubmit --32-bit,$(REDIRECT)) \
[2575]118 -E 'PATH=$(PATH_TOOL_OPENWATCOM_BIN);$(PATH_TOOL_OPENWATCOM)/binw;$(PATH)' \
[2068]119 -E 'WATCOM=$(PATH_TOOL_OPENWATCOM)' \
[2079]120 -E 'EDPATH=$(PATH_TOOL_OPENWATCOM)/EDDAT' \
[2065]121 -E 'LIB=$1' \
122 -E 'INCLUDE=' \
[2731]123 $2 --
[2065]124 endif
125
[2068]126 TOOL_OPENWATCOM_CC ?= $(PATH_TOOL_OPENWATCOM_BIN)/wcc386$(HOSTSUFF_EXE)
127 TOOL_OPENWATCOM_CC16 ?= $(PATH_TOOL_OPENWATCOM_BIN)/wcc$(HOSTSUFF_EXE)
128 TOOL_OPENWATCOM_CXX ?= $(PATH_TOOL_OPENWATCOM_BIN)/wpp386$(HOSTSUFF_EXE)
129 TOOL_OPENWATCOM_CXX16 ?= $(PATH_TOOL_OPENWATCOM_BIN)/wpp$(HOSTSUFF_EXE)
130 TOOL_OPENWATCOM_AS ?= $(PATH_TOOL_OPENWATCOM_BIN)/wasm$(HOSTSUFF_EXE)
131 TOOL_OPENWATCOM_AR ?= $(PATH_TOOL_OPENWATCOM_BIN)/wlib$(HOSTSUFF_EXE)
[2079]132 TOOL_OPENWATCOM_RC ?= $(PATH_TOOL_OPENWATCOM_BIN)/wrc$(HOSTSUFF_EXE)
[2068]133 TOOL_OPENWATCOM_LD ?= $(PATH_TOOL_OPENWATCOM_BIN)/wcl386$(HOSTSUFF_EXE)
134 TOOL_OPENWATCOM_LD16 ?= $(PATH_TOOL_OPENWATCOM_BIN)/wcl$(HOSTSUFF_EXE)
[2079]135 TOOL_OPENWATCOM_WLINK ?= $(PATH_TOOL_OPENWATCOM_BIN)/wlink$(HOSTSUFF_EXE)
[2065]136
137else
138 # Pathless, relies on the environment.
[2068]139 TOOL_OPENWATCOM_PATHLESS :=
140 TOOL_OPENWATCOM_ENV_SETUP ?= $(REDIRECT) \
[2065]141 -E 'LIB=$1' \
142 -E 'INCLUDE=' \
[2731]143 $2 --
[2068]144 TOOL_OPENWATCOM_CC ?= wcc386$(HOSTSUFF_EXE)
145 TOOL_OPENWATCOM_CC16 ?= wcc$(HOSTSUFF_EXE)
146 TOOL_OPENWATCOM_CXX ?= wpp386$(HOSTSUFF_EXE)
147 TOOL_OPENWATCOM_CXX16 ?= wpp$(HOSTSUFF_EXE)
148 TOOL_OPENWATCOM_AS ?= wasm$(HOSTSUFF_EXE)
149 TOOL_OPENWATCOM_AR ?= wlib$(HOSTSUFF_EXE)
[2079]150 TOOL_OPENWATCOM_RC ?= wrc$(HOSTSUFF_EXE)
[2068]151 TOOL_OPENWATCOM_LD ?= wcl386$(HOSTSUFF_EXE)
152 TOOL_OPENWATCOM_LD16 ?= wcl$(HOSTSUFF_EXE)
[2079]153 TOOL_OPENWATCOM_WLINK ?= wlink$(HOSTSUFF_EXE)
[2075]154
[2065]155endif
[2075]156
[2749]157if $(KBUILD_KMK_REVISION) >= 2747
[2895]158 TOOL_OPENWATCOM_ENV_SETUP_BD ?= $(call TOOL_OPENWATCOM_ENV_SETUP,$1, --wcc-brain-damage $2)
[2749]159else
160 TOOL_OPENWATCOM_ENV_SETUP_BD ?= $(call TOOL_OPENWATCOM_ENV_SETUP,$1,$2)
161endif
162
163
[2663]164# Functions for changing slashes (SQ = single quoted).
[2572]165if1of ($(KBUILD_HOST), os2 win)
166 TOOL_OPENWATCOM_FIX_SLASHES = $(subst /,\\,$1)
[2663]167 TOOL_OPENWATCOM_FIX_SLASHES_SQ = $(subst /,\,$1)
[2572]168else
169 TOOL_OPENWATCOM_FIX_SLASHES = $1
[2663]170 TOOL_OPENWATCOM_FIX_SLASHES_SQ = $1
[2572]171endif
172
[2065]173# General Properties used by kBuild
[2081]174TOOL_OPENWATCOM_ASOBJSUFF ?= .obj
175TOOL_OPENWATCOM_ASFLAGS ?= -zq
[2086]176TOOL_OPENWATCOM_ASFLAGS.dos ?= -bt=dos
[2081]177TOOL_OPENWATCOM_ASFLAGS.os2 ?= -bt=os2
178TOOL_OPENWATCOM_ASFLAGS.win ?= -bt=nt
[2069]179
[2068]180TOOL_OPENWATCOM_COBJSUFF ?= .obj
181TOOL_OPENWATCOM_CFLAGS ?= -zq
[2086]182TOOL_OPENWATCOM_CFLAGS.dos ?= -bt=dos
[2068]183TOOL_OPENWATCOM_CFLAGS.os2 ?= -bt=os2
184TOOL_OPENWATCOM_CFLAGS.win ?= -bt=nt
[2086]185ifdef PATH_TOOL_OPENWATCOM
186 TOOL_OPENWATCOM_CINCS ?= $(PATH_TOOL_OPENWATCOM)/h
187endif
[2065]188
[2068]189TOOL_OPENWATCOM_CXXOBJSUFF ?= .obj
190TOOL_OPENWATCOM_CXXFLAGS ?= -zq
[2086]191TOOL_OPENWATCOM_CXXFLAGS.dos ?= -bt=dos
[2068]192TOOL_OPENWATCOM_CXXFLAGS.os2 ?= -bt=os2
193TOOL_OPENWATCOM_CXXFLAGS.win ?= -bt=nt
[2086]194ifdef PATH_TOOL_OPENWATCOM
195 TOOL_OPENWATCOM_CXXINCS ?= $(PATH_TOOL_OPENWATCOM)/h
196endif
[2065]197
[2068]198TOOL_OPENWATCOM_RCOBJSUFF ?= .res
199TOOL_OPENWATCOM_RCFLAGS ?= -r
200TOOL_OPENWATCOM_RCFLAGS.os2 ?= -bt=os2
201TOOL_OPENWATCOM_RCFLAGS.win ?= -bt=nt
[2086]202ifdef PATH_TOOL_OPENWATCOM
203 TOOL_OPENWATCOM_RCINCS ?= $(PATH_TOOL_OPENWATCOM)/h
204endif
[2065]205
[2070]206TOOL_OPENWATCOM_ARFLAGS ?= -q
[2068]207TOOL_OPENWATCOM_ARLIBSUFF ?= .lib
[2065]208
[2068]209TOOL_OPENWATCOM_LDFLAGS ?= -zq -y
[2086]210TOOL_OPENWATCOM_LDFLAGS.dos ?= -bt=dos
[2068]211TOOL_OPENWATCOM_LDFLAGS.os2 ?= -bt=os2
212TOOL_OPENWATCOM_LDFLAGS.win ?= -bt=nt
[2065]213
214
[2069]215TOOL_OPENWATCOM_COMPILE_AS_DEPEND =
216TOOL_OPENWATCOM_COMPILE_AS_DEPORD =
[2897]217TOOL_OPENWATCOM_COMPILE_AS_OUTPUT =
[2895]218TOOL_OPENWATCOM_COMPILE_AS_OUTPUT_MAYBE = $(obj).err
219ifdef TOOL_OPENWATCOM_USE_KSUBMIT
[2069]220define TOOL_OPENWATCOM_COMPILE_AS_CMDS
[2895]221 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,, -P $(DEP_OBJ_INT) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)") \
222 $(TOOL_OPENWATCOM_AS) \
[2069]223 $(flags) \
[2572]224 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
[3578]225 $(qaddprefix sh,-d, $(defs)) \
[2572]226 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
227 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
228 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
[2069]229endef
[2895]230else
231define TOOL_OPENWATCOM_COMPILE_AS_CMDS
232 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_AS) \
233 $(flags) \
234 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
[3578]235 $(qaddprefix sh,-d, $(defs)) \
[2895]236 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
237 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
238 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
239 $(QUIET)$(DEP_OBJ) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)"
240endef
241endif
[2069]242
[2075]243
[2068]244TOOL_OPENWATCOM_COMPILE_C_DEPEND =
245TOOL_OPENWATCOM_COMPILE_C_DEPORD =
[2897]246TOOL_OPENWATCOM_COMPILE_C_OUTPUT =
[2895]247TOOL_OPENWATCOM_COMPILE_C_OUTPUT_MAYBE = $(obj).err
248ifdef TOOL_OPENWATCOM_USE_KSUBMIT
[2068]249define TOOL_OPENWATCOM_COMPILE_C_CMDS
[2895]250 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,, -P $(DEP_OBJ_INT) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)") \
251 $(TOOL_OPENWATCOM_CC) \
252 $(flags) \
253 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
[3578]254 $(qaddprefix sh,-d, $(defs)) \
[2895]255 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
256 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
257 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
258endef
259else
260define TOOL_OPENWATCOM_COMPILE_C_CMDS
[2749]261 $(QUIET) $(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_CC) \
[2065]262 $(flags) \
[2572]263 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
[3578]264 $(qaddprefix sh,-d, $(defs)) \
[2572]265 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
266 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
267 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
[2895]268 $(QUIET)$(DEP_OBJ) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)"
[2065]269endef
[2895]270endif
[2065]271
[2068]272TOOL_OPENWATCOM_COMPILE_CXX_DEPEND =
273TOOL_OPENWATCOM_COMPILE_CXX_DEPORD =
[2897]274TOOL_OPENWATCOM_COMPILE_CXX_OUTPUT =
[2895]275TOOL_OPENWATCOM_COMPILE_CXX_OUTPUT_MAYBE = $(obj).err
276ifdef TOOL_OPENWATCOM_USE_KSUBMIT
[2068]277define TOOL_OPENWATCOM_COMPILE_CXX_CMDS
[2895]278 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,, -P $(DEP_OBJ_INT) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)") \
279 $(TOOL_OPENWATCOM_CXX) \
[2065]280 $(flags) \
[2572]281 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
[3578]282 $(qaddprefix sh,-d, $(defs)) \
[2572]283 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
284 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
285 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
[2065]286endef
[2895]287else
288define TOOL_OPENWATCOM_COMPILE_CXX_CMDS
289 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_CXX) \
290 $(flags) \
291 $(addsuffix , $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs)))) \
[3578]292 $(qaddprefix sh,-d, $(defs)) \
[2895]293 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
294 -fr=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)).err \
295 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
296 $(QUIET)$(DEP_OBJ) -s -f -q -o "$(dep)" -t "$(obj)" "$(obj)"
297endef
298endif
[2065]299
[2068]300TOOL_OPENWATCOM_COMPILE_RC_OUTPUT =
301TOOL_OPENWATCOM_COMPILE_RC_DEPEND =
302TOOL_OPENWATCOM_COMPILE_RC_DEPORD =
303define TOOL_OPENWATCOM_COMPILE_RC_CMDS
[2895]304 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
[2068]305 $(TOOL_OPENWATCOM_RC) -r\
[2065]306 $(flags) \
[2572]307 $(addprefix -i=, $(call TOOL_OPENWATCOM_FIX_SLASHES,$(incs))) \
[3578]308 $(qaddprefix sh,-d, $(defs)) \
[2572]309 -fo=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(obj)) \
310 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(abspath $(source)))
[2065]311endef
312
[3303]313TOOL_OPENWATCOM_LINK_LIBRARY_OUTPUT_MAYBE_PRECIOUS = $(outbase).rsp
[2068]314TOOL_OPENWATCOM_LINK_LIBRARY_DEPEND = $(othersrc)
315TOOL_OPENWATCOM_LINK_LIBRARY_DEPORD =
316define TOOL_OPENWATCOM_LINK_LIBRARY_CMDS
[2732]317 $(QUIET)$(APPEND) -tn $(outbase).rsp $(foreach obj,$(call TOOL_OPENWATCOM_FIX_SLASHES,$(objs) $(filter-out %.imp,$(othersrc))),'+"$(obj)"')
318 $(if $(filter %.imp,$(othersrc)),$(SED) \
319 -e 's/;.*$(DOLLAR)$(DOLLAR)//g' \
320 -e 's/^[[:space:]][[:space:]]*//g' \
321 -e 's/[[:space:]][[:space:]]*$(DOLLAR)$(DOLLAR)//g' \
322 -e '/^[[:space:]]*$(DOLLAR)$(DOLLAR)/d' \
323 -e 's/[[:space:]][[:space:]]*/ /g' \
324 -e 's/\([^ ][^ ]*\) \([^ ][^ ]*\) \([^ ][^ ]*\) \([^ ][^ ]*\).*/++\1.\2.\3/' \
325 $(filter %.imp,$(othersrc)) \
326 --append $(outbase).rsp \
327 )
[2749]328 $(QUIET)$(TOOL_OPENWATCOM_ENV_SETUP_BD) $(TOOL_OPENWATCOM_AR) $(flags) $(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) @$(outbase).rsp
[2065]329endef
330
[3303]331TOOL_OPENWATCOM_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map
[2068]332TOOL_OPENWATCOM_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
333TOOL_OPENWATCOM_LINK_PROGRAM_DEPORD =
334define TOOL_OPENWATCOM_LINK_PROGRAM_CMDS
[2749]335 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
[2068]336 $(TOOL_OPENWATCOM_LD) \
[2065]337 $(flags) \
[2572]338 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
339 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \
340 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \
341 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \
342 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc))
[2068]343 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
344 $(TOOL_OPENWATCOM_RC) \
[2065]345 $(filter -bt=%,$(flags)) \
[2572]346 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
347 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs))))
[2065]348endef
349
[3303]350TOOL_OPENWATCOM_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(outbase).map
[2068]351TOOL_OPENWATCOM_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
352TOOL_OPENWATCOM_LINK_DLL_DEPORD =
353define TOOL_OPENWATCOM_LINK_DLL_CMDS
[2749]354 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
[2068]355 $(TOOL_OPENWATCOM_LD) \
[2065]356 $(flags) \
[2572]357 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
358 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \
359 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \
360 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \
361 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc))
[2068]362 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
363 $(TOOL_OPENWATCOM_RC) \
[2065]364 $(filter -bt=%,$(flags)) \
[2572]365 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
366 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs))))
[2065]367endef
368
[3303]369TOOL_OPENWATCOM_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map
[2068]370TOOL_OPENWATCOM_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
371TOOL_OPENWATCOM_LINK_SYSMOD_DEPORD =
372define TOOL_OPENWATCOM_LINK_SYSMOD_CMDS
[2749]373 $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP_BD,$(subst $(SP),,$(addsuffix ;,$(libpath))),-C $(dir $(out))) \
[2068]374 $(TOOL_OPENWATCOM_LD) \
[2065]375 $(flags) \
[2572]376 -fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
377 -fm=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(outbase).map) \
378 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter-out %.res,$(objs))) \
379 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(libs)) \
380 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(othersrc))
[2068]381 $(if $(filter %.res,$(objs)), $(QUIET)$(call TOOL_OPENWATCOM_ENV_SETUP) \
382 $(TOOL_OPENWATCOM_RC) \
[2065]383 $(filter -bt=%,$(flags)) \
[2572]384 /fe=$(call TOOL_OPENWATCOM_FIX_SLASHES,$(out)) \
385 $(call TOOL_OPENWATCOM_FIX_SLASHES,$(filter %.res,$(objs))))
[2065]386endef
387
Note: See TracBrowser for help on using the repository browser.