sbsv2/raptor/lib/flm/e32abiv2pdll.flm
author Ross Qin <ross.qin@nokia.com>
Tue, 30 Nov 2010 14:05:41 +0800
changeset 713 7b7f0409fc00
parent 625 a1925fb7753a
permissions -rw-r--r--
merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     2
# All rights reserved.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     3
# This component and the accompanying materials are made available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     5
# which accompanies this distribution, and is available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     7
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     8
# Initial Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    10
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    11
# Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    12
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    13
# Description:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    14
# ARMv5 PDLL ABIv2 Function Like Makefile (FLM)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    15
# Build an e32 PDLL (Patchable constants DLL)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    16
# 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    17
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    18
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    19
ifeq ($(TARGETTYPE),pdll)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    20
include $(FLMHOME)/e32abiv2defaults.mk
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
# What we need to build a DLL
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
ifeq ($(NOEXPORTLIBRARY),)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
IMPORTLIBRARYREQUIRED:=1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
endif
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
POSTLINKDEFFILE:=$(DEFFILE)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
SUPPORT_FREEZE:=1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
# Default Linker settings for this target type
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    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
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    37
# Default Postlinker settings
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    38
CANHAVEEXPORTS:=1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    39
POSTLINKTARGETTYPE:=DLL
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    40
POSTLINKFILETYPE:=dll
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    41
DOPOSTLINK:=1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    42
CANIGNORENONCALLABLE:=1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    43
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    44
# Use the general EABI FLM 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    45
# We are appending to CDEFS but we don't want this to affect
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    46
# other invocations so we are going to save it on a stack
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    47
# and restore it afterwards
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    48
$(call vsave,CDEFS)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    49
CDEFS:=$(CDEFS) __DLL__
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    50
include $(FLMHOME)/e32abiv2.flm
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    51
$(call vrestore)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    52
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    53
else
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    54
$(error e32abiv2pdll.flm called with wrong TARGETTYPE (should be 'pdll' but is '$(TARGETTYPE)'))
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    55
endif
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    56
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    57