author | Daniel Jacobs <daniel.jacobs@nokia.com> |
Mon, 17 May 2010 11:37:12 +0100 | |
branch | fix |
changeset 557 | be0305eb3dc3 |
parent 368 | 113d720d5a6c |
permissions | -rw-r--r-- |
3 | 1 |
# Copyright (c) 2007-2009 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 |
# ARMv5 EXE/DLL ABIv2 Function Like Makefile (FLM) |
|
15 |
# Build an e32 EXE with exports |
|
16 |
# |
|
17 |
# |
|
18 |
||
19 |
ifeq ($(TARGETTYPE),exexp) |
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk |
|
21 |
||
22 |
# What we need to build an EXEXP |
|
23 |
CANHAVEEXPORTS:=1 |
|
24 |
POSTLINKTARGETTYPE:=EXEXP |
|
25 |
POSTLINKFILETYPE:=exe |
|
26 |
DOPOSTLINK:=1 |
|
27 |
EPOCALLOWDLLDATA:=1 |
|
28 |
CANIGNORENONCALLABLE:=1 |
|
29 |
||
30 |
$(call vsave,CDEFS) |
|
31 |
# Determine what kind of entrypoint option to set |
|
32 |
FIRSTLIB_OBJECTFILE=uc_exe_.o |
|
368
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
33 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
3 | 34 |
|
35 |
ifeq ($(FIRSTLIB),) |
|
36 |
FIRSTLIB:=eexe.lib |
|
37 |
else |
|
38 |
ifneq ($(findstring kc_exe,$(FIRSTLIB))$(findstring KC_EXE,$(FIRSTLIB)),) |
|
39 |
STATIC_RUNTIME_LIB:=$(KERNEL_STATIC_RUNTIME_LIB) |
|
40 |
CDEFS:=$(CDEFS) __KERNEL_MODE__ |
|
41 |
FIRSTLIB_OBJECTFILE=k_entry_.o |
|
42 |
# Kernel code builds as arm |
|
43 |
ALWAYS_BUILD_AS_ARM:=1 |
|
44 |
# No exception support for kernel code |
|
45 |
EXCEPTIONS:=$(NO_EXCEPTIONS) |
|
46 |
# No dedicated library for operator new/delete functions. |
|
47 |
HAS_DEDICATED_OP_NEWDEL_LIB:= |
|
48 |
||
49 |
endif |
|
50 |
endif |
|
51 |
||
52 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/$(FIRSTLIB) |
|
53 |
||
54 |
ifeq ("$(TOOLCHAIN)","RVCT") |
|
22 | 55 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Startup $(call dblquote,$(STATIC_RUNTIME_DIR)/$(FIRSTLIB)($(FIRSTLIB_OBJECTFILE))) |
3 | 56 |
else |
57 |
# GCCE |
|
22 | 58 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Startup -Wl,-u$(LINKER_SEPARATOR)_E32Startup$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/$(FIRSTLIB)) |
3 | 59 |
endif |
60 |
||
61 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
62 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
63 |
endif |
|
64 |
||
65 |
||
66 |
POSTLINKDEFFILE:=$(DEFFILE) |
|
67 |
SUPPORT_FREEZE:=1 |
|
68 |
ifeq ($(NOEXPORTLIBRARY),) |
|
69 |
IMPORTLIBRARYREQUIRED:=1 |
|
70 |
else |
|
71 |
IMPORTLIBRARYREQUIRED:= |
|
72 |
endif |
|
73 |
||
74 |
||
75 |
CDEFS:=$(CDEFS) __EXE__ |
|
76 |
include $(FLMHOME)/e32abiv2.flm |
|
77 |
$(call vrestore) |
|
78 |
||
79 |
||
80 |
else |
|
81 |
$(error $e32abiv2exexp.flm called with wrong TARGETTYPE (should be 'exexp' but is '$(TARGETTYPE)')) |
|
82 |
endif |
|
83 |