Makefile.fpc 3.4 KB

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