1 | # $Id: GCC3OMF.kmk 3393 2020-06-30 17:11:42Z bird $
|
---|
2 | ## @file
|
---|
3 | # kBuild Tool Config - GCC v3 targeting OS/2 OMF.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (c) 2004-2017 knut st. osmundsen <bird-kBuild-spam-xviiv@anduin.net>
|
---|
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 |
|
---|
34 | TOOL_GCC3OMF := GCC v3 targeting OS/2 OMF.
|
---|
35 |
|
---|
36 | # Tool Specific Properties
|
---|
37 | ifndef TOOL_GCC3OMF_PREFIX
|
---|
38 | TOOL_GCC3OMF_PREFIX :=
|
---|
39 | endif
|
---|
40 | ifndef TOOL_GCC3OMF_SUFFIX
|
---|
41 | TOOL_GCC3OMF_SUFFIX := $(HOSTSUFF_EXE)
|
---|
42 | endif
|
---|
43 | TOOL_GCC3OMF_PREFIX2 ?=
|
---|
44 | TOOL_GCC3OMF_SUFFIX2 ?= $(HOSTSUFF_EXE)
|
---|
45 | TOOL_GCC3OMF_PREFIX3 ?=
|
---|
46 | TOOL_GCC3OMF_SUFFIX3 ?= $(HOSTSUFF_EXE)
|
---|
47 | TOOL_GCC3OMF_CC ?= $(TOOL_GCC3OMF_PREFIX)gcc$(TOOL_GCC3OMF_SUFFIX)
|
---|
48 | TOOL_GCC3OMF_CXX ?= $(TOOL_GCC3OMF_PREFIX)g++$(TOOL_GCC3OMF_SUFFIX)
|
---|
49 | TOOL_GCC3OMF_AS ?= $(TOOL_GCC3OMF_PREFIX)gcc$(TOOL_GCC3OMF_SUFFIX)
|
---|
50 | TOOL_GCC3OMF_AR ?= $(TOOL_GCC3OMF_PREFIX2)emxomfar$(TOOL_GCC3OMF_SUFFIX2)
|
---|
51 | TOOL_GCC3OMF_AR_IMP ?= $(TOOL_GCC3OMF_PREFIX2)emximp$(TOOL_GCC3OMF_SUFFIX2)
|
---|
52 | TOOL_GCC3OMF_LD ?= $(TOOL_GCC3OMF_PREFIX)gcc$(TOOL_GCC3OMF_SUFFIX)
|
---|
53 | TOOL_GCC3OMF_LD_SYSMOD ?= $(TOOL_GCC3OMF_PREFIX)gcc$(TOOL_GCC3OMF_SUFFIX)
|
---|
54 | TOOL_GCC3OMF_LDFLAGS.dll ?= -shared -Zdll
|
---|
55 | TOOL_GCC3OMF_LDFLAGS.sysmod ?= -nostdlib
|
---|
56 | TOOL_GCC3OMF_LD_MAP ?= -Zmap=$(1)
|
---|
57 | TOOL_GCC3OMF_LD_SYSMOD_MAP ?= -Zmap=$(1)
|
---|
58 |
|
---|
59 | TOOL_GCC3OMF_RC = $(TOOL_GCC3OMF_PREFIX3)rc$(TOOL_GCC3OMF_SUFFIX3)
|
---|
60 |
|
---|
61 | ifdef SLKRUNS
|
---|
62 | TOOL_GCC3OMF_CC += -fmessage-length=0
|
---|
63 | TOOL_GCC3OMF_CXX += -fmessage-length=0
|
---|
64 | endif
|
---|
65 |
|
---|
66 | # General Properties used by kBuild
|
---|
67 | TOOL_GCC3OMF_COBJSUFF ?= .o
|
---|
68 | TOOL_GCC3OMF_CFLAGS ?= -Zomf
|
---|
69 | TOOL_GCC3OMF_CFLAGS.debug ?= -g
|
---|
70 | TOOL_GCC3OMF_CFLAGS.profile ?= -O2 #-g -pg
|
---|
71 | TOOL_GCC3OMF_CFLAGS.release ?= -O2
|
---|
72 | TOOL_GCC3OMF_CINCS ?=
|
---|
73 | TOOL_GCC3OMF_CDEFS ?=
|
---|
74 |
|
---|
75 | TOOL_GCC3OMF_CXXOBJSUFF ?= .o
|
---|
76 | TOOL_GCC3OMF_CXXOBJSUFF ?= .o
|
---|
77 | TOOL_GCC3OMF_CXXFLAGS ?= -Zomf
|
---|
78 | TOOL_GCC3OMF_CXXFLAGS.debug ?= -g
|
---|
79 | TOOL_GCC3OMF_CXXFLAGS.profile ?= -O2 #-g -pg
|
---|
80 | TOOL_GCC3OMF_CXXFLAGS.release ?= -O2
|
---|
81 | TOOL_GCC3OMF_CXXINCS ?=
|
---|
82 | TOOL_GCC3OMF_CXXDEFS ?=
|
---|
83 |
|
---|
84 | TOOL_GCC3OMF_ASFLAGS ?= -x assembler-with-cpp -Zomf
|
---|
85 | TOOL_GCC3OMF_ASFLAGS.debug ?= -g
|
---|
86 | TOOL_GCC3OMF_ASFLAGS.profile ?= -g
|
---|
87 | TOOL_GCC3OMF_ASOBJSUFF ?= .obj
|
---|
88 |
|
---|
89 | TOOL_GCC3OMF_RCOBJSUFF ?= .res
|
---|
90 | TOOL_GCC3OMF_RCFLAGS ?= -n
|
---|
91 | TOOL_GCC3OMF_RCINCS ?= $(shell $(TOOL_GCC3OMF_CXX) -E -x c++ - 2>&1 < /dev/null \
|
---|
92 | | $(SED_EXT) -e "/search starts here/,/[Ee]nd of search list/!d" -e "/^ /!d")
|
---|
93 |
|
---|
94 | TOOL_GCC3OMF_ARFLAGS ?= cr
|
---|
95 | TOOL_GCC3OMF_ARLIBSUFF ?= .lib
|
---|
96 |
|
---|
97 | TOOL_GCC3OMF_LDFLAGS ?= -Zomf
|
---|
98 | TOOL_GCC3OMF_LDFLAGS.debug ?= -g
|
---|
99 | TOOL_GCC3OMF_LDFLAGS.profile ?= -g
|
---|
100 |
|
---|
101 |
|
---|
102 | ## Compile C source.
|
---|
103 | # @param $(target) Normalized main target name.
|
---|
104 | # @param $(source) Source filename (relative).
|
---|
105 | # @param $(obj) Object file name. This shall be (re)created by the compilation.
|
---|
106 | # @param $(dep) Dependcy file. This shall be (re)created by the compilation.
|
---|
107 | # @param $(flags) Flags.
|
---|
108 | # @param $(defs) Definitions. No -D or something.
|
---|
109 | # @param $(incs) Includes. No -I or something.
|
---|
110 | # @param $(dirdep) Directory creation dependency.
|
---|
111 | # @param $(deps) Other dependencies.
|
---|
112 | #
|
---|
113 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
114 | # @param $(objsuff) Object suffix.
|
---|
115 | TOOL_GCC3OMF_COMPILE_C_DEPEND =
|
---|
116 | TOOL_GCC3OMF_COMPILE_C_DEPORD =
|
---|
117 | ifdef KBUILD_USE_KOBJCACHE
|
---|
118 | TOOL_GCC3OMF_COMPILE_C_USES_KOBJCACHE = 1
|
---|
119 | TOOL_GCC3OMF_COMPILE_C_OUTPUT = $(outbase).i
|
---|
120 | define TOOL_GCC3OMF_COMPILE_C_CMDS
|
---|
121 | $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
|
---|
122 | --kObjCache-cpp $(outbase).i\
|
---|
123 | $(TOOL_GCC3OMF_CC) -E -o -\
|
---|
124 | $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
|
---|
125 | -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
|
---|
126 | $(abspath $(source))\
|
---|
127 | --kObjCache-cc $(obj)\
|
---|
128 | $(TOOL_GCC3OMF_CC) -c\
|
---|
129 | $(flags) -fpreprocessed -x c\
|
---|
130 | -o $(obj)\
|
---|
131 | -
|
---|
132 | $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
|
---|
133 | endef
|
---|
134 | else # !KBUILD_USE_KOBJCACHE
|
---|
135 | TOOL_GCC3OMF_COMPILE_C_OUTPUT =
|
---|
136 | define TOOL_GCC3OMF_COMPILE_C_CMDS
|
---|
137 | $(QUIET)$(TOOL_GCC3OMF_CC) -c\
|
---|
138 | $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
|
---|
139 | -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \
|
---|
140 | -o $(obj)\
|
---|
141 | $(abspath $(source))
|
---|
142 | $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
|
---|
143 | endef
|
---|
144 | endif # !KBUILD_USE_KOBJCACHE
|
---|
145 |
|
---|
146 |
|
---|
147 | ## Compile C++ source.
|
---|
148 | # @param $(target) Normalized main target name.
|
---|
149 | # @param $(source) Source filename (relative).
|
---|
150 | # @param $(obj) Object file name. This shall be (re)created by the compilation.
|
---|
151 | # @param $(dep) Dependcy file. This shall be (re)created by the compilation.
|
---|
152 | # @param $(flags) Flags.
|
---|
153 | # @param $(defs) Definitions. No -D or something.
|
---|
154 | # @param $(incs) Includes. No -I or something.
|
---|
155 | # @param $(dirdep) Directory creation dependency.
|
---|
156 | # @param $(deps) Other dependencies.
|
---|
157 | #
|
---|
158 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
159 | # @param $(objsuff) Object suffix.
|
---|
160 | TOOL_GCC3OMF_COMPILE_CXX_DEPEND =
|
---|
161 | TOOL_GCC3OMF_COMPILE_CXX_DEPORD =
|
---|
162 | ifdef KBUILD_USE_KOBJCACHE
|
---|
163 | TOOL_GCC3OMF_COMPILE_CXX_USES_KOBJCACHE = 1
|
---|
164 | TOOL_GCC3OMF_COMPILE_CXX_OUTPUT = $(outbase).ii
|
---|
165 | define TOOL_GCC3OMF_COMPILE_CXX_CMDS
|
---|
166 | $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\
|
---|
167 | --kObjCache-cpp $(outbase).ii\
|
---|
168 | $(TOOL_GCC3OMF_CXX) -E -o -\
|
---|
169 | $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
|
---|
170 | -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
|
---|
171 | $(abspath $(source))\
|
---|
172 | --kObjCache-cc $(obj)\
|
---|
173 | $(TOOL_GCC3OMF_CXX) -c\
|
---|
174 | $(flags) -fpreprocessed -x c++\
|
---|
175 | -o $(obj)\
|
---|
176 | -
|
---|
177 | $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
|
---|
178 | endef
|
---|
179 | else # !KBUILD_USE_KOBJCACHE
|
---|
180 | TOOL_GCC3OMF_COMPILE_CXX_OUTPUT =
|
---|
181 | define TOOL_GCC3OMF_COMPILE_CXX_CMDS
|
---|
182 | $(QUIET)$(TOOL_GCC3OMF_CXX) -c\
|
---|
183 | $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
|
---|
184 | -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP \
|
---|
185 | -o $(obj)\
|
---|
186 | $(abspath $(source))
|
---|
187 | $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
|
---|
188 | endef
|
---|
189 | endif # !KBUILD_USE_KOBJCACHE
|
---|
190 |
|
---|
191 |
|
---|
192 | ## Compile Assembly source.
|
---|
193 | # @param $(target) Normalized main target name.
|
---|
194 | # @param $(source) Source filename (relative).
|
---|
195 | # @param $(obj) Object file name. This shall be (re)created by the compilation.
|
---|
196 | # @param $(dep) Dependcy file. This shall be (re)created by the compilation.
|
---|
197 | # @param $(flags) Flags.
|
---|
198 | # @param $(defs) Definitions. No -D or something.
|
---|
199 | # @param $(incs) Includes. No -I or something.
|
---|
200 | # @param $(dirdep) Directory creation dependency.
|
---|
201 | # @param $(deps) Other dependencies.
|
---|
202 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
203 | # @param $(objsuff) Object suffix.
|
---|
204 | #
|
---|
205 | TOOL_GCC3OMF_COMPILE_AS_OUTPUT =
|
---|
206 | TOOL_GCC3OMF_COMPILE_AS_DEPEND =
|
---|
207 | TOOL_GCC3OMF_COMPILE_AS_DEPORD =
|
---|
208 | define TOOL_GCC3OMF_COMPILE_AS_CMDS
|
---|
209 | $(QUIET)$(TOOL_GCC3OMF_AS) -c\
|
---|
210 | $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
|
---|
211 | -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
|
---|
212 | -o $(obj)\
|
---|
213 | $(abspath $(source))
|
---|
214 | $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
|
---|
215 | endef
|
---|
216 |
|
---|
217 |
|
---|
218 | ## Compile resource source.
|
---|
219 | # @param $(target) Normalized main target name.
|
---|
220 | # @param $(source) Source filename (relative).
|
---|
221 | # @param $(obj) Object file name. This shall be (re)created by the compilation.
|
---|
222 | # @param $(dep) Dependcy file. This shall be (re)created by the compilation.
|
---|
223 | # @param $(flags) Flags.
|
---|
224 | # @param $(defs) Definitions. No -D or something.
|
---|
225 | # @param $(incs) Includes. No -I or something.
|
---|
226 | # @param $(dirdep) Directory creation dependency.
|
---|
227 | # @param $(deps) Other dependencies.
|
---|
228 | #
|
---|
229 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
230 | # @param $(objsuff) Object suffix.
|
---|
231 | TOOL_GCC3OMF_COMPILE_RC_OUTPUT =
|
---|
232 | TOOL_GCC3OMF_COMPILE_RC_DEPEND =
|
---|
233 | TOOL_GCC3OMF_COMPILE_RC_DEPORD =
|
---|
234 | define TOOL_GCC3OMF_COMPILE_RC_CMDS
|
---|
235 | $(QUIET)$(REDIRECT) -E 'INCLUDE=' -- $(TOOL_GCC3OMF_RC) -r \
|
---|
236 | $(flags) $(addprefix -i, $(subst /,\\,$(subst /@unixroot,$(UNIXROOT),$(incs)))) $(addprefix -d, $(defs))\
|
---|
237 | $(subst /,\\,$(abspath $(source))) \
|
---|
238 | $(obj)
|
---|
239 | endef
|
---|
240 | ## Link library
|
---|
241 | # @param $(target) Normalized main target name.
|
---|
242 | # @param $(out) Library name.
|
---|
243 | # @param $(objs) Object files to put in the library.
|
---|
244 | # @param $(flags) Flags.
|
---|
245 | # @param $(dirdep) Directory creation dependency.
|
---|
246 | # @param $(deps) Other dependencies.
|
---|
247 | # @param $(othersrc) Unhandled sources.
|
---|
248 | #
|
---|
249 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
250 | TOOL_GCC3OMF_LINK_LIBRARY_OUTPUT = $(outbase).rsp
|
---|
251 | TOOL_GCC3OMF_LINK_LIBRARY_DEPEND = $(othersrc)
|
---|
252 | TOOL_GCC3OMF_LINK_LIBRARY_DEPORD =
|
---|
253 | define TOOL_GCC3OMF_LINK_LIBRARY_CMDS
|
---|
254 | $(if $(filter %.def %.imp %.dll,$(othersrc))\
|
---|
255 | ,$(QUIET)$(APPEND) -n $(outbase).rsp $(filter %.def %.imp %.dll,$(othersrc))\
|
---|
256 | $(NL)$(TAB)$(QUIET)$(QUIET)$(TOOL_GCC3OMF_AR_IMP) -o $(out) @$(outbase).rsp\
|
---|
257 | $(NL)$(TAB)$(QUIET)$(RM) -f $(outbase).rsp)
|
---|
258 | $(QUIET)$(APPEND) -n $(outbase).rsp $(flags) $(out) $(objs) $(filter-out %.def %.imp %.dll,$(othersrc))
|
---|
259 | $(QUIET)$(TOOL_GCC3OMF_AR) @$(outbase).rsp
|
---|
260 | endef
|
---|
261 |
|
---|
262 |
|
---|
263 | ## Link program
|
---|
264 | # @param $(target) Normalized main target name.
|
---|
265 | # @param $(out) Program name.
|
---|
266 | # @param $(objs) Object files to link together.
|
---|
267 | # @param $(libs) Libraries to search.
|
---|
268 | # @param $(libpath) Library search paths.
|
---|
269 | # @param $(flags) Flags.
|
---|
270 | # @param $(dirdep) Directory creation dependency.
|
---|
271 | # @param $(deps) Other dependencies.
|
---|
272 | # @param $(othersrc) Unhandled sources.
|
---|
273 | # @param $(custom_pre) Custom step invoked before linking.
|
---|
274 | # @param $(custom_post) Custom step invoked after linking.
|
---|
275 | #
|
---|
276 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
277 | TOOL_GCC3OMF_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).rsp
|
---|
278 | TOOL_GCC3OMF_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
|
---|
279 | TOOL_GCC3OMF_LINK_PROGRAM_DEPORD =
|
---|
280 | define TOOL_GCC3OMF_LINK_PROGRAM_CMDS
|
---|
281 | $(QUIET)$(APPEND) -n $(outbase).rsp\
|
---|
282 | $(flags)\
|
---|
283 | -o $(out)\
|
---|
284 | $(objs)\
|
---|
285 | $(foreach p,$(libpath), -L$(p))\
|
---|
286 | $(othersrc)\
|
---|
287 | $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\
|
---|
288 | -Zmap=$(outbase).map
|
---|
289 | $(QUIET)$(TOOL_GCC3OMF_LD) @$(outbase).rsp
|
---|
290 | endef
|
---|
291 |
|
---|
292 |
|
---|
293 | ## Link DLL
|
---|
294 | # @param $(target) Normalized main target name.
|
---|
295 | # @param $(out) Program name.
|
---|
296 | # @param $(objs) Object files to link together.
|
---|
297 | # @param $(libs) Libraries to search.
|
---|
298 | # @param $(libpath) Library search paths.
|
---|
299 | # @param $(flags) Flags.
|
---|
300 | # @param $(dirdep) Directory creation dependency.
|
---|
301 | # @param $(deps) Other dependencies.
|
---|
302 | # @param $(othersrc) Unhandled sources.
|
---|
303 | # @param $(custom_pre) Custom step invoked before linking.
|
---|
304 | # @param $(custom_post) Custom step invoked after linking.
|
---|
305 | #
|
---|
306 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
307 | TOOL_GCC3OMF_LINK_DLL_OUTPUT = $(outbase).map $(outbase).rsp
|
---|
308 | TOOL_GCC3OMF_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
|
---|
309 | TOOL_GCC3OMF_LINK_DLL_DEPORD =
|
---|
310 | define TOOL_GCC3OMF_LINK_DLL_CMDS
|
---|
311 | $(QUIET)$(APPEND) -n $(outbase).rsp\
|
---|
312 | $(TOOL_GCC3OMF_LDFLAGS.dll)\
|
---|
313 | $(flags)\
|
---|
314 | -o $(out)\
|
---|
315 | $(objs)\
|
---|
316 | $(foreach p,$(libpath), -L$(p))\
|
---|
317 | $(othersrc)\
|
---|
318 | $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\
|
---|
319 | -Zmap=$(outbase).map
|
---|
320 | $(QUIET)$(TOOL_GCC3OMF_LD) @$(outbase).rsp
|
---|
321 | endef
|
---|
322 |
|
---|
323 |
|
---|
324 | ## Link system module (windows aka driver, linux aka kernel module)
|
---|
325 | # @param $(target) Normalized main target name.
|
---|
326 | # @param $(out) System module name.
|
---|
327 | # @param $(objs) Object files to link together.
|
---|
328 | # @param $(libs) Libraries to search.
|
---|
329 | # @param $(libpath) Library search paths.
|
---|
330 | # @param $(flags) Flags.
|
---|
331 | # @param $(dirdep) Directory creation dependency.
|
---|
332 | # @param $(deps) Other dependencies.
|
---|
333 | # @param $(othersrc) Unhandled sources.
|
---|
334 | # @param $(custom_pre) Custom step invoked before linking.
|
---|
335 | # @param $(custom_post) Custom step invoked after linking.
|
---|
336 | #
|
---|
337 | # @param $(outbase) Output basename (full). Use this for list files and such.
|
---|
338 | TOOL_GCC3OMF_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).rsp
|
---|
339 | TOOL_GCC3OMF_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
|
---|
340 | TOOL_GCC3OMF_LINK_SYSMOD_DEPORD =
|
---|
341 | define TOOL_GCC3OMF_LINK_SYSMOD_CMDS
|
---|
342 | $(QUIET)$(APPEND) -n $(outbase).rsp\
|
---|
343 | $(TOOL_GCC3OMF_LDFLAGS.sysmod)\
|
---|
344 | $(flags)\
|
---|
345 | -o $(out)\
|
---|
346 | $(objs)\
|
---|
347 | $(foreach p,$(libpath), -L$(p))\
|
---|
348 | $(othersrc)\
|
---|
349 | $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\
|
---|
350 | -Zmap=$(outbase).map
|
---|
351 | $(QUIET)$(TOOL_GCC3OMF_LD_SYSMOD) @$(outbase).rsp
|
---|
352 | endef
|
---|
353 |
|
---|