author | timothy.murphy@nokia.com |
Thu, 25 Feb 2010 16:59:00 +0000 | |
branch | fix |
changeset 277 | dbd582b8c0ab |
parent 230 | 3d05ccc51d1a |
child 367 | 28419e56ee8a |
permissions | -rw-r--r-- |
230
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
1 |
# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | 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 fsy - a filesystem driver |
|
16 |
# |
|
17 |
# |
|
18 |
||
19 |
ifeq ($(TARGETTYPE),fsy) |
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk |
|
21 |
||
22 |
# What we need to build a DLL |
|
23 |
CANHAVEEXPORTS:=1 |
|
24 |
POSTLINKTARGETTYPE:=FSY |
|
25 |
POSTLINKFILETYPE:=fsy |
|
26 |
DOPOSTLINK:=1 |
|
27 |
||
28 |
# Determine what kind of entrypoint option to set |
|
29 |
AUTOEXPORTS:=CreateFileSystem,1; |
|
30 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edll.lib |
|
22 | 31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edll.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 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 |
||
230
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
39 |
# Fixed export TARGETTYPEs should only reference a .def file if an explicit DEFFILE statement is present in the .mmp file |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
40 |
ifneq ($(DEFFILEKEYWORD),) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
41 |
POSTLINKDEFFILE:=$(DEFFILE) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
42 |
SUPPORT_FREEZE:=1 |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
43 |
ifeq ($(NOEXPORTLIBRARY),) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
44 |
IMPORTLIBRARYREQUIRED:=1 |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
45 |
endif |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
46 |
endif |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
47 |
|
3 | 48 |
UID2:=100039df |
49 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
|
50 |
CANIGNORENONCALLABLE:=1 |
|
51 |
||
52 |
||
53 |
# We are appending to CDEFS but we don't want this to affect |
|
54 |
# other invocations so we are going to save it on a stack |
|
55 |
# and restore it afterwards |
|
56 |
$(call vsave,CDEFS) |
|
57 |
CDEFS:=$(CDEFS) __DLL__ |
|
58 |
include $(FLMHOME)/e32abiv2.flm |
|
59 |
$(call vrestore) |
|
60 |
||
61 |
else |
|
62 |
$(error $e32abiv2fsy.flm called with wrong TARGETTYPE (should be 'fsy' but is '$(TARGETTYPE)')) |
|
63 |
endif |
|
64 |