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 |
# ARMv5 EXE/DLL ABIv2 Function Like Makefile (FLM) |
|
15 |
# Build an e32 EXE |
|
16 |
# |
|
17 |
# |
|
18 |
||
19 |
# What we need to build an EXE |
|
20 |
||
21 |
ifeq ($(TARGETTYPE),exe) |
|
22 |
include $(FLMHOME)/e32abiv2defaults.mk |
|
23 |
||
24 |
POSTLINKTARGETTYPE:=EXE |
|
25 |
POSTLINKFILETYPE:=exe |
|
26 |
DOPOSTLINK:=1 |
|
27 |
# Determine what kind of entrypoint option to set |
|
28 |
LINKER_STUB_LIBRARY:= |
|
29 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/$(if $(FIRSTLIB),$(FIRSTLIB),eexe.lib) |
|
30 |
||
22 | 31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Startup $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/$(if $(FIRSTLIB),$(FIRSTLIB),eexe.lib)$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 32 |
|
33 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
34 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
35 |
endif |
|
36 |
||
368
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
37 |
ifeq ($(EPOCNESTEDEXCEPTIONS),) |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
38 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
39 |
else |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
40 |
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
|
41 |
endif |
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
42 |
|
3 | 43 |
$(call vsave,CDEFS) |
44 |
CDEFS:=$(CDEFS) __EXE__ |
|
45 |
include $(FLMHOME)/e32abiv2.flm |
|
46 |
$(call vrestore) |
|
47 |
||
48 |
else |
|
49 |
$(error $e32abiv2exe.flm called with wrong TARGETTYPE (should be 'exe' but is '$(TARGETTYPE)')) |
|
50 |
endif |
|
51 |