e32abiv2pdll.flm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright (c) 2009-2010 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 PDLL ABIv2 Function Like Makefile (FLM)
  15. # Build an e32 PDLL (Patchable constants DLL)
  16. #
  17. #
  18. ifeq ($(TARGETTYPE),pdll)
  19. include $(FLMHOME)/e32abiv2defaults.mk
  20. # What we need to build a DLL
  21. ifeq ($(NOEXPORTLIBRARY),)
  22. IMPORTLIBRARYREQUIRED:=1
  23. endif
  24. POSTLINKDEFFILE:=$(DEFFILE)
  25. SUPPORT_FREEZE:=1
  26. # Default Linker settings for this target type
  27. LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edll.lib
  28. LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_PREFIX)$(ENTRYPOINT) $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edll.lib$(LINKER_ENTRYPOINT_ADORNMENT))
  29. LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib
  30. STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB)
  31. # Default Postlinker settings
  32. CANHAVEEXPORTS:=1
  33. POSTLINKTARGETTYPE:=DLL
  34. POSTLINKFILETYPE:=dll
  35. DOPOSTLINK:=1
  36. CANIGNORENONCALLABLE:=1
  37. # Use the general EABI FLM
  38. # We are appending to CDEFS but we don't want this to affect
  39. # other invocations so we are going to save it on a stack
  40. # and restore it afterwards
  41. $(call vsave,CDEFS)
  42. CDEFS:=$(CDEFS) __DLL__
  43. include $(FLMHOME)/e32abiv2.flm
  44. $(call vrestore)
  45. else
  46. $(error e32abiv2pdll.flm called with wrong TARGETTYPE (should be 'pdll' but is '$(TARGETTYPE)'))
  47. endif