13
|
1 |
# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
# All rights reserved.
|
|
3 |
# This component and the accompanying materials are made available
|
|
4 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
# which accompanies this distribution, and is available
|
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
#
|
|
8 |
# Initial Contributors:
|
|
9 |
# Nokia Corporation - initial contribution.
|
|
10 |
#
|
|
11 |
# Contributors:
|
|
12 |
#
|
|
13 |
# Description:
|
|
14 |
# WINSCW EXE/DLL/IMPLIB/LIB Function Like Makefile (FLM)
|
|
15 |
# Knows how to build all possible executables for the WINSCW emulator build
|
|
16 |
#
|
|
17 |
#
|
|
18 |
|
|
19 |
# passed in values, stripped of whitespace
|
|
20 |
COPY_FOR_STATIC_LINKAGE:=$(strip $(COPY_FOR_STATIC_LINKAGE))
|
|
21 |
DEFFILE:=$(strip $(DEFFILE))
|
|
22 |
DEFFILEKEYWORD:=$(strip $(DEFFILEKEYWORD))
|
|
23 |
EPOCALLOWDLLDATA:=$(strip $(EPOCALLOWDLLDATA))
|
|
24 |
EXPORTLIBRARY:=$(strip $(EXPORTLIBRARY))
|
|
25 |
BASEADDRESS:=$(strip $(BASEADDRESS))
|
|
26 |
LINKAS:=$(strip $(LINKAS))
|
|
27 |
NOEXPORTLIBRARY:=$(strip $(NOEXPORTLIBRARY))
|
|
28 |
SECUREID:=$(strip $(SECUREID))
|
|
29 |
UID2:=$(strip $(UID2))
|
|
30 |
UID3:=$(strip $(UID3))
|
|
31 |
VENDORID:=$(strip $(VENDORID))
|
|
32 |
VID:=$(strip $(VID))
|
|
33 |
WIN32_HEADERS:=$(strip $(WIN32_HEADERS))
|
|
34 |
|
|
35 |
# local variables
|
|
36 |
BINDIR:=
|
|
37 |
BINDIRSTATICLINK:=
|
|
38 |
BINTARGET:=
|
|
39 |
BINTARGETSTATICLINK:=
|
|
40 |
BLDDIR:=
|
|
41 |
CHECKLIB_TYPE:=
|
|
42 |
CREATABLEPATHS:=
|
|
43 |
CLEANTARGETS:=
|
|
44 |
CW_RUNTIME:=
|
|
45 |
ENTRYSYMBOL:=
|
|
46 |
IMPORTLIBLINKAS:=
|
|
47 |
IMPORTLIBTARGET:=
|
|
48 |
LIBDIR:=
|
|
49 |
LINKER_FIRSTSTATLIB:=
|
|
50 |
MAINLINKAS:=
|
|
51 |
NEWLIBFILE:=
|
|
52 |
RELEASABLES:=
|
|
53 |
TC_RELEASABLES:=
|
|
54 |
STATLIBDIR:=
|
|
55 |
STDCPP_BUILD:=
|
|
56 |
STDCPPTAGFILE:=
|
|
57 |
UID1:=
|
|
58 |
WIN32_LIBRARIES:=
|
|
59 |
|
|
60 |
# FIVESPACES variable created to ensure that a suitable gap of space characters can
|
|
61 |
# be placed between the separate arguments in the call to a tool (if required).
|
|
62 |
# This is a workaround for a problem in Cygwin, where separate arguments are interpreted
|
|
63 |
# as a single argument when passed to bash.
|
|
64 |
FIVESPACES=$(BLANK) $(BLANK)
|
|
65 |
|
|
66 |
# CW runtime varies based on TARGETTYPE requirements, with wrapper FLMs dictating the choice
|
|
67 |
# We override a CW-specific environment variable to do this, in common with ABLD
|
|
68 |
ifeq ($(CW_STATIC_RUNTIME),1)
|
|
69 |
CW_RUNTIME:=$(CW_RUNTIME_STATIC)
|
|
70 |
CFLAGS:=$(CFLAGS) $(OPT.RUNTIME)staticmulti
|
|
71 |
else
|
|
72 |
CW_RUNTIME:=$(CW_RUNTIME_NONSTATIC)
|
|
73 |
CFLAGS:=$(CFLAGS) $(OPT.RUNTIME)dllmulti
|
|
74 |
endif
|
|
75 |
MWSym2LibraryFiles:=$(subst $(CHAR_SPACE),$(DIRSEP),$(CW_RUNTIME) $(CW_DEFAULT_LIBS))
|
|
76 |
ifneq ($(WIN32_LIBRARY),)
|
|
77 |
WIN32_HEADERS:=1
|
|
78 |
WIN32_LIBRARIES:=$(addprefix $(OPT.LIBFILE),$(WIN32_LIBRARY))
|
|
79 |
endif
|
|
80 |
|
|
81 |
# top-level definitions
|
|
82 |
BINDIR:=$(RELEASEPATH)/$(FULLVARIANTPATH)
|
|
83 |
|
|
84 |
# TARGETPATH and COPY_FOR_STATIC_LINKAGE only apply when TARGETPATH is a sub-directory of /sys/bin
|
|
85 |
TARGETPATH_APPEND:=$(subst \,/,$(TARGETPATH))
|
|
86 |
ifneq ($(findstring /sys/bin/,$(TARGETPATH_APPEND)),)
|
|
87 |
ifeq ($(COPY_FOR_STATIC_LINKAGE),1)
|
|
88 |
BINDIRSTATICLINK:=$(BINDIR)
|
|
89 |
endif
|
|
90 |
BINDIR:=$(BINDIR)/z$(TARGETPATH_APPEND)
|
|
91 |
else
|
|
92 |
COPY_FOR_STATIC_LINKAGE:=0
|
|
93 |
endif
|
|
94 |
|
|
95 |
BLDDIR:=$(OUTPUTPATH)/$(FULLVARIANTPATH)
|
|
96 |
LIBDIR:=$(RELEASEPATH)/$(LINKPATH)
|
|
97 |
STATLIBDIR:=$(RELEASEPATH)/$(FULLVARIANTPATH)
|
|
98 |
CREATABLEPATHS:=$(BLDDIR) $(BINDIR) $(BINDIRSTATICLINK)
|
|
99 |
|
|
100 |
# Deduce whether we should be performing a build with standard CPP characteristics
|
|
101 |
# This operates differently per-OS release, although OE TARGETTYPEs always build with standard CPP traits
|
|
102 |
ifeq ($(OPEN_ENVIRONMENT),1)
|
|
103 |
STDCPP_BUILD:=1
|
|
104 |
endif
|
|
105 |
|
|
106 |
ifeq ($(SUPPORTS_STDCPP_NEWLIB),1)
|
|
107 |
ifeq ($(NOSTDCPP),1)
|
|
108 |
STDCPP_BUILD:=
|
|
109 |
else
|
|
110 |
ifeq ($(STDCPP),1)
|
|
111 |
STDCPP_BUILD:=1
|
|
112 |
endif
|
|
113 |
endif
|
|
114 |
|
|
115 |
# Operator new linking depends on both the use of the NEWLIB keyword and whether a component supports a standard
|
|
116 |
# CPP build.
|
|
117 |
ifneq ($(NEWLIB),)
|
|
118 |
# If specified, always use the NEWLIB keyword value for operator new library linking
|
|
119 |
NEWLIBFILE:=$(STATLIBDIR)/$(NEWLIB)
|
|
120 |
else
|
|
121 |
# If not performing a standard CPP build, link to an appropriate default Symbian new library.
|
|
122 |
# Standard CPP components defer to the toolchain supplied libraries.
|
|
123 |
ifneq ($(STDCPP_BUILD),1)
|
|
124 |
ifeq ($(SYSTEM_TARGET),1)
|
|
125 |
NEWLIBFILE:=$(STATLIBDIR)/$(DEFAULT_SYSTEM_NEWLIB)
|
|
126 |
else
|
|
127 |
NEWLIBFILE:=$(STATLIBDIR)/$(DEFAULT_NORMAL_NEWLIB)
|
|
128 |
endif
|
|
129 |
endif
|
|
130 |
endif
|
|
131 |
endif
|
|
132 |
|
|
133 |
ifeq ($(STDCPP_BUILD),1)
|
|
134 |
CDEFS:=$(CDEFS) $(STDCPP_DEF)
|
|
135 |
SYSTEMINCLUDE:=$(SYSTEMINCLUDE) $(STDCPP_INCLUDE)
|
|
136 |
CFLAGS:=$(CFLAGS) $(OPT.WCHAR) on
|
|
137 |
CHECKLIB_TYPE:=$(OPT.CHECKLIB.STDCPP)
|
|
138 |
STDCPPTAGFILE:=$(OPT.LIBPATH)$(EPOCROOT)/epoc32/tools/tag $(OPT.SEARCH) tag_coff
|
|
139 |
else
|
|
140 |
CFLAGS:=$(CFLAGS) $(OPT.WCHAR) off
|
|
141 |
CHECKLIB_TYPE:=$(OPT.CHECKLIB.SYMCPP)
|
|
142 |
endif
|
|
143 |
|
|
144 |
ifeq ($(WIN32_HEADERS),1)
|
|
145 |
CDEFS:=$(CDEFS) WIN32
|
|
146 |
CDEFS:=$(CDEFS) _WINDOWS
|
|
147 |
CFLAGS:=$(CFLAGS) $(OPT.STDINC)
|
|
148 |
else
|
|
149 |
CFLAGS:=$(CFLAGS) $(OPT.NOSTDINC)
|
|
150 |
endif
|
|
151 |
|
|
152 |
# get the compiler to generate dependencies for us?
|
|
153 |
ifeq ($(NO_DEPEND_GENERATE),)
|
|
154 |
CFLAGS:=$(CFLAGS) $(OPT.DEPEND)
|
|
155 |
endif
|
|
156 |
|
|
157 |
# specifics relating to the base type of the target being processed
|
|
158 |
ifeq ($(BASE_TYPE),dll)
|
|
159 |
# Special case, although this should be dealt with in the wrapper FLM in a better way
|
|
160 |
ifeq ($(TARGETTYPE),exexp)
|
|
161 |
CDEFS:=$(CDEFS) __EXE__
|
|
162 |
ENTRYSYMBOL:=__E32Startup
|
|
163 |
LFLAGS:=$(LFLAGS) $(OPT.NOENTRY)
|
|
164 |
UID1:=1000007a
|
|
165 |
else
|
|
166 |
CDEFS:=$(CDEFS) __DLL__
|
|
167 |
ENTRYSYMBOL:=__E32Dll
|
|
168 |
LFLAGS:=$(LFLAGS) $(OPT.MAINENTRYPOINT)__Win32DllMain@12
|
|
169 |
UID1:=10000079
|
|
170 |
endif
|
|
171 |
LFLAGS:=$(LFLAGS) $(OPT.SHARED)
|
|
172 |
|
|
173 |
ifneq ($(BASEADDRESS),)
|
|
174 |
LFLAGS:=$(LFLAGS) $(OPT.IMAGEBASE)$(BASEADDRESS)
|
|
175 |
endif
|
|
176 |
|
|
177 |
ifeq ($(FIRST_STATLIB),)
|
|
178 |
BASE_TYPE_STATLIB:=edll.lib
|
|
179 |
else
|
|
180 |
BASE_TYPE_STATLIB:=$(FIRST_STATLIB)
|
|
181 |
endif
|
|
182 |
endif
|
|
183 |
ifeq ($(BASE_TYPE),exe)
|
|
184 |
CDEFS:=$(CDEFS) __EXE__
|
|
185 |
ENTRYSYMBOL:=?_E32Bootstrap@@YGXXZ
|
|
186 |
UID1:=1000007a
|
|
187 |
|
|
188 |
ifeq ($(FIRST_STATLIB),)
|
|
189 |
BASE_TYPE_STATLIB:=eexe.lib
|
|
190 |
else
|
|
191 |
BASE_TYPE_STATLIB:=$(FIRST_STATLIB)
|
|
192 |
endif
|
|
193 |
endif
|
|
194 |
|
|
195 |
ifeq ($(FIRSTLIB),)
|
|
196 |
LINKER_FIRSTSTATLIB:=$(BASE_TYPE_STATLIB)
|
|
197 |
else
|
|
198 |
LINKER_FIRSTSTATLIB:=$(FIRSTLIB)
|
|
199 |
endif
|
|
200 |
|
|
201 |
|
18
|
202 |
TARGETEXT:=$(if $(REQUESTEDTARGETEXT),$(REQUESTEDTARGETEXT),$(TARGETTYPE))
|
|
203 |
BINTARGET:=$(BINDIR)/$(TARGET).$(TARGETEXT)
|
13
|
204 |
|
|
205 |
|
|
206 |
# Run trace compiler #####################################
|
28
|
207 |
# The following variable defines a prereq that source code will
|
|
208 |
# depend on so that tracing happens before compilation. Must be
|
|
209 |
# blank by default so that if tracing is off then there will be
|
|
210 |
# no dependency. The tracecompiler code will set it if this
|
|
211 |
# project actually does depend on trace-generated headers:
|
|
212 |
TRACE_THISCOMPONENT_ALLRULE:=
|
13
|
213 |
TRACE_MARKER_PATH:=$(OUTPUTPATH)
|
|
214 |
|
28
|
215 |
# Tracing requires a UID to make uniquely numbered trace points
|
13
|
216 |
ifeq ($(subst 0,,$(UID3)),)
|
|
217 |
ifeq ($(UID2),)
|
|
218 |
USE_TRACE_COMPILER:=
|
|
219 |
else
|
|
220 |
UID_TC:=$(UID2)
|
|
221 |
endif
|
|
222 |
else
|
|
223 |
UID_TC:=$(UID3)
|
|
224 |
endif
|
|
225 |
|
|
226 |
# USE_TRACE_COMPILER defaults to blank in Raptor config.
|
|
227 |
# Users can turn TC on by setting it to 1 in user config.
|
18
|
228 |
ifneq ($(USE_TRACE_COMPILER),)
|
|
229 |
# TARGETEXT must be set before here
|
13
|
230 |
include $(FLMHOME)/tracecompiler.mk
|
|
231 |
TC_RELEASABLES:=$(TRACE_DICTIONARY) $(AUTOGEN_HEADER)
|
|
232 |
endif
|
|
233 |
|
|
234 |
|
|
235 |
####################
|
|
236 |
## IMPORT LIBRARY ##
|
|
237 |
####################
|
|
238 |
|
18
|
239 |
IMPORTLIBLINKAS:=$(TARGET).$(TARGETEXT)
|
13
|
240 |
# LINKAS, if supplied, only applies to IMPLIB TARGETTYPEs
|
|
241 |
ifeq ($(BASE_TYPE),importlib)
|
|
242 |
ifneq ($(LINKAS),)
|
|
243 |
IMPORTLIBLINKAS:=$(LINKAS)
|
|
244 |
else
|
|
245 |
IMPORTLIBLINKAS:=$(TARGET).dll
|
|
246 |
endif
|
|
247 |
endif
|
|
248 |
|
|
249 |
ifneq ($(EXPORTLIBRARY),)
|
|
250 |
IMPORTLIBTARGET:=$(LIBDIR)/$(EXPORTLIBRARY).lib
|
|
251 |
else
|
|
252 |
IMPORTLIBTARGET:=$(LIBDIR)/$(TARGET).lib
|
|
253 |
endif
|
|
254 |
|
|
255 |
# Regardless of whether a TARGETTYPE normally supports an import library, always attempt
|
|
256 |
# to generate one if an explicit DEFFILE keyword was listed
|
|
257 |
ifeq ($(DEFFILEKEYWORD),1)
|
|
258 |
SUPPORTS_IMPORT_LIBRARY:=1
|
|
259 |
endif
|
|
260 |
|
|
261 |
ifeq ($(SUPPORTS_IMPORT_LIBRARY),1)
|
|
262 |
ifneq ($(NOEXPORTLIBRARY),1)
|
|
263 |
ifneq ($(TARGET_$(call sanitise,$(IMPORTLIBTARGET))),1)
|
|
264 |
RELEASABLES:=$(RELEASABLES) $(if $(or $(EXPORTUNFROZEN),$(DEFFILE)),$(IMPORTLIBTARGET))
|
|
265 |
|
|
266 |
# import libraries are generated to the UDEB release directory
|
|
267 |
ifneq ($(VARIANTTYPE),udeb)
|
|
268 |
CREATABLEPATHS:=$(CREATABLEPATHS) $(if $(or $(EXPORTUNFROZEN),$(DEFFILE)),$(LIBDIR))
|
|
269 |
endif
|
|
270 |
|
|
271 |
ifneq ($(EXPORTUNFROZEN),)
|
|
272 |
# EXPORTUNFROZEN amounts to doing the stage-two link with the makedef generated temporary .def file but creating a .lib
|
|
273 |
# file as a side-effect of linking. The import library is therefore dependent on the final binary in this instance.
|
|
274 |
$(info <warning project='$(PROJECT_META)' component='$(COMPONENT_META)'>EXPORTUNFROZEN present in $(PROJECT_META) - unfrozen exports will be represented in import library.</warning> )
|
|
275 |
$(IMPORTLIBTARGET): $(BINTARGET)
|
|
276 |
$(eval TARGET_$(call sanitise,$(IMPORTLIBTARGET)):=1)
|
|
277 |
else
|
|
278 |
ifneq ($(DEFFILE),)
|
|
279 |
# If a .def file physically exists (either explicitly via DEFFILE or implicitly in the correct place) then we
|
|
280 |
# generate an import library with reference to it
|
|
281 |
PREPPEDDEFFILE:=$(BLDDIR)/$(TARGET).prep.def
|
|
282 |
CLEANTARGETS:=$(CLEANTARGETS) $(PREPPEDDEFFILE)
|
|
283 |
|
|
284 |
define win32def2lib
|
|
285 |
$(IMPORTLIBTARGET): $(DEFFILE)
|
|
286 |
$(call startrule,win32def2lib) \
|
|
287 |
$(PREPDEF) "$(DEFFILE)" "$(PREPPEDDEFFILE)" && \
|
|
288 |
$(LD) $(PREPPEDDEFFILE) $(OPT.IMPORTLIB) -o "$$@" $(OPT.ADDCOMMAND) "out:$(IMPORTLIBLINKAS)" $(OPT.WARNINGS) off \
|
|
289 |
$(call endrule,win32def2lib)
|
|
290 |
endef
|
|
291 |
$(eval $(win32def2lib))
|
|
292 |
$(eval TARGET_$(call sanitise,$(IMPORTLIBTARGET)):=1)
|
|
293 |
endif
|
|
294 |
endif
|
|
295 |
endif
|
|
296 |
endif
|
|
297 |
endif
|
|
298 |
|
|
299 |
|
|
300 |
ifneq ($(BASE_TYPE),importlib)
|
|
301 |
|
|
302 |
#############
|
|
303 |
## COMPILE ##
|
|
304 |
#############
|
|
305 |
|
|
306 |
ifeq ($(COPY_FOR_STATIC_LINKAGE),1)
|
18
|
307 |
BINTARGETSTATICLINK:=$(BINDIRSTATICLINK)/$(TARGET).$(TARGETEXT)
|
13
|
308 |
endif
|
|
309 |
|
|
310 |
RELEASABLES:=$(RELEASABLES) $(BINTARGET) $(BINTARGETSTATICLINK)
|
|
311 |
|
|
312 |
# work on a local source files list
|
|
313 |
SRCFILES:=$(SOURCE)
|
|
314 |
# and there may be more source for stage 2 in OE builds
|
|
315 |
SRCFILES_OE:=
|
|
316 |
|
|
317 |
ifneq ($(BASE_TYPE),staticlib)
|
|
318 |
# add the generated UID source file
|
|
319 |
GENSOURCE:=$(BLDDIR)/$(TARGET).UID.CPP
|
|
320 |
SRCFILES:=$(SRCFILES) $(GENSOURCE)
|
|
321 |
|
|
322 |
# the generated symbol lookup source file for Open Environment.
|
|
323 |
# this only gets linked in at stage 2
|
|
324 |
SYMSOURCE:=$(if $(OPEN_ENVIRONMENT),$(BLDDIR)/$(TARGET)_SYM_.cpp,)
|
|
325 |
SRCFILES_OE:=$(SYMSOURCE)
|
|
326 |
|
|
327 |
CLEANTARGETS:=$(CLEANTARGETS) $(GENSOURCE) $(SYMSOURCE)
|
|
328 |
|
|
329 |
ifeq ($(UID2),00000000)
|
|
330 |
ifneq ($(UID2_DEFAULT),)
|
|
331 |
UID2:=$(UID2_DEFAULT)
|
|
332 |
endif
|
|
333 |
endif
|
|
334 |
|
|
335 |
ifeq ($(SECUREID),)
|
|
336 |
SECUREID:=$(UID3)
|
|
337 |
endif
|
|
338 |
|
|
339 |
define win32generateUIDcpp
|
|
340 |
$(GENSOURCE): $(PROJECT_META)
|
|
341 |
$(call startrule,win32generateUIDcpp,,) \
|
|
342 |
echo "// SBS-generated uid source file" > $$@ && \
|
|
343 |
echo "#include <e32cmn.h>" >> $$@ && \
|
|
344 |
echo "#pragma data_seg(\".SYMBIAN\")" >> $$@ && \
|
|
345 |
echo "__EMULATOR_IMAGE_HEADER2(0x$(UID1),0x$(UID2),0x$(UID3),EPriority$(EPOCPROCESSPRIORITY),0x$(CAPABILITYFLAG1),0x$(CAPABILITYFLAG2),0x$(SECUREID),0x$(VENDORID),0x$(VERSIONHEX),$(EPOCALLOWDLLDATA))" >> $$@ && \
|
|
346 |
echo "#pragma data_seg()" >> $$@ \
|
|
347 |
$(call endrule,win32generateUIDcpp)
|
|
348 |
endef
|
|
349 |
$(eval $(win32generateUIDcpp))
|
|
350 |
endif # neq $(BASE_TYPE),staticlib
|
|
351 |
|
|
352 |
# object files
|
|
353 |
OBJECTFILES:=$(patsubst %,$(BLDDIR)/%,$(addsuffix .o,$(basename $(notdir $(call allsuffixsubst,.cia .CIA .Cia,_.cia,$(SRCFILES))))))
|
|
354 |
OBJECTFILES:=$(patsubst %.UID.o,%_UID_.o,$(OBJECTFILES))
|
|
355 |
|
|
356 |
# object file extras for stage 2
|
|
357 |
OBJECTFILES_OE:=$(patsubst %,$(BLDDIR)/%,$(addsuffix .o,$(basename $(notdir $(SRCFILES_OE)))))
|
|
358 |
|
|
359 |
CLEANTARGETS:=$(CLEANTARGETS) $(OBJECTFILES) $(OBJECTFILES_OE)
|
|
360 |
|
|
361 |
# include paths and preinclude file
|
|
362 |
UINCLUDE:=$(patsubst %,$(OPT.USERINCLUDE)%,$(USERINCLUDE))
|
|
363 |
SINCLUDE:=$(patsubst %,$(OPT.SYSINCLUDE)%,$(SYSTEMINCLUDE))
|
|
364 |
PINCLUDE:=$(OPT.PREINCLUDE)$(notdir $(PRODUCT_INCLUDE))
|
|
365 |
|
|
366 |
#INCLUDES:=$(UINCLUDE) $(OPT.SPLITINCLUDE) $(SINCLUDE) $(PINCLUDE)
|
|
367 |
INCLUDES:=$(OPT.SPLITINCLUDE) $(UINCLUDE) $(SINCLUDE) $(PINCLUDE)
|
|
368 |
|
|
369 |
# macro definitions
|
|
370 |
DEFINES:=$(call makemacrodef,$(OPT.DEFINE),$(CDEFS) $(TARGET_MACRO))
|
|
371 |
|
|
372 |
|
|
373 |
# $(1) is the name of the source file, $(2) is the extension to map it to e.g. .o
|
|
374 |
# no space in front of function body
|
|
375 |
define mapwin32file
|
|
376 |
$(patsubst %.UID$(2),%_UID_$(2),$(BLDDIR)/$(addsuffix $2,$(basename $(notdir $(call allsuffixsubst,.cia .CIA .Cia,_.cia,$(1))))))
|
|
377 |
endef
|
|
378 |
|
|
379 |
# compile all source files, creating and including compiler generated dependency files along the way
|
|
380 |
# SED is used to (a) remove relatively pathed "object_file: source_file" references that can appear
|
|
381 |
# with some versions of mwccsym2 and (b) convert slashes
|
|
382 |
define win32compile2object
|
|
383 |
|
|
384 |
$(eval DEPENDFILENAME:=$(call mapwin32file,$(1),.o.d))
|
|
385 |
$(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME)))
|
|
386 |
|
28
|
387 |
$(call mapwin32file,$(1),.o): $(1) $(PROJECT_META) $(if $(DEPENDFILE),,RESOURCE BITMAP EXPORT) | $(TRACE_THISCOMPONENT_ALLRULE)
|
13
|
388 |
$(call startrule,win32compile2object,,$(1)) \
|
|
389 |
$(CC) $$(if $$(filter %.C,$(1)),-lang c) $(CFLAGS) $(OPTION_CW) \
|
|
390 |
$(if $(STDCPP_BUILD),$$(if $$(filter %.c %.C,$(1)),,$$(call makemacrodef,$(OPT.DEFINE),$(STDCPP_WCHAR_DEF))),) \
|
|
391 |
$(DEFINES) $(INCLUDES) $(OPT.OUT)"$$@" "$(1)" \
|
|
392 |
$(if $(NO_DEPEND_GENERATE),,&& $(GNUSED) 's#\\\\\(.\)#/\1#g;s#/ #\\\ #g;s#\([A-Za-z]:\)\\\\#\1/#g;1,1s#.*: .* \(.\)\?$$$$#$(call mapwin32file,$(1),.o): $1 \1#' $(call mapwin32file,$(1),.dep) > $(call mapwin32file,$(1),.o.d)) \
|
|
393 |
$(call endrule,win32compile2object)
|
|
394 |
|
|
395 |
ifeq ($(NO_DEPEND_GENERATE),)
|
|
396 |
CLEANTARGETS:=$$(CLEANTARGETS) $(call mapwin32file,$(1),.dep) $(DEPENDFILENAME)
|
|
397 |
endif
|
|
398 |
|
|
399 |
ifneq ($(DEPENDFILE),)
|
|
400 |
ifeq ($(NO_DEPEND_INCLUDE),)
|
|
401 |
ifeq ($(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS))),)
|
|
402 |
-include $(DEPENDFILE)
|
|
403 |
endif
|
|
404 |
endif
|
|
405 |
endif
|
|
406 |
|
|
407 |
# individual source file compilation
|
|
408 |
SOURCETARGET_$(call sanitise,$(1)): $(call mapwin32file,$(1),.o)
|
|
409 |
|
|
410 |
endef
|
|
411 |
|
|
412 |
# List target, depends on object file
|
|
413 |
define win32list
|
|
414 |
LISTING:: $(OBJECTFILES) $(OBJECTFILES_OE)
|
|
415 |
$(call startrule,win32listing) \
|
|
416 |
$(CC) $(OPT.LISTING) $(patsubst %.UID.o,%_UID_.o,$(BLDDIR)/$(addsuffix .o,$(basename $(notdir $(1))))) -o $(basename $1).WINSCW.lst \
|
|
417 |
$(call endrule,win32listing)
|
|
418 |
endef
|
|
419 |
|
|
420 |
$(foreach SRCFILE,$(SRCFILES) $(SRCFILES_OE),$(eval $(call win32compile2object,$(SRCFILE))))
|
|
421 |
$(foreach SRCFILE,$(SRCFILES) $(SRCFILES_OE),$(eval $(call win32list,$(SRCFILE))))
|
|
422 |
|
|
423 |
######################
|
|
424 |
## RESOURCE COMPILE ##
|
|
425 |
######################
|
|
426 |
|
|
427 |
# If Python has been used to construct the environment on Windows then the standard MW include path environment
|
|
428 |
# variable will have been munged to UPPERCASE.
|
|
429 |
STDMWCINCLUDEPATHS:=$(if $(MWCSym2Includes),$(MWCSym2Includes),$(MWCSYM2INCLUDES))
|
|
430 |
|
|
431 |
define win32resourcecompile
|
|
432 |
# Note that, if dependency files are required, two calls are made to the resource compiler here.
|
|
433 |
# There seems to be no means to override the default behaviour of dumping dependency files into the CWD when using -MD.
|
|
434 |
# So - we compile once for real, and then pipe dependency output through SED afterwards to create the dependency file where we want it
|
|
435 |
|
|
436 |
$(eval DEPENDFILENAME:=$(call mapwin32file,$(1),.res.d))
|
|
437 |
$(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME)))
|
|
438 |
|
|
439 |
$(call mapwin32file,$(1),.res): $(1) $(PROJECT_META) $(if $(DEPENDFILE),,RESOURCE BITMAP EXPORT)
|
|
440 |
$(call startrule,win32resourcecompile,,$(1)) \
|
|
441 |
MWCIncludes='$(STDMWCINCLUDEPATHS)' $(RC) $(OPT.OUT)"$$@" "$(1)" \
|
|
442 |
$(if $(NO_DEPEND_GENERATE),,&& \
|
|
443 |
MWCIncludes='$(STDMWCINCLUDEPATHS)' $(RC) -make $(OPT.OUT)"$$@" "$(1)" | \
|
|
444 |
$(GNUSED) 's#\\\\\(.\)#/\1#g;s#/ #\\\ #g;s#\([A-Za-z]:\)\\\\#\1/#g;1,1s#.*: .* \(.\)\?$$$$#$(call mapwin32file,$(1),.res): $1 \1#' > $(call mapwin32file,$(1),.res.d)) \
|
|
445 |
$(call endrule,win32resourcecompile)
|
|
446 |
|
|
447 |
ifeq ($(NO_DEPEND_GENERATE),)
|
|
448 |
CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME)
|
|
449 |
endif
|
|
450 |
|
|
451 |
ifneq ($(DEPENDFILE),)
|
|
452 |
ifeq ($(NO_DEPEND_INCLUDE),)
|
|
453 |
ifeq ($(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS))),)
|
|
454 |
-include $(DEPENDFILE)
|
|
455 |
endif
|
|
456 |
endif
|
|
457 |
endif
|
|
458 |
|
|
459 |
endef
|
|
460 |
|
|
461 |
$(foreach WIN32RESOURCEFILE,$(WIN32_RESOURCE),$(eval $(call win32resourcecompile,$(WIN32RESOURCEFILE))))
|
|
462 |
OBJECTFILES:=$(OBJECTFILES) $(patsubst %,$(BLDDIR)/%,$(addsuffix .res,$(basename $(notdir $(WIN32_RESOURCE)))))
|
|
463 |
|
|
464 |
##################
|
|
465 |
## LINK/ARCHIVE ##
|
|
466 |
##################
|
|
467 |
|
|
468 |
# libraries
|
|
469 |
STATICLIBS:=$(patsubst %,%.lib,$(STATICLIBRARY))
|
|
470 |
STATICLIBFILES:=$(patsubst %,$(STATLIBDIR)/%,$(STATICLIBS))
|
|
471 |
LINKER_FIRSTSTATLIBFILE:=$(STATLIBDIR)/$(LINKER_FIRSTSTATLIB)
|
|
472 |
|
|
473 |
ifeq ($(VARIANTTYPE),urel)
|
|
474 |
LINKLIBS:=$(patsubst %.dso,%.lib,$(LIBRARY))
|
|
475 |
else
|
|
476 |
LINKLIBS:=$(patsubst %.dso,%.lib,$(LIBRARY_DEBUG))
|
|
477 |
endif
|
|
478 |
|
|
479 |
LINKLIBFILES:=$(patsubst %,$(LIBDIR)/%,$(LINKLIBS))
|
|
480 |
|
|
481 |
MAP:=
|
|
482 |
ifneq ($(BASE_TYPE),staticlib)
|
|
483 |
ifneq ($(BASE_TYPE),importlib)
|
|
484 |
# link map file (urel only)
|
|
485 |
ifeq ($(VARIANTTYPE),urel)
|
|
486 |
MAP:=$(OPT.MAP)$(BINTARGET).map
|
|
487 |
RELEASABLES:=$(RELEASABLES) $(BINTARGET).map
|
|
488 |
endif
|
|
489 |
endif
|
|
490 |
endif
|
|
491 |
|
|
492 |
# all object files are listed in a response file to minimise the length of linker calls
|
|
493 |
OBJECTFILES_LRF:=$(BLDDIR)/$(TARGET)_$(VARIANTTYPE)_objects.lrf
|
|
494 |
CLEANTARGET:=$(CLEANTARGETS) $(OBJECTFILES_LRF)
|
|
495 |
|
|
496 |
define groupin10
|
|
497 |
$(if $1,@echo -e $(foreach L,$(wordlist 1,10,$1),"$(L)\\n") >> $(OBJECTFILES_LRF),)
|
|
498 |
$(if $1,$(call groupin10,$(wordlist 11,$(words $1),$1)),@true)
|
|
499 |
endef
|
|
500 |
|
|
501 |
#
|
|
502 |
# Archive
|
|
503 |
#
|
|
504 |
ifeq ($(BASE_TYPE),staticlib)
|
|
505 |
define win32archive
|
|
506 |
$(BINTARGET): $(OBJECTFILES)
|
|
507 |
@echo "" > $(OBJECTFILES_LRF);
|
|
508 |
$(call groupin10,$(notdir $(OBJECTFILES))) ;
|
|
509 |
$(call startrule,win32archive) \
|
|
510 |
$(LD) $(OPT.STATICLIBRARY) $(LFLAGS) $(OPT.NOIMPLIB) $(WIN32_LIBRARIES) $(OPT.OUT)"$$@" $(STDCPPTAGFILE) $(OPT.LIBPATH)$(BLDDIR) $(OPT.SEARCH) @$(OBJECTFILES_LRF) \
|
|
511 |
$(if $(SAVESPACE),; $(GNURM) -rf $(BLDDIR); true,) \
|
|
512 |
$(call endrule,win32archive)
|
|
513 |
endef
|
|
514 |
$(eval $(win32archive))
|
|
515 |
endif
|
|
516 |
|
|
517 |
ifneq ($(EPOCHEAPSIZEMIN_DEC_KB),)
|
|
518 |
LFLAGS:=$(LFLAGS) $(OPT.HEAPRESERVE)$(EPOCHEAPSIZEMAX_DEC_KB) $(OPT.HEAPCOMMIT)$(EPOCHEAPSIZEMIN_DEC_KB)
|
|
519 |
endif
|
|
520 |
|
|
521 |
#
|
|
522 |
# Simple link
|
|
523 |
#
|
|
524 |
ifeq ($(BASE_TYPE),exe)
|
|
525 |
define win32simplelink
|
|
526 |
$(BINTARGET).map: $(BINTARGET)
|
|
527 |
|
|
528 |
$(BINTARGET): $(OBJECTFILES) $(LINKER_FIRSTSTATLIBFILE) $(NEWLIBFILE) $(STATICLIBFILES) $(LINKLIBFILES)
|
|
529 |
@echo "" > $(OBJECTFILES_LRF);
|
|
530 |
$(call groupin10,$(notdir $(OBJECTFILES))) ;
|
|
531 |
$(call startrule,win32simplelink) \
|
|
532 |
$(if $(SUPPORTS_STDCPP_NEWLIB),$(if $(STATICLIBFILES),$(CHECKLIB) $(CHECKLIB_TYPE) $(OPT.CHECKLIB.WIN32) $(STATICLIBFILES) &&,),) \
|
|
533 |
MWSym2LibraryFiles="$(MWSym2LibraryFiles)" $(LD) $(LFLAGS) $(OPT.MENTRYPOINT)$(ENTRYSYMBOL) $(MAP) $(LINKER_FIRSTSTATLIBFILE) $(NEWLIBFILE) $(WIN32_LIBRARIES) $(STATICLIBFILES) $(LINKLIBFILES) $(OPT.OUT)"$$@" $(OPT.NOIMPLIB) $(OPT.LIBPATH)$(BLDDIR) $(OPT.SEARCH) @$(OBJECTFILES_LRF) \
|
|
534 |
$(if $(SAVESPACE),; $(GNURM) -rf $(BLDDIR); true,) \
|
|
535 |
$(call endrule,win32simplelink)
|
|
536 |
endef
|
|
537 |
$(eval $(win32simplelink))
|
|
538 |
endif
|
|
539 |
|
|
540 |
#
|
|
541 |
# Two stage link
|
|
542 |
#
|
|
543 |
ifeq ($(BASE_TYPE),dll)
|
|
544 |
TMP_IMPLIB:=$(BLDDIR)/$(TARGET).lib
|
|
545 |
TMP_INFFILE:=$(BLDDIR)/$(TARGET).inf
|
|
546 |
TMP_SYMFILE:=$(if $(OPEN_ENVIRONMENT),$(BLDDIR)/$(TARGET).sym,)
|
18
|
547 |
TMP_TARGET:=$(BLDDIR)/$(TARGET).$(TARGETEXT)
|
13
|
548 |
TMP_DEFFILE:=$(BLDDIR)/$(TARGET).def
|
|
549 |
|
|
550 |
CLEANTARGETS:=$(CLEANTARGETS) $(TMP_IMPLIB) $(TMP_INFFILE) $(TMP_TARGET) $(TMP_DEFFILE) $(TMP_SYMFILE)
|
|
551 |
|
|
552 |
MAKEDEF_ARGS:=-absent $(ENTRYSYMBOL) -Inffile $(call dblquote,$(TMP_INFFILE)) $(NAME_LOOKUP)
|
|
553 |
|
|
554 |
ifeq ($(SYSTEM_TARGET),1)
|
|
555 |
MAKEDEF_ARGS:=$(MAKEDEF_ARGS) -SystemTargetType
|
|
556 |
endif
|
|
557 |
|
|
558 |
ifneq ($(FIXED_EXPORT),)
|
|
559 |
# Fixed export TARGETTYPE, but with possibility of a .def file if explicitly specified and available
|
|
560 |
ifeq ($(DEFFILEKEYWORD),1)
|
|
561 |
ifneq ($(DEFFILE),)
|
|
562 |
MAKEDEF_ARGS:=$(MAKEDEF_ARGS) -Frzfile $(call dblquote,$(DEFFILE))
|
|
563 |
endif
|
|
564 |
endif
|
|
565 |
MAKEDEF_ARGS:=$(MAKEDEF_ARGS) -1 $(FIXED_EXPORT)
|
|
566 |
else
|
|
567 |
# Variable export TARGETTYPE with either deduced or explicitly specified .def file (if available)
|
|
568 |
ifneq ($(DEFFILE),)
|
|
569 |
MAKEDEF_ARGS:=$(MAKEDEF_ARGS) -Frzfile $(call dblquote,$(DEFFILE))
|
|
570 |
endif
|
|
571 |
endif
|
|
572 |
|
|
573 |
|
|
574 |
ifneq ($(EXPORTSUNFROZEN),)
|
|
575 |
LIBRARY: $(TMP_IMPLIB)
|
|
576 |
endif
|
|
577 |
|
|
578 |
define win32stageonelink
|
|
579 |
# Stage One
|
|
580 |
# Link by name, generating temporary main binary and import library.
|
|
581 |
$(TMP_IMPLIB): $(TMP_TARGET)
|
|
582 |
|
|
583 |
$(TMP_TARGET): $(OBJECTFILES) $(LINKER_FIRSTSTATLIBFILE) $(NEWLIBFILE) $(STATICLIBFILES) $(LINKLIBFILES)
|
|
584 |
@echo "" > $(OBJECTFILES_LRF);
|
|
585 |
$(call groupin10,$(notdir $(OBJECTFILES))) ;
|
|
586 |
$(call startrule,win32stageonelink) \
|
|
587 |
$(if $(SUPPORTS_STDCPP_NEWLIB),$(if $(STATICLIBFILES),$(CHECKLIB) $(CHECKLIB_TYPE) $(OPT.CHECKLIB.WIN32) $(STATICLIBFILES) &&,),) \
|
18
|
588 |
MWSym2LibraryFiles="$(MWSym2LibraryFiles)" $(LD) $(LFLAGS) $(OPT.MENTRYPOINT)$(ENTRYSYMBOL) $(OPT.EXPORT)$(EXPORT_TYPE) $(OPT.NOCOMPACTIMPORTLIB) $(OPT.ADDCOMMAND) "out:$(TARGET).$(TARGETEXT)" $(OPT.WARNINGS) off $(OPT.IMPLIB)"$(TMP_IMPLIB)" $(OPT.OUT)"$(TMP_TARGET)" $(LINKER_FIRSTSTATLIBFILE) $(NEWLIBFILE) $(WIN32_LIBRARIES) $(STATICLIBFILES) $(LINKLIBFILES) $(OPT.LIBPATH)$(BLDDIR) $(OPT.SEARCH) @$(OBJECTFILES_LRF) \
|
13
|
589 |
$(call endrule,win32stageonelink)
|
|
590 |
endef
|
|
591 |
$(eval $(win32stageonelink))
|
|
592 |
|
|
593 |
define win32processexports
|
|
594 |
# Process exports
|
|
595 |
# Generate a descriptive info file from the import library.
|
|
596 |
# Push info file through MAKEDEF to generated a valid .def file for link by ordinal.
|
|
597 |
$(TMP_DEFFILE): $(TMP_IMPLIB)
|
|
598 |
$(call startrule,win32processexports) \
|
|
599 |
$(LD) $(LFLAGS_INFGEN) $(OPT.OUT)"$(TMP_INFFILE)" "$(TMP_IMPLIB)" && \
|
|
600 |
$(MAKEDEF) $(MAKEDEF_ARGS) "$$@" \
|
|
601 |
$(call endrule,win32processexports)
|
|
602 |
endef
|
|
603 |
$(eval $(win32processexports))
|
|
604 |
|
|
605 |
ifeq ($(OPEN_ENVIRONMENT),1)
|
|
606 |
define win32processoeexports
|
|
607 |
# Process additional exports for Open Environment
|
|
608 |
# Generate a symbol file from the temporary DLL.
|
|
609 |
# Generate a C++ source file from the symbol file
|
|
610 |
|
|
611 |
$(TMP_SYMFILE): $(TMP_TARGET)
|
|
612 |
$(call startrule,win32generatesymfile) \
|
|
613 |
$(LD) $(LFLAGS_SYMGEN) $(OPT.OUT)"$(TMP_SYMFILE)" "$(TMP_TARGET)" \
|
|
614 |
$(call endrule,win32generatesymfile)
|
|
615 |
|
|
616 |
$(SYMSOURCE): $(TMP_SYMFILE)
|
|
617 |
$(call startrule,win32generatesymcpp) \
|
|
618 |
$(SYMLOOKUPUTIL) $(OPT.OUT)"$(SYMSOURCE)" $(OPT.SYM)"$(TMP_SYMFILE)" $(SYMLOOKUPARGS) \
|
|
619 |
$(call endrule,win32generatesymcpp)
|
|
620 |
endef
|
|
621 |
$(eval $(win32processoeexports))
|
|
622 |
endif
|
|
623 |
|
|
624 |
define win32stagetwolink
|
|
625 |
# Stage Two
|
|
626 |
# Link by ordinal, based on a previously MAKEDEF-generated temporary .def file
|
|
627 |
# Optionally create an import library if EXPORTUNFROZEN is specified
|
|
628 |
#
|
|
629 |
$(BINTARGET).map: $(BINTARGET)
|
|
630 |
|
|
631 |
$(BINTARGET): $(OBJECTFILES) $(OBJECTFILES_OE) $(LINKER_FIRSTSTATLIBFILE) $(STATICLIBFILES) $(NEWLIBFILE) $(LINKLIBFILES) $(TMP_DEFFILE)
|
|
632 |
@echo "" > $(OBJECTFILES_LRF);
|
|
633 |
$(call groupin10,$(notdir $(OBJECTFILES) $(OBJECTFILES_OE))) ;
|
|
634 |
$(call startrule,win32stagetwolink) \
|
|
635 |
MWSym2LibraryFiles="$(MWSym2LibraryFiles)" \
|
|
636 |
$(LD) $(LFLAGS) $(OPT.DEFFILE)$(TMP_DEFFILE) $(MAP) $(LINKER_FIRSTSTATLIBFILE) $(NEWLIBFILE) $(WIN32_LIBRARIES) $(STATICLIBFILES) $(LINKLIBFILES) \
|
|
637 |
$(OPT.OUT)"$$@" \
|
|
638 |
$(if $(EXPORTUNFROZEN),$(OPT.IMPLIB)$(IMPORTLIBTARGET),$(OPT.NOIMPLIB)) \
|
|
639 |
$(OPT.LIBPATH)$(BLDDIR) $(OPT.SEARCH) @$(OBJECTFILES_LRF) \
|
|
640 |
$(if $(SAVESPACE),; $(GNURM) -rf $(BLDDIR); true,) \
|
|
641 |
$(call endrule,win32stagetwolink)
|
|
642 |
endef
|
|
643 |
$(eval $(win32stagetwolink))
|
|
644 |
|
|
645 |
define win32copyforstaticlink
|
|
646 |
# Copy additonal binary to "traditional" output location (if required)
|
|
647 |
$(BINTARGETSTATICLINK): $(BINTARGET)
|
|
648 |
$(call startrule,win32copyforstaticlink) \
|
|
649 |
$(GNUCP) $$< $$@ \
|
|
650 |
$(call endrule,win32copyforstaticlink)
|
|
651 |
endef
|
|
652 |
ifeq ($(COPY_FOR_STATIC_LINKAGE),1)
|
|
653 |
$(eval $(win32copyforstaticlink))
|
|
654 |
endif
|
|
655 |
|
|
656 |
define e32freeze
|
|
657 |
# DLL-type targets that support import library generation support freezing of exports using EFREEZE
|
|
658 |
FREEZE:: $(1)
|
|
659 |
$(call startrule,freeze,,$(RESOLVED_DEFFILE)) \
|
|
660 |
$(EFREEZE) $(EFREEZE_REMOVE_OPTION) "$(RESOLVED_DEFFILE)" $(FIVESPACES) "$(2)" \
|
|
661 |
$(call endrule,freeze)
|
|
662 |
endef
|
|
663 |
# Create only one freeze target per urel/udeb variant as the interface won't differ between them
|
|
664 |
# Only create a freeze target if the component supports import library generation
|
|
665 |
ifneq ($(TARGET_$(call sanitise,$(IMPORTLIBTARGET))_FREEZE),1)
|
|
666 |
ifeq ($(SUPPORTS_IMPORT_LIBRARY),1)
|
|
667 |
$(eval $(call e32freeze,$(BINTARGET),$(TMP_DEFFILE)))
|
|
668 |
$(eval TARGET_$(call sanitise,$(IMPORTLIBTARGET))_FREEZE:=1)
|
|
669 |
endif
|
|
670 |
endif
|
|
671 |
endif
|
|
672 |
endif # neq $(BASE_TYPE),importlib
|
|
673 |
|
|
674 |
|
|
675 |
# Global targets
|
|
676 |
.PHONY:: $(ALLTARGET)
|
|
677 |
$(ALLTARGET):: $(RELEASABLES)
|
|
678 |
TARGET:: $(RELEASABLES)
|
|
679 |
|
|
680 |
ifeq ($(TARGET_$(call sanitise,$(IMPORTLIBTARGET))),1)
|
|
681 |
LIBRARY:: $(IMPORTLIBTARGET)
|
|
682 |
else
|
|
683 |
ifeq ($(BASE_TYPE),staticlib)
|
|
684 |
LIBRARY:: $(BINTARGET)
|
|
685 |
endif
|
|
686 |
endif
|
|
687 |
|
|
688 |
|
|
689 |
# Deal with test code batch files generation.
|
|
690 |
ifneq ($(TESTPATH),)
|
|
691 |
EPOC_ROOT:=$(patsubst %/,%,$(EPOCROOT))
|
|
692 |
TOBLDINF:=$(dir $(subst :,,$(subst $(EPOC_ROOT)/,,$(COMPONENT_META))))
|
|
693 |
|
|
694 |
|
|
695 |
BATCHDIR:=$(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/
|
|
696 |
$(eval $(call MakeTestBatchFiles,$(TARGET),$(BATCHDIR)$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH)))
|
|
697 |
BATCHFILE_CREATED_$(BATCHDIR)$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH):=1
|
|
698 |
TARGET_CREATED_$(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH)_$(TARGET):=1
|
|
699 |
RELEASABLES:=$(RELEASABLES) $(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH)
|
|
700 |
endif
|
|
701 |
|
|
702 |
# clean up
|
|
703 |
$(call raptor_clean,$(CLEANTARGETS))
|
|
704 |
# make the output directories while reading makefile - some build engines prefer this
|
|
705 |
$(call makepath,$(CREATABLEPATHS))
|
|
706 |
# for the --what option and the log file
|
|
707 |
$(call raptor_release,$(RELEASABLES) $(TC_RELEASABLES))
|