Makefile.fpc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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 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 cp850 cp856 cp866 cp874 cp932 cp936 cp949 cp950 cp8859_1 cp8859_5 cp8859_2 cp852
  18. [require]
  19. nortl=y
  20. [install]
  21. fpcpackage=y
  22. [default]
  23. fpcdir=../..
  24. target=macos
  25. [compiler]
  26. includedir=$(INC) $(PROCINC)
  27. sourcedir=$(INC) $(PROCINC) $(COMMON)
  28. [prerules]
  29. RTL=..
  30. INC=../inc
  31. PROCINC=../$(CPU_TARGET)
  32. PPUEXT=pput
  33. ASMEXT=.s
  34. UNITPREFIX=rtl
  35. SYSTEMUNIT=system
  36. # Use new feature from 1.0.5 version
  37. # that generates release PPU files
  38. # which will not be recompiled
  39. ifdef RELEASE
  40. ifeq ($(findstring 1.0.2,$(FPC_VERSION)),)
  41. ifeq ($(findstring 1.0.4,$(FPC_VERSION)),)
  42. override FPCOPT+=-Ur
  43. endif
  44. endif
  45. endif
  46. # Paths
  47. OBJPASDIR=$(RTL)/objpas
  48. GRAPHDIR=$(INC)/graph
  49. [rules]
  50. .NOTPARALLEL:
  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. # Loaders
  65. #
  66. #prt0$(OEXT) : prt0$(LOADEREXT)
  67. # -$(AS) prt0$(LOADEREXT) -o prt0$(OEXT)
  68. #gprt0$(OEXT) : $(GLOADERAS)
  69. # -$(AS) $(GLOADERAS) -o gprt0$(OEXT)
  70. #
  71. # Base Units (System, strings, os-dependent-base-unit)
  72. #
  73. system$(PPUEXT) : system.pp $(SYSDEPS)
  74. $(COMPILER) -Us -Sg system.pp $(REDIR)
  75. strings$(PPUEXT) : $(INC)/strings.pp system$(PPUEXT)
  76. $(COMPILER) $(INC)/strings.pp $(REDIR)
  77. #exec$(PPUEXT) : exec.pp exec.inc system$(PPUEXT)
  78. # $(COMPILER) exec $(REDIR)
  79. #
  80. # Delphi Object Model
  81. #
  82. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  83. objpas$(PPUEXT) : $(OBJPASDIR)/objpas.pp system$(PPUEXT)
  84. $(COPY) $(OBJPASDIR)/objpas.pp .
  85. $(COMPILER) objpas $(REDIR)
  86. $(DEL) objpas.pp
  87. sysutils$(PPUEXT) : $(OBJPASDIR)/sysutils.pp objpas$(PPUEXT) system$(PPUEXT) sysconst$(PPUEXT)
  88. $(COPY) $(OBJPASDIR)/sysutils.pp .
  89. $(COMPILER) sysutils $(REDIR)
  90. #$(DEL) sysutils.pp
  91. #
  92. # Mac Pascal Model
  93. #
  94. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  95. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  96. #
  97. # System Dependent Units
  98. #
  99. #
  100. # TP7 Compatible RTL Units
  101. #
  102. dos$(PPUEXT) : $(DOSDEPS) unixutil$(PPUEXT) system$(PPUEXT)
  103. $(COMPILER) dos $(REDIR)
  104. #crt$(PPUEXT) : crt.pp $(INC)/textrec.inc system$(PPUEXT)
  105. # $(COMPILER) crt $(REDIR)
  106. #printer$(PPUEXT) : printer.pp system$(PPUEXT)
  107. # $(COMPILER) printer $(REDIR)
  108. objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
  109. $(COMPILER) $(INC)/objects.pp $(REDIR)
  110. #
  111. # Other system-independent RTL Units
  112. #
  113. getopts$(PPUEXT) : $(INC)/getopts.pp strings$(PPUEXT) system$(PPUEXT)
  114. $(COMPILER) $(INC)/getopts.pp $(REDIR)
  115. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  116. $(COMPILER) $(INC)/heaptrc.pp $(REDIR)
  117. unixutil$(PPUEXT) : ../unix/unixutil.pp
  118. $(COMPILER) ../unix/unixutil.pp $(REDIR)
  119. charset$(PPUEXT) : $(INC)/charset.pp system$(PPUEXT)
  120. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  121. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  122. cmem$(PPUEXT) : $(INC)/cmem.pp system$(PPUEXT)
  123. ctypes$(PPUEXT) : $(INC)/ctypes.pp system$(PPUEXT)