Makefile.fpc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Makefile.fpc for Free Pascal SymbianOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. # macpas and iso7185 units rely on sysutils unit, not yet handled here
  8. # extpas unit relies on dos unit, not yet handled
  9. units=$(SYSTEMUNIT) iso7185 extpas uuchar objpas macpas \
  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. SYSTEMUNIT=system
  32. ifndef FPC_DOTTEDUNITS
  33. RTLCONSTSUNIT=rtlconst
  34. endif
  35. OBJPASDIR=$(RTL)/objpas
  36. ifeq ($(ARCH),i386)
  37. CPU_UNITS=cpu mmx
  38. endif
  39. ifeq ($(ARCH),arm)
  40. CPU_UNITS=cpu
  41. endif
  42. ifneq ($(findstring $(ARCH),i386),)
  43. CPU_DEPS_CPU=$(SYSUTILSUNIT)$(PPUEXT) objpas$(PPUEXT)
  44. else
  45. CPU_DEPS_CPU=$(SYSUTILSUNIT)$(PPUEXT) objpas$(PPUEXT)
  46. endif
  47. DOS_DEPS_OS=objpas$(PPUEXT)
  48. [rules]
  49. .NOTPARALLEL:
  50. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  51. # Get the system independent include file names.
  52. # This will set the following variables :
  53. # SYSINCNAMES
  54. include $(INC)/makefile.inc
  55. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  56. # Get the processor dependent include file names.
  57. # This will set the following variables :
  58. # CPUINCNAMES
  59. include $(PROCINC)/makefile.cpu
  60. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  61. # Put system unit dependencies together.
  62. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  63. #
  64. # System Units (System, Objpas, Strings)
  65. #
  66. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) # macpas$(PPUEXT)
  67. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(INC) -I$(SYMBIANINC) -I$(UIQINC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl