author | Richard Taylor <richard.i.taylor@nokia.com> |
Thu, 22 Apr 2010 11:11:09 +0100 | |
changeset 440 | 597059aceea2 |
parent 369 | 1248e8f6a72d |
permissions | -rw-r--r-- |
369
1248e8f6a72d
Updated copright year on modified files.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
368
diff
changeset
|
1 |
# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | 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 |
# e32abiv2exe.flm |
|
15 |
# ARMv5 STDEXE/DLL ABIv2 Function Like Makefile (FLM) |
|
16 |
# Build an e32 STDEXE |
|
17 |
# |
|
18 |
# |
|
19 |
||
20 |
# What we need to build a STDEXE |
|
21 |
||
22 |
ifeq ($(TARGETTYPE),stdexe) |
|
23 |
include $(FLMHOME)/e32abiv2defaults.mk |
|
24 |
||
25 |
POSTLINKTARGETTYPE:=STDEXE |
|
26 |
POSTLINKFILETYPE:=exe |
|
27 |
DOPOSTLINK:=1 |
|
28 |
# Determine what kind of entrypoint option to set |
|
29 |
LINKER_STUB_LIBRARY:= |
|
30 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/eexe.lib |
|
22 | 31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Startup $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/eexe.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 32 |
DEFAULT_NEWLIB:=$(DEFAULT_STDCPP_NEWLIB) |
33 |
||
34 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
35 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
36 |
endif |
|
37 |
||
368
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
38 |
ifeq ($(EPOCNESTEDEXCEPTIONS),) |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
39 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
40 |
else |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
41 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB_NESTED_EXCEPTIONS) |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
42 |
endif |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
43 |
|
3 | 44 |
NAMEDSYMLKUP:=1 |
45 |
LIBRARY:=$(LIBRARY) euser.dso |
|
46 |
||
47 |
$(call vsave,CDEFS SYSTEMINCLUDE STATICLIBRARY) |
|
48 |
||
49 |
# STDEXEs need the c runtime library |
|
50 |
ifneq ($(WCHARENTRYPOINT),) |
|
51 |
STATICLIBRARY:=$(STATICLIBRARY) libwcrt0 |
|
52 |
else |
|
53 |
STATICLIBRARY:=$(STATICLIBRARY) libcrt0 |
|
54 |
endif |
|
55 |
||
56 |
SYSTEMINCLUDE:=$(SYSTEMINCLUDE) $(EPOCROOT)/epoc32/include/stdapis |
|
57 |
CDEFS:=$(CDEFS) __EXE__ |
|
58 |
NOHIDEALL:=1 |
|
59 |
||
60 |
include $(FLMHOME)/e32abiv2.flm |
|
61 |
$(call vrestore) |
|
62 |
||
63 |
else |
|
64 |
$(error e32abiv2stdexe.flm called with wrong TARGETTYPE (should be 'stdexe' but is '$(TARGETTYPE)')) |
|
65 |
endif |
|
66 |