Makefile.fpc 3.1 KB

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