602
|
1 |
# Copyright (c) 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 PDLL ABIv2 Function Like Makefile (FLM)
|
|
15 |
# Build an e32 PDLL (Patchable constants DLL)
|
|
16 |
#
|
|
17 |
#
|
|
18 |
|
|
19 |
ifeq ($(TARGETTYPE),pdll)
|
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk
|
|
21 |
|
|
22 |
# What we need to build a DLL
|
|
23 |
ifeq ($(NOEXPORTLIBRARY),)
|
|
24 |
IMPORTLIBRARYREQUIRED:=1
|
|
25 |
endif
|
|
26 |
POSTLINKDEFFILE:=$(DEFFILE)
|
|
27 |
SUPPORT_FREEZE:=1
|
|
28 |
|
|
29 |
# Default Linker settings for this target type
|
|
30 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edll.lib
|
|
31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edll.lib$(LINKER_ENTRYPOINT_ADORNMENT))
|
|
32 |
|
|
33 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True")
|
|
34 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP)
|
|
35 |
endif
|
|
36 |
|
|
37 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib
|
|
38 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB)
|
|
39 |
|
|
40 |
|
|
41 |
# Default Postlinker settings
|
|
42 |
CANHAVEEXPORTS:=1
|
|
43 |
POSTLINKTARGETTYPE:=DLL
|
|
44 |
POSTLINKFILETYPE:=dll
|
|
45 |
DOPOSTLINK:=1
|
|
46 |
CANIGNORENONCALLABLE:=1
|
|
47 |
|
|
48 |
# Use the general EABI FLM
|
|
49 |
# We are appending to CDEFS but we don't want this to affect
|
|
50 |
# other invocations so we are going to save it on a stack
|
|
51 |
# and restore it afterwards
|
|
52 |
$(call vsave,CDEFS)
|
|
53 |
CDEFS:=$(CDEFS) __DLL__
|
|
54 |
include $(FLMHOME)/e32abiv2.flm
|
|
55 |
$(call vrestore)
|
|
56 |
|
|
57 |
else
|
|
58 |
$(error e32abiv2pdll.flm called with wrong TARGETTYPE (should be 'pdll' but is '$(TARGETTYPE)'))
|
|
59 |
endif
|
|
60 |
|
|
61 |
|