Makefile.fpc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. #
  2. # Makefile.fpc for Free Pascal Atari RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=prt0
  8. units=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings \
  9. heaptrc lineinfo ctypes \
  10. sysutils fgl classes math typinfo \
  11. charset cpall getopts \
  12. types rtlconsts sysconst
  13. # dos extpas
  14. implicitunits=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  15. cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  16. # \
  17. # exec timer doslib utility hardware inputevent graphics layers \
  18. # intuition aboxlib mui \
  19. # these can be moved to packages later
  20. # clipboard datatypes asl ahi tinygl get9 muihelper \
  21. rsts=math rtlconsts typinfo classes sysconst
  22. #implicitunits=exeinfo
  23. [require]
  24. nortl=y
  25. [install]
  26. fpcpackage=y
  27. [default]
  28. fpcdir=../..
  29. target=atari
  30. cpu=m68k
  31. [compiler]
  32. includedir=$(INC) $(PROCINC) $(CPU_TARGET)
  33. sourcedir=$(INC) $(PROCINC) $(CPU_TARGET) $(COMMON)
  34. [prerules]
  35. RTL=..
  36. INC=$(RTL)/inc
  37. COMMON=$(RTL)/common
  38. PROCINC=$(RTL)/$(CPU_TARGET)
  39. UNITPREFIX=rtl
  40. SYSTEMUNIT=system
  41. # Use new feature from 1.0.5 version
  42. # that generates release PPU files
  43. # which will not be recompiled
  44. ifdef RELEASE
  45. override FPCOPT+=-Ur
  46. endif
  47. # Paths
  48. OBJPASDIR=$(RTL)/objpas
  49. GRAPHDIR=$(INC)/graph
  50. [rules]
  51. .NOTPARALLEL:
  52. # Get the system independent include file names.
  53. # This will set the following variables :
  54. # SYSINCNAMES
  55. include $(INC)/makefile.inc
  56. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  57. # Get the processor dependent include file names.
  58. # This will set the following variables :
  59. # CPUINCNAMES
  60. include $(PROCINC)/makefile.cpu
  61. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  62. # Put system unit dependencies together.
  63. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  64. #
  65. # Loaders
  66. #
  67. prt0$(OEXT) : prt0.as
  68. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) prt0.as
  69. #
  70. # Base Units (System, strings, os-dependent-base-unit)
  71. #
  72. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  73. $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
  74. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  75. $(COMPILER) $(INC)/uuchar.pp
  76. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  77. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  78. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  79. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  80. $(SYSTEMUNIT)$(PPUEXT)
  81. $(COMPILER) $(INC)/strings.pp
  82. iso7185$(PPUEXT) : $(INC)/iso7185.pp $(SYSTEMUNIT)$(PPUEXT)
  83. $(COMPILER) $(INC)/iso7185.pp
  84. #extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  85. # $(COMPILER) $(INC)/extpas.pp
  86. #
  87. # System Dependent Units
  88. #
  89. #ports$(PPUEXT) : ports.pas objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  90. #doscalls$(PPUEXT) : doscalls.pas strings$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  91. #
  92. # TP7 Compatible RTL Units
  93. #
  94. #dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
  95. # $(SYSTEMUNIT)$(PPUEXT)
  96. # $(COMPILER) dos.pp
  97. #crt$(PPUEXT) : crt.pas $(INC)/textrec.inc $(SYSTEMUNIT)$(PPUEXT)
  98. #objects$(PPUEXT) : $(INC)/objects.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  99. #printer$(PPUEXT) : printer.pas $(INC)/textrec.inc $(SYSTEMUNIT)$(PPUEXT)
  100. #graph$(PPUEXT) : graph.pp
  101. #
  102. # Delphi Compatible Units
  103. #
  104. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  105. objpas$(PPUEXT) sysconst$(PPUEXT)
  106. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  107. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  108. sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) types$(PPUEXT) fgl$(PPUEXT)
  109. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  110. strutils$(PPUEXT) : $(OBJPASDIR)/strutils.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) \
  111. sysutils$(PPUEXT)
  112. $(COMPILER) $(OBJPASDIR)/strutils.pp
  113. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  114. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
  115. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  116. $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
  117. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  118. $(OBJPASDIR)/varutilh.inc varutils.pp
  119. $(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
  120. fmtbcd$(PPUEXT) : $(OBJPASDIR)/fmtbcd.pp objpas$(PPUEXT) sysutils$(PPUEXT) variants$(PPUEXT) classes$(PPUEXT) system$(PPUEXT)
  121. $(COMPILER) $(OBJPASDIR)/fmtbcd.pp
  122. fgl$(PPUEXT) : $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT)
  123. $(COMPILER) $(OBJPASDIR)/fgl.pp
  124. types$(PPUEXT) : $(OBJPASDIR/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  125. $(COMPILER) $(OBJPASDIR)/types.pp
  126. rtlconsts$(PPUEXT) : $(OBJPASDIR)/rtlconsts.pp
  127. $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
  128. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  129. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  130. dateutil$(PPUEXT) : $(OBJPASDIR)/dateutil.pp
  131. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/dateutil.pp
  132. #
  133. # Mac Pascal Model
  134. #
  135. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  136. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  137. #
  138. # Other system-independent RTL Units
  139. #
  140. ucomplex$(PPUEXT): $(INC)/ucomplex.pp math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  141. $(COMPILER) $(INC)/ucomplex.pp
  142. getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMUNIT)$(PPUEXT)
  143. $(COMPILER) $(INC)/getopts.pp
  144. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  145. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  146. #lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  147. # $(COMPILER) $(INC)/lineinfo.pp
  148. charset$(PPUEXT) : $(INC)/charset.pp $(SYSTEMUNIT)$(PPUEXT)
  149. $(COMPILER) $(INC)/charset.pp
  150. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  151. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas