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 Variant DLL
|
|
16 |
#
|
|
17 |
#
|
|
18 |
|
|
19 |
ifeq ($(TARGETTYPE),var)
|
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk
|
|
21 |
|
|
22 |
# What we need to build a DLL
|
|
23 |
# May need a dso e.g. ecust.dll
|
|
24 |
ifeq ($(NOEXPORTLIBRARY),)
|
|
25 |
IMPORTLIBRARYREQUIRED:=1
|
|
26 |
endif
|
|
27 |
POSTLINKDEFFILE:=$(DEFFILE)
|
|
28 |
SUPPORT_FREEZE:=1
|
|
29 |
|
|
30 |
# Determine what kind of entrypoint option to set
|
|
31 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/evar.lib
|
|
32 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION) _E32Dll $(LINKER_ENTRYPOINT_DECORATION) $(call dblquote,$(STATIC_RUNTIME_DIR)/evar.lib$(LINKER_ENTRYPOINT_ADORNMENT))
|
|
33 |
|
|
34 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True")
|
|
35 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP)
|
|
36 |
endif
|
|
37 |
|
|
38 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib
|
|
39 |
STATIC_RUNTIME_LIB:=$(KERNEL_STATIC_RUNTIME_LIB)
|
|
40 |
RUNTIME_LIBS_LIST:=
|
|
41 |
|
|
42 |
# Kernel code builds as arm
|
|
43 |
ALWAYS_BUILD_AS_ARM:=1
|
|
44 |
|
|
45 |
# No dedicated library for operator new/delete functions.
|
|
46 |
HAS_DEDICATED_OP_NEWDEL_LIB:=
|
|
47 |
|
|
48 |
# Default Postlinker settings
|
|
49 |
CANHAVEEXPORTS:=1
|
|
50 |
POSTLINKTARGETTYPE:=VAR
|
|
51 |
POSTLINKFILETYPE:=dll
|
|
52 |
DOPOSTLINK:=1
|
|
53 |
AUTOEXPORTS:=_Z17VariantInitialisev,1;
|
|
54 |
|
|
55 |
# No exception support for kernel code?
|
|
56 |
EXCEPTIONS:=$(NO_EXCEPTIONS)
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
# We are appending to CDEFS but we don't want this to affect
|
|
61 |
# other invocations so we are going to save it on a stack
|
|
62 |
# and restore it afterwards
|
|
63 |
$(call vsave,CDEFS SYSTEMINCLUDE)
|
|
64 |
SYSTEMINCLUDE:=$(SYSTEMINCLUDE) $(EPOCROOT)/epoc32/include/nkern $(EPOCROOT)/epoc32/include/kernel/arm $(EPOCROOT)/epoc32/include/memmodel/epoc $(EPOCROOT)/epoc32/include/kernel $(EPOCROOT)/epoc32/include/nkern/arm
|
|
65 |
CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__
|
|
66 |
include $(FLMHOME)/e32abiv2.flm
|
|
67 |
$(call vrestore)
|
|
68 |
|
|
69 |
else
|
|
70 |
$(error $e32abiv2var.flm called with wrong TARGETTYPE (should be 'var' but is '$(TARGETTYPE)'))
|
|
71 |
endif
|
|
72 |
|