author | srilekhas |
Fri, 08 Oct 2010 21:02:28 +0100 | |
changeset 650 | 8f038057ffa5 |
parent 625 | a1925fb7753a |
permissions | -rw-r--r-- |
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
1 |
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
591 | 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 |
|
625
a1925fb7753a
sbs version 2.15.0
Richard Taylor <richard.i.taylor@nokia.com>
parents:
591
diff
changeset
|
31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_PREFIX)$(ENTRYPOINT) $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edll.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
591 | 32 |
|
33 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib |
|
34 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
|
35 |
||
36 |
||
37 |
# Default Postlinker settings |
|
38 |
CANHAVEEXPORTS:=1 |
|
39 |
POSTLINKTARGETTYPE:=DLL |
|
40 |
POSTLINKFILETYPE:=dll |
|
41 |
DOPOSTLINK:=1 |
|
42 |
CANIGNORENONCALLABLE:=1 |
|
43 |
||
44 |
# Use the general EABI FLM |
|
45 |
# We are appending to CDEFS but we don't want this to affect |
|
46 |
# other invocations so we are going to save it on a stack |
|
47 |
# and restore it afterwards |
|
48 |
$(call vsave,CDEFS) |
|
49 |
CDEFS:=$(CDEFS) __DLL__ |
|
50 |
include $(FLMHOME)/e32abiv2.flm |
|
51 |
$(call vrestore) |
|
52 |
||
53 |
else |
|
54 |
$(error e32abiv2pdll.flm called with wrong TARGETTYPE (should be 'pdll' but is '$(TARGETTYPE)')) |
|
55 |
endif |
|
56 |
||
57 |