Makefile.fpc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. #
  2. # Makefile.fpc for Free Pascal MacOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=
  8. units=system uuchar strings objpas macpas iso7185 extpas heaptrc getopts macostp macutils \
  9. unixutil dos cmem charset cpall ctypes
  10. # exec \
  11. # printer \
  12. # lineinfo lnfodwrf graph \
  13. # sysutils math typinfo
  14. # rsts=math
  15. # implicitunits=exeinfo \
  16. implicitunits=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  17. cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 \
  18. cp863 cp864 cp865 cp866 cp869 cp874 cp8859_1 cp8859_2 cp8859_3 cp8859_4 \
  19. cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 \
  20. cp8859_13 cp8859_14 cp8859_15 cp8859_16
  21. [require]
  22. nortl=y
  23. [install]
  24. fpcpackage=y
  25. [default]
  26. fpcdir=../..
  27. target=macos
  28. [compiler]
  29. includedir=$(INC) $(PROCINC)
  30. sourcedir=$(INC) $(PROCINC) $(COMMON)
  31. [prerules]
  32. RTL=..
  33. INC=../inc
  34. PROCINC=../$(CPU_TARGET)
  35. PPUEXT=pput
  36. ASMEXT=.s
  37. UNITPREFIX=rtl
  38. SYSTEMUNIT=system
  39. # Use new feature from 1.0.5 version
  40. # that generates release PPU files
  41. # which will not be recompiled
  42. ifdef RELEASE
  43. ifeq ($(findstring 1.0.2,$(FPC_VERSION)),)
  44. ifeq ($(findstring 1.0.4,$(FPC_VERSION)),)
  45. override FPCOPT+=-Ur
  46. endif
  47. endif
  48. endif
  49. # Paths
  50. OBJPASDIR=$(RTL)/objpas
  51. GRAPHDIR=$(INC)/graph
  52. [rules]
  53. .NOTPARALLEL:
  54. # Get the system independent include file names.
  55. # This will set the following variables :
  56. # SYSINCNAMES
  57. include $(INC)/makefile.inc
  58. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  59. # Get the processor dependent include file names.
  60. # This will set the following variables :
  61. # CPUINCNAMES
  62. include $(PROCINC)/makefile.cpu
  63. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  64. # Put system unit dependencies together.
  65. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  66. #
  67. # Loaders
  68. #
  69. #prt0$(OEXT) : prt0$(LOADEREXT)
  70. # -$(AS) prt0$(LOADEREXT) -o prt0$(OEXT)
  71. #gprt0$(OEXT) : $(GLOADERAS)
  72. # -$(AS) $(GLOADERAS) -o gprt0$(OEXT)
  73. #
  74. # Base Units (System, strings, os-dependent-base-unit)
  75. #
  76. system$(PPUEXT) : system.pp $(SYSDEPS)
  77. $(COMPILER) -Us -Sg system.pp $(REDIR)
  78. strings$(PPUEXT) : $(INC)/strings.pp system$(PPUEXT)
  79. $(COMPILER) $(INC)/strings.pp $(REDIR)
  80. #exec$(PPUEXT) : exec.pp exec.inc system$(PPUEXT)
  81. # $(COMPILER) exec $(REDIR)
  82. #
  83. # Delphi Object Model
  84. #
  85. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  86. objpas$(PPUEXT) : $(OBJPASDIR)/objpas.pp system$(PPUEXT)
  87. $(COPY) $(OBJPASDIR)/objpas.pp .
  88. $(COMPILER) objpas $(REDIR)
  89. $(DEL) objpas.pp
  90. sysutils$(PPUEXT) : $(OBJPASDIR)/sysutils.pp objpas$(PPUEXT) system$(PPUEXT) sysconst$(PPUEXT)
  91. $(COPY) $(OBJPASDIR)/sysutils.pp .
  92. $(COMPILER) sysutils $(REDIR)
  93. #$(DEL) sysutils.pp
  94. #
  95. # Mac Pascal Model
  96. #
  97. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  98. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  99. #
  100. # System Dependent Units
  101. #
  102. #
  103. # TP7 Compatible RTL Units
  104. #
  105. dos$(PPUEXT) : $(DOSDEPS) unixutil$(PPUEXT) system$(PPUEXT)
  106. $(COMPILER) dos $(REDIR)
  107. #crt$(PPUEXT) : crt.pp $(INC)/textrec.inc system$(PPUEXT)
  108. # $(COMPILER) crt $(REDIR)
  109. #printer$(PPUEXT) : printer.pp system$(PPUEXT)
  110. # $(COMPILER) printer $(REDIR)
  111. objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
  112. $(COMPILER) $(INC)/objects.pp $(REDIR)
  113. #
  114. # Other system-independent RTL Units
  115. #
  116. getopts$(PPUEXT) : $(INC)/getopts.pp strings$(PPUEXT) system$(PPUEXT)
  117. $(COMPILER) $(INC)/getopts.pp $(REDIR)
  118. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  119. $(COMPILER) $(INC)/heaptrc.pp $(REDIR)
  120. unixutil$(PPUEXT) : ../unix/unixutil.pp
  121. $(COMPILER) ../unix/unixutil.pp $(REDIR)
  122. charset$(PPUEXT) : $(INC)/charset.pp system$(PPUEXT)
  123. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  124. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  125. cmem$(PPUEXT) : $(INC)/cmem.pp system$(PPUEXT)
  126. ctypes$(PPUEXT) : $(INC)/ctypes.pp system$(PPUEXT)