3
|
1 |
#
|
|
2 |
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
# e32abiv2defaults.flm
|
|
16 |
# ARMv5 EXE/DLL ABIv2 Function Like Makefile (FLM)
|
|
17 |
#
|
|
18 |
|
|
19 |
# This is for variables that are not set in an FLM call but
|
|
20 |
# only in e32abiv2 flms.
|
|
21 |
|
|
22 |
AUTOEXPORTS:=
|
|
23 |
CANHAVEEXPORTS:=
|
|
24 |
CANIGNORENONCALLABLE:=
|
|
25 |
DOPOSTLINK:=
|
|
26 |
IMPORTLIBRARYREQUIRED:=
|
|
27 |
LINKER_ENTRYPOINT_LIBDEP:=
|
|
28 |
LINKER_ENTRYPOINT_SETTING:=
|
|
29 |
LINKER_STUB_LIBRARY:=
|
|
30 |
NAMEDSYMLKUP:=
|
|
31 |
POSTLINKDEFFILE:=
|
|
32 |
POSTLINKFILETYPE:=
|
|
33 |
POSTLINKTARGETTYPE:=
|
|
34 |
STATIC_RUNTIME_LIB:=
|
|
35 |
SUPPORT_FREEZE:=
|
|
36 |
NOHIDEALL:=
|
|
37 |
DEFAULT_NEWLIB:=$(DEFAULT_SYMBIAN_NEWLIB)
|
|
38 |
|
|
39 |
|
|
40 |
# Reset these variables as they change for every single target type
|
|
41 |
# LINKER_ENTRYPOINT_ADORNMENT will be blank for GCCE; for RVCT it will look like "(uc_exe_.o)"
|
|
42 |
# LINKER_ENTRYPOINT_DECORATION will be blank for RVCT; for GCCE it will look like "-u _E32Startup"
|
|
43 |
|
|
44 |
LINKER_ENTRYPOINT_ADORNMENT:=
|
|
45 |
LINKER_ENTRYPOINT_DECORATION:=
|
|
46 |
|
|
47 |
# For GCCE
|
|
48 |
ifeq ($(TOOLCHAIN),GCCE)
|
|
49 |
LINKER_ENTRYPOINT_DECORATION:=$(if $(call isoneof,$(TARGETTYPE),exexp exe),-u _E32Startup,-u _E32Dll)
|
|
50 |
endif
|
|
51 |
|
|
52 |
# For RVCT
|
|
53 |
ifeq ($(TOOLCHAIN),RVCT)
|
|
54 |
ifeq ($(call isoneof,$(TARGETTYPE),exe stdexe),1) # isoneof returns 1 if true, empty string if false
|
|
55 |
LINKER_ENTRYPOINT_ADORNMENT:=(uc_exe_.o)
|
|
56 |
endif
|
|
57 |
|
|
58 |
ifeq ($(call isoneof,$(TARGETTYPE),ani textnotifier2 stddll plugin fsy pdl dll),1)
|
|
59 |
LINKER_ENTRYPOINT_ADORNMENT:=(uc_dll_.o)
|
|
60 |
endif
|
|
61 |
|
|
62 |
ifeq ($(call isoneof,$(TARGETTYPE),var var2),1)
|
|
63 |
LINKER_ENTRYPOINT_ADORNMENT:=(v_entry_.o)
|
|
64 |
endif
|
|
65 |
|
|
66 |
ifeq ($(call isoneof,$(TARGETTYPE),ldd pdd),1)
|
|
67 |
LINKER_ENTRYPOINT_ADORNMENT:=(D_ENTRY_.o)
|
|
68 |
endif
|
|
69 |
|
|
70 |
ifeq ($(TARGETTYPE),kext)
|
|
71 |
LINKER_ENTRYPOINT_ADORNMENT:=(X_ENTRY_.o)
|
|
72 |
endif
|
|
73 |
|
|
74 |
ifeq ($(TARGETTYPE),kdll)
|
|
75 |
LINKER_ENTRYPOINT_ADORNMENT:=(L_ENTRY_.o)
|
|
76 |
endif
|
|
77 |
endif
|
|
78 |
|
|
79 |
# "OPTION" metadata from the front-end can potentially be supplied simultaneously for both GCCE and RVCT,
|
|
80 |
# so we need to make a decision on what we make use of based on the TOOLCHAIN in use.
|
|
81 |
# Currently we only support changes to RVCT tool calls.
|
|
82 |
|
|
83 |
LINKEROPTION:=
|
|
84 |
OPTION_COMPILER:=
|
|
85 |
OPTION_REPLACE_COMPILER:=
|
|
86 |
|
|
87 |
ifeq ($(TOOLCHAIN),RVCT)
|
|
88 |
LINKEROPTION:=$(LINKEROPTION_ARMCC)
|
|
89 |
OPTION_COMPILER:=$(OPTION_ARMCC)
|
|
90 |
OPTION_REPLACE_COMPILER:=$(OPTION_REPLACE_ARMCC)
|
|
91 |
endif
|
9
|
92 |
|
|
93 |
# "ARMFPU" overrides for 'fpu-ness' in compiler and postlinker calls in .mmp files are currently only
|
|
94 |
# supported for RVCT-based builds, GCCE builds always make use of the interface defined defaults.
|
|
95 |
ifeq ($(TOOLCHAIN),GCCE)
|
|
96 |
ARMFPU:=
|
|
97 |
endif
|