Makefile.fpc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #
  2. # Makefile.fpc for Free Pascal MorphOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. #loaders=prt0
  8. units=$(SYSTEMUNIT) heaptrc lineinfo uuchar objpas macpas iso7185 extpas buildrtl cpall
  9. # fpintres dos heaptrc ctypes \
  10. # sysutils classes fgl math typinfo \
  11. # charset cpall getopts \
  12. # types rtlconsts sysconst \
  13. # character athreads
  14. implicitunits=$(SYSINITUNITS) athreads dos sysutils \
  15. ctypes strings rtlconsts sysconst math types \
  16. typinfo fgl classes charset character getopts \
  17. fpintres exeinfo \
  18. cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  19. cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 \
  20. cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 \
  21. cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 \
  22. cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u \
  23. unicodedata unicodenumtable
  24. rsts=math rtlconsts typinfo classes sysconst
  25. [require]
  26. nortl=y
  27. [install]
  28. fpcpackage=y
  29. buildunit=buildrtl
  30. [default]
  31. fpcdir=../..
  32. target=morphos
  33. cpu=powerpc
  34. [compiler]
  35. includedir=$(INC) $(PROCINC) $(AMIINC)
  36. sourcedir=$(INC) $(PROCINC) $(AMIINC) $(COMMON)
  37. [prerules]
  38. RTL=..
  39. INC=$(RTL)/inc
  40. COMMON=$(RTL)/common
  41. PROCINC=$(RTL)/$(CPU_TARGET)
  42. AMIINC=$(RTL)/amicommon
  43. UNITPREFIX=rtl
  44. SYSTEMUNIT=system
  45. SYSINITUNITS=si_prc
  46. # Use new feature from 1.0.5 version
  47. # that generates release PPU files
  48. # which will not be recompiled
  49. ifdef RELEASE
  50. override FPCOPT+=-Ur
  51. endif
  52. # Paths
  53. OBJPASDIR=$(RTL)/objpas
  54. [rules]
  55. .NOTPARALLEL:
  56. # Get the system independent include file names.
  57. # This will set the following variables :
  58. # SYSINCNAMES
  59. include $(INC)/makefile.inc
  60. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  61. # Get the processor dependent include file names.
  62. # This will set the following variables :
  63. # CPUINCNAMES
  64. include $(PROCINC)/makefile.cpu
  65. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  66. # Put system unit dependencies together.
  67. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  68. #
  69. # Loaders
  70. #
  71. %$(OEXT) : %.as
  72. $(AS) -o $(UNITTARGETDIRPREFIX)$*$(OEXT) $*.as
  73. #
  74. # Base Units (System, strings, os-dependent-base-unit)
  75. #
  76. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  77. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
  78. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  79. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  80. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  81. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp heaptrc$(PPUEXT)
  82. $(COMPILER) $(INC)/uuchar.pp
  83. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  84. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  85. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  86. $(COMPILER) $(INC)/macpas.pp
  87. iso7185$(PPUEXT) : $(INC)/iso7185.pp buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  88. $(COMPILER) $(INC)/iso7185.pp
  89. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) heaptrc$(PPUEXT)
  90. $(COMPILER) $(INC)/extpas.pp
  91. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  92. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -Fu$(AMIINC) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  93. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  94. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas