author | Jon Chatten |
Thu, 25 Mar 2010 14:13:00 +0000 | |
branch | fix |
changeset 396 | f50e1b89b7ce |
parent 81 | 7653ed978a00 |
child 367 | 28419e56ee8a |
child 625 | a1925fb7753a |
permissions | -rw-r--r-- |
81
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
1 |
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
2 |
# All rights reserved. |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
3 |
# This component and the accompanying materials are made available |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
4 |
# under the terms of the License "Eclipse Public License v1.0" |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
5 |
# which accompanies this distribution, and is available |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
7 |
# |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
8 |
# Initial Contributors: |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
9 |
# Nokia Corporation - initial contribution. |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
10 |
# |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
11 |
# Contributors: |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
12 |
# |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
13 |
# Description: |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
14 |
# ARMv5 PDLL ABIv2 Function Like Makefile (FLM) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
15 |
# Build an e32 PDLL (Patchable constants DLL) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
16 |
# |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
17 |
# |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
18 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
19 |
ifeq ($(TARGETTYPE),pdll) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
21 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
22 |
# What we need to build a DLL |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
23 |
ifeq ($(NOEXPORTLIBRARY),) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
24 |
IMPORTLIBRARYREQUIRED:=1 |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
25 |
endif |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
26 |
POSTLINKDEFFILE:=$(DEFFILE) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
27 |
SUPPORT_FREEZE:=1 |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
28 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
29 |
# Default Linker settings for this target type |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
30 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edll.lib |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edll.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
32 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
33 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
34 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
35 |
endif |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
36 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
37 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
38 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
39 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
40 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
41 |
# Default Postlinker settings |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
42 |
CANHAVEEXPORTS:=1 |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
43 |
POSTLINKTARGETTYPE:=DLL |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
44 |
POSTLINKFILETYPE:=dll |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
45 |
DOPOSTLINK:=1 |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
46 |
CANIGNORENONCALLABLE:=1 |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
47 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
48 |
# Use the general EABI FLM |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
49 |
# We are appending to CDEFS but we don't want this to affect |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
50 |
# other invocations so we are going to save it on a stack |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
51 |
# and restore it afterwards |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
52 |
$(call vsave,CDEFS) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
53 |
CDEFS:=$(CDEFS) __DLL__ |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
54 |
include $(FLMHOME)/e32abiv2.flm |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
55 |
$(call vrestore) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
56 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
57 |
else |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
58 |
$(error e32abiv2pdll.flm called with wrong TARGETTYPE (should be 'pdll' but is '$(TARGETTYPE)')) |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
59 |
endif |
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
60 |
|
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
diff
changeset
|
61 |