sbsv2/raptor/lib/flm/e32abiv2implib.flm
changeset 0 044383f39525
child 3 e1eecf4d390d
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     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 # ARMv5 LIB ABIv2 Function Like Makefile (FLM)
       
    15 # Build an e32 static library
       
    16 # 
       
    17 #
       
    18 
       
    19 ifeq ($(TARGETTYPE),implib)
       
    20 include $(FLMHOME)/e32abiv2defaults.mk
       
    21 
       
    22 # What we need to build an import library
       
    23 POSTLINKFILETYPE:=dll
       
    24 # Determine what kind of entrypoint option to set
       
    25 IMPORTLIBRARYREQUIRED:=1
       
    26 POSTLINKDEFFILE:=$(DEFFILE)
       
    27 SUPPORT_FREEZE:=1
       
    28 
       
    29 # Import libraries are always built as .dso but
       
    30 # in their --linkas option they are meant to
       
    31 # "front" a dll.  So:
       
    32 REQUESTEDTARGETEXT:=dll
       
    33 # if there is a LINKAS variable then this won't matter
       
    34 
       
    35 
       
    36 # We are appending to CDEFS but we don't want this to affect
       
    37 # other invocations so we are going to save it on a stack
       
    38 # and restore it afterwards
       
    39 $(call vsave,CDEFS)
       
    40 CDEFS:=$(CDEFS) __DLL__
       
    41 include $(FLMHOME)/e32abiv2.flm
       
    42 $(call vrestore)
       
    43 
       
    44 else
       
    45 $(error $e32abiv2implib.flm called with wrong TARGETTYPE (should be 'implib' but is '$(TARGETTYPE)'))
       
    46 endif