Makefile.fpc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. #
  2. # Makefile.fpc for Free Pascal MacOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=
  8. units=system strings objpas macpas heaptrc getopts macostp macutils \
  9. unixutil dos objects matrix cmem charset 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. # Use new feature from 1.0.5 version
  34. # that generates release PPU files
  35. # which will not be recompiled
  36. ifdef RELEASE
  37. ifeq ($(findstring 1.0.2,$(FPC_VERSION)),)
  38. ifeq ($(findstring 1.0.4,$(FPC_VERSION)),)
  39. override FPCOPT+=-Ur
  40. endif
  41. endif
  42. endif
  43. # Paths
  44. OBJPASDIR=$(RTL)/objpas
  45. GRAPHDIR=$(INC)/graph
  46. [rules]
  47. .NOTPARALLEL:
  48. # Get the system independent include file names.
  49. # This will set the following variables :
  50. # SYSINCNAMES
  51. include $(INC)/makefile.inc
  52. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  53. # Get the processor dependent include file names.
  54. # This will set the following variables :
  55. # CPUINCNAMES
  56. include $(PROCINC)/makefile.cpu
  57. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  58. # Put system unit dependencies together.
  59. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  60. #
  61. # Loaders
  62. #
  63. #prt0$(OEXT) : prt0$(LOADEREXT)
  64. # -$(AS) prt0$(LOADEREXT) -o prt0$(OEXT)
  65. #gprt0$(OEXT) : $(GLOADERAS)
  66. # -$(AS) $(GLOADERAS) -o gprt0$(OEXT)
  67. #
  68. # Base Units (System, strings, os-dependent-base-unit)
  69. #
  70. system$(PPUEXT) : system.pp $(SYSDEPS)
  71. $(COMPILER) -Us -Sg system.pp $(REDIR)
  72. strings$(PPUEXT) : $(INC)/strings.pp system$(PPUEXT)
  73. $(COMPILER) $(INC)/strings.pp $(REDIR)
  74. #exec$(PPUEXT) : exec.pp exec.inc system$(PPUEXT)
  75. # $(COMPILER) exec $(REDIR)
  76. #
  77. # Delphi Object Model
  78. #
  79. objpas$(PPUEXT) : $(OBJPASDIR)/objpas.pp system$(PPUEXT)
  80. $(COPY) $(OBJPASDIR)/objpas.pp .
  81. $(COMPILER) objpas $(REDIR)
  82. $(DEL) objpas.pp
  83. sysutils$(PPUEXT) : $(OBJPASDIR)/sysutils.pp objpas$(PPUEXT) system$(PPUEXT) sysconst$(PPUEXT)
  84. $(COPY) $(OBJPASDIR)/sysutils.pp .
  85. $(COMPILER) sysutils $(REDIR)
  86. #$(DEL) sysutils.pp
  87. #
  88. # Mac Pascal Model
  89. #
  90. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  91. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  92. #
  93. # System Dependent Units
  94. #
  95. #
  96. # TP7 Compatible RTL Units
  97. #
  98. dos$(PPUEXT) : $(DOSDEPS) unixutil$(PPUEXT) system$(PPUEXT)
  99. $(COMPILER) dos $(REDIR)
  100. #crt$(PPUEXT) : crt.pp $(INC)/textrec.inc system$(PPUEXT)
  101. # $(COMPILER) crt $(REDIR)
  102. #printer$(PPUEXT) : printer.pp system$(PPUEXT)
  103. # $(COMPILER) printer $(REDIR)
  104. objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
  105. $(COMPILER) $(INC)/objects.pp $(REDIR)
  106. #
  107. # Other system-independent RTL Units
  108. #
  109. getopts$(PPUEXT) : $(INC)/getopts.pp strings$(PPUEXT) system$(PPUEXT)
  110. $(COMPILER) $(INC)/getopts.pp $(REDIR)
  111. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  112. $(COMPILER) $(INC)/heaptrc.pp $(REDIR)
  113. unixutil$(PPUEXT) : ../unix/unixutil.pp
  114. $(COMPILER) ../unix/unixutil.pp $(REDIR)
  115. charset$(PPUEXT) : $(INC)/charset.pp system$(PPUEXT)
  116. cmem$(PPUEXT) : $(INC)/cmem.pp system$(PPUEXT)
  117. ctypes$(PPUEXT) : $(INC)/ctypes.pp system$(PPUEXT)