Makefile.fpc 3.9 KB

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