e32abiv2stdexe.flm 1.8 KB

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