Makefile.fpc 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. #
  2. # Makefile.fpc for Go32v2 RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=prt0 exceptn fpu
  8. units=system uuchar objpas macpas iso7185 extpas strings \
  9. go32 dpmiexcp initc ports profile dxetype dxeload emu387 \
  10. dos cmem \
  11. sysutils classes math typinfo \
  12. cpu mmx getopts heaptrc lineinfo lnfodwrf ctypes fgl \
  13. msmouse charset cpall \
  14. types \
  15. sysconst rtlconst
  16. rsts=math typinfo classes sysconst
  17. implicitunits=exeinfo \
  18. cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  19. cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  20. [require]
  21. nortl=y
  22. [install]
  23. fpcpackage=y
  24. [default]
  25. fpcdir=../..
  26. target=go32v2
  27. cpu=i386
  28. [compiler]
  29. includedir=$(INC) $(PROCINC)
  30. sourcedir=$(INC) $(PROCINC) $(COMMON)
  31. [prerules]
  32. RTL=..
  33. INC=../inc
  34. COMMON=$(RTL)/common
  35. PROCINC=../$(CPU_TARGET)
  36. UNITPREFIX=rtl
  37. SYSTEMUNIT=system
  38. # Use new feature from 1.0.5 version
  39. # that generates release PPU files
  40. # which will not be recompiled
  41. ifdef RELEASE
  42. override FPCOPT+=-Ur
  43. endif
  44. # Paths
  45. OBJPASDIR=$(RTL)/objpas
  46. # Insert exception handler in system unit
  47. ifdef EXCEPTIONS_IN_SYSTEM
  48. override FPCOPT+=-dEXCEPTIONS_IN_SYSTEM
  49. endif
  50. # Insert exception handler in system unit
  51. ifdef NO_EXCEPTIONS_IN_SYSTEM
  52. override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
  53. endif
  54. [rules]
  55. .NOTPARALLEL:
  56. # Get the system independent include file names.
  57. # This will set the following variables :
  58. # SYSINCNAMES
  59. include $(INC)/makefile.inc
  60. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  61. # Get the processor dependent include file names.
  62. # This will set the following variables :
  63. # CPUINCNAMES
  64. include $(PROCINC)/makefile.cpu
  65. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  66. # Put system unit dependencies together.
  67. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  68. #
  69. # Loaders
  70. #
  71. prt0$(OEXT) : v2prt0.as
  72. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) v2prt0.as
  73. #
  74. # System Units (System, Objpas, Strings)
  75. #
  76. system$(PPUEXT) : system.pp $(SYSDEPS)
  77. $(COMPILER) -Us -Sg system.pp
  78. $(EXECPPAS)
  79. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  80. $(COMPILER) $(INC)/uuchar.pp
  81. $(EXECPPAS)
  82. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  83. $(COMPILER) -Fi$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  84. $(EXECPPAS)
  85. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  86. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  87. system$(PPUEXT)
  88. $(COMPILER) $(INC)/strings.pp
  89. $(EXECPPAS)
  90. iso7185$(PPUEXT) : $(INC)/iso7185.pp system$(PPUEXT)
  91. $(COMPILER) $(INC)/iso7185.pp
  92. $(EXECPPAS)
  93. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  94. $(COMPILER) $(INC)/extpas.pp
  95. $(EXECPPAS)
  96. #
  97. # System Dependent Units
  98. #
  99. go32$(PPUEXT) : go32.pp system$(PPUEXT)
  100. $(COMPILER) go32.pp
  101. $(EXECPPAS)
  102. dpmiexcp$(PPUEXT) : dpmiexcp.pp exceptn$(OEXT) system$(PPUEXT)
  103. $(COMPILER) -Sg dpmiexcp.pp
  104. $(EXECPPAS)
  105. initc$(PPUEXT) : initc.pp system$(PPUEXT)
  106. $(COMPILER) initc.pp
  107. $(EXECPPAS)
  108. profile$(PPUEXT) : profile.pp dpmiexcp$(PPUEXT) go32$(PPUEXT)
  109. $(COMPILER) profile.pp
  110. $(EXECPPAS)
  111. dxetype$(PPUEXT) : dxetype.pp system$(PPUEXT)
  112. $(COMPILER) dxetype.pp
  113. $(EXECPPAS)
  114. dxeload$(PPUEXT) : dxeload.pp dxetype$(PPUEXT) system$(PPUEXT)
  115. $(COMPILER) dxeload.pp
  116. $(EXECPPAS)
  117. emu387$(PPUEXT) : emu387.pp fpu$(OEXT) strings$(PPUEXT) dxeload$(PPUEXT) \
  118. dpmiexcp$(PPUEXT)
  119. $(COMPILER) emu387.pp
  120. $(EXECPPAS)
  121. ports$(PPUEXT) : ports.pp objpas$(PPUEXT) system$(PPUEXT)
  122. $(COMPILER) ports.pp
  123. $(EXECPPAS)
  124. #
  125. # TP7 Compatible RTL Units
  126. #
  127. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc \
  128. go32$(PPUEXT) strings$(PPUEXT) system$(PPUEXT)
  129. $(COMPILER) dos.pp
  130. $(EXECPPAS)
  131. #
  132. # Delphi Compatible Units
  133. #
  134. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  135. objpas$(PPUEXT) dos$(PPUEXT) go32$(PPUEXT) sysconst$(PPUEXT)
  136. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  137. $(EXECPPAS)
  138. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  139. sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconst$(PPUEXT) types$(PPUEXT) fgl$(PPUEXT)
  140. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  141. fgl$(PPUEXT) : $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT)
  142. $(COMPILER) $(OBJPASDIR)/fgl.pp
  143. $(EXECPPAS)
  144. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  145. $(COMPILER) $(OBJPASDIR)/math.pp
  146. $(EXECPPAS)
  147. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT) rtlconst$(PPUEXT)
  148. $(COMPILER) -Sg -Fi$(OBJPASDIR) $(OBJPASDIR)/typinfo.pp
  149. $(EXECPPAS)
  150. types$(PPUEXT) : $(OBJPASDIR)/types.pp objpas$(PPUEXT)
  151. $(COMPILER) $(OBJPASDIR)/types.pp
  152. $(EXECPPAS)
  153. rtlconst$(PPUEXT) : $(OBJPASDIR)/rtlconst.pp
  154. $(COMPILER) -Fi$(OBJPASDIR) $(OBJPASDIR)/rtlconst.pp
  155. $(EXECPPAS)
  156. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT)
  157. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  158. $(EXECPPAS)
  159. #
  160. # Mac Pascal Model
  161. #
  162. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  163. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  164. $(EXECPPAS)
  165. #
  166. # Other system-independent RTL Units
  167. #
  168. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  169. $(COMPILER) $(PROCINC)/cpu.pp
  170. $(EXECPPAS)
  171. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  172. $(COMPILER) $(PROCINC)/mmx.pp
  173. $(EXECPPAS)
  174. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  175. $(COMPILER) $(INC)/getopts.pp
  176. $(EXECPPAS)
  177. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  178. $(COMPILER) -Sg $(INC)/heaptrc.pp
  179. $(EXECPPAS)
  180. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
  181. $(COMPILER) $(INC)/lineinfo.pp
  182. $(EXECPPAS)
  183. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp system$(PPUEXT)
  184. $(COMPILER) $(INC)/lnfodwrf.pp
  185. $(EXECPPAS)
  186. charset$(PPUEXT) : $(INC)/charset.pp system$(PPUEXT)
  187. $(COMPILER) $(INC)/charset.pp
  188. $(EXECPPAS)
  189. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  190. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  191. $(EXECPPAS)
  192. matrix$(PPUEXT) : $(INC)/matrix.pp $(SYSTEMUNIT)$(PPUEXT)
  193. $(COMPILER) $(INC)/matrix.pp
  194. $(EXECPPAS)
  195. ucomplex$(PPUEXT) : $(INC)/ucomplex.pp math$(PPUEXT) system$(PPUEXT)
  196. $(COMPILER) $(INC)/ucomplex.pp
  197. $(EXECPPAS)
  198. #
  199. # Other system-dependent RTL Units
  200. #
  201. msmouse$(PPUEXT) : msmouse.pp system$(PPUEXT)
  202. $(COMPILER) msmouse.pp
  203. $(EXECPPAS)
  204. callspec$(PPUEXT) : $(INC)/callspec.pp system$(PPUEXT)
  205. $(COMPILER) $(INC)/callspec.pp
  206. $(EXECPPAS)
  207. cmem$(PPUEXT) : $(INC)/cmem.pp $(SYSTEMUNIT)$(PPUEXT)
  208. $(COMPILER) $(INC)/cmem.pp
  209. $(EXECPPAS)
  210. ctypes$(PPUEXT) : $(INC)/ctypes.pp system$(PPUEXT)
  211. $(COMPILER) $(INC)/ctypes.pp
  212. $(EXECPPAS)