Makefile.fpc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #
  2. # Makefile.fpc for Free Pascal SymbianOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. # $(MACPASUNIT) and $(ISO7185UNIT) units rely on sysutils unit, not yet handled here
  8. # $(EXTPASUNIT) unit relies on dos unit, not yet handled
  9. units=$(SYSTEMUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(UUCHARUNIT) $(OBJPASUNIT) $(MACPASUNIT) \
  10. $(SYSCONSTUNIT) $(SYSUTILSUNIT) $(MATHUNIT) $(RTLCONSTSUNIT) \
  11. $(CHARACTERUNIT) $(FPWIDESTRINGUNIT) $(FGLUNIT) $(CPU_UNITS) \
  12. $(DOSUNIT) $(TYPEINFOUNIT) $(TYPESUNIT) $(SORTBASEUNIT) $(CLASSESUNIT) buildrtl
  13. implicitunits=$(CTYPESUNIT) $(STRINGSUNIT) $(SYMBIANUNIT) $(UNICODEDATAUNIT)
  14. [require]
  15. nortl=y
  16. [install]
  17. fpcpackage=y
  18. [default]
  19. target=symbian
  20. [compiler]
  21. includedir=$(INC) $(PROCINC)
  22. sourcedir=$(INC) $(PROCINC) $(COMMON)
  23. [prerules]
  24. RTL=..
  25. INC=$(RTL)/inc
  26. COMMON=$(RTL)/common
  27. PROCINC=$(RTL)/$(CPU_TARGET)
  28. SYMBIANINC=./symbianinc
  29. UIQINC=./uiqinc
  30. UNITPREFIX=rtl
  31. ifndef FPC_DOTTEDUNITS
  32. RTLCONSTSUNIT=rtlconst
  33. endif
  34. OBJPASDIR=$(RTL)/objpas
  35. ifeq ($(ARCH),i386)
  36. CPU_UNITS=$(CPUUNIT) $(MMXUNIT)
  37. endif
  38. ifeq ($(ARCH),arm)
  39. CPU_UNITS=$(CPUUNIT)
  40. endif
  41. ifneq ($(findstring $(ARCH),i386),)
  42. CPU_DEPS_CPU=$(SYSUTILSUNIT)$(PPUEXT) $(OBJPASUNIT)$(PPUEXT)
  43. else
  44. CPU_DEPS_CPU=$(SYSUTILSUNIT)$(PPUEXT) $(OBJPASUNIT)$(PPUEXT)
  45. endif
  46. DOS_DEPS_OS=$(OBJPASUNIT)$(PPUEXT)
  47. [rules]
  48. .NOTPARALLEL:
  49. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  50. # Get the system independent include file names.
  51. # This will set the following variables :
  52. # SYSINCNAMES
  53. include $(INC)/makefile.inc
  54. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  55. # Get the processor dependent include file names.
  56. # This will set the following variables :
  57. # CPUINCNAMES
  58. include $(PROCINC)/makefile.cpu
  59. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  60. # Put system unit dependencies together.
  61. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  62. #
  63. # System Units (System, Objpas, Strings)
  64. #
  65. buildrtl$(PPUEXT): buildrtl.pp $(SYSTEMUNIT)$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) # $(MACPASUNIT)$(PPUEXT)
  66. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(INC) -I$(SYMBIANINC) -I$(UIQINC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl