e32abiv2implib.flm 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. ifeq ($(TARGETTYPE),implib)
  19. include $(FLMHOME)/e32abiv2defaults.mk
  20. # What we need to build an import library
  21. POSTLINKFILETYPE:=dll
  22. # Determine what kind of entrypoint option to set
  23. IMPORTLIBRARYREQUIRED:=1
  24. POSTLINKDEFFILE:=$(DEFFILE)
  25. SUPPORT_FREEZE:=1
  26. # Import libraries are always built as .dso but
  27. # in their --linkas option they are meant to
  28. # "front" a dll. So:
  29. REQUESTEDTARGETEXT:=dll
  30. # if there is a LINKAS variable then this won't matter
  31. # We are appending to CDEFS but we don't want this to affect
  32. # other invocations so we are going to save it on a stack
  33. # and restore it afterwards
  34. $(call vsave,CDEFS)
  35. CDEFS:=$(CDEFS) __DLL__
  36. include $(FLMHOME)/e32abiv2.flm
  37. $(call vrestore)
  38. else
  39. $(error $e32abiv2implib.flm called with wrong TARGETTYPE (should be 'implib' but is '$(TARGETTYPE)'))
  40. endif