3
|
1 |
# Copyright (c) 2007-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 |
# e32abiv2exe.flm
|
|
15 |
# ARMv5 STDEXE/DLL ABIv2 Function Like Makefile (FLM)
|
|
16 |
# Build an e32 STDEXE
|
|
17 |
#
|
|
18 |
#
|
|
19 |
|
|
20 |
# What we need to build a STDEXE
|
|
21 |
|
|
22 |
ifeq ($(TARGETTYPE),stdexe)
|
|
23 |
include $(FLMHOME)/e32abiv2defaults.mk
|
|
24 |
|
|
25 |
POSTLINKTARGETTYPE:=STDEXE
|
|
26 |
POSTLINKFILETYPE:=exe
|
|
27 |
DOPOSTLINK:=1
|
|
28 |
# Determine what kind of entrypoint option to set
|
|
29 |
LINKER_STUB_LIBRARY:=
|
|
30 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/eexe.lib
|
|
31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION) _E32Startup $(LINKER_ENTRYPOINT_DECORATION) $(call dblquote,$(STATIC_RUNTIME_DIR)/eexe.lib$(LINKER_ENTRYPOINT_ADORNMENT))
|
|
32 |
DEFAULT_NEWLIB:=$(DEFAULT_STDCPP_NEWLIB)
|
|
33 |
|
|
34 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True")
|
|
35 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP)
|
|
36 |
endif
|
|
37 |
|
|
38 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB)
|
|
39 |
NAMEDSYMLKUP:=1
|
|
40 |
LIBRARY:=$(LIBRARY) euser.dso
|
|
41 |
|
|
42 |
$(call vsave,CDEFS SYSTEMINCLUDE STATICLIBRARY)
|
|
43 |
|
|
44 |
# STDEXEs need the c runtime library
|
|
45 |
ifneq ($(WCHARENTRYPOINT),)
|
|
46 |
STATICLIBRARY:=$(STATICLIBRARY) libwcrt0
|
|
47 |
else
|
|
48 |
STATICLIBRARY:=$(STATICLIBRARY) libcrt0
|
|
49 |
endif
|
|
50 |
|
|
51 |
SYSTEMINCLUDE:=$(SYSTEMINCLUDE) $(EPOCROOT)/epoc32/include/stdapis
|
|
52 |
CDEFS:=$(CDEFS) __EXE__
|
|
53 |
NOHIDEALL:=1
|
|
54 |
|
|
55 |
include $(FLMHOME)/e32abiv2.flm
|
|
56 |
$(call vrestore)
|
|
57 |
|
|
58 |
else
|
|
59 |
$(error e32abiv2stdexe.flm called with wrong TARGETTYPE (should be 'stdexe' but is '$(TARGETTYPE)'))
|
|
60 |
endif
|
|
61 |
|