Makefile.fpc 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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 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. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  79. $(COMPILER) $(INC)/uuchar.pp
  80. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  81. $(COMPILER) -Fi$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  82. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  83. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  84. system$(PPUEXT)
  85. $(COMPILER) $(INC)/strings.pp
  86. iso7185$(PPUEXT) : $(INC)/iso7185.pp system$(PPUEXT)
  87. $(COMPILER) $(INC)/iso7185.pp
  88. #
  89. # System Dependent Units
  90. #
  91. go32$(PPUEXT) : go32.pp system$(PPUEXT)
  92. $(COMPILER) go32.pp
  93. dpmiexcp$(PPUEXT) : dpmiexcp.pp exceptn$(OEXT) system$(PPUEXT)
  94. $(COMPILER) -Sg dpmiexcp.pp
  95. initc$(PPUEXT) : initc.pp system$(PPUEXT)
  96. $(COMPILER) initc.pp
  97. profile$(PPUEXT) : profile.pp dpmiexcp$(PPUEXT) go32$(PPUEXT)
  98. $(COMPILER) profile.pp
  99. dxetype$(PPUEXT) : dxetype.pp system$(PPUEXT)
  100. $(COMPILER) dxetype.pp
  101. dxeload$(PPUEXT) : dxeload.pp dxetype$(PPUEXT) system$(PPUEXT)
  102. $(COMPILER) dxeload.pp
  103. emu387$(PPUEXT) : emu387.pp fpu$(OEXT) strings$(PPUEXT) dxeload$(PPUEXT) \
  104. dpmiexcp$(PPUEXT)
  105. $(COMPILER) emu387.pp
  106. ports$(PPUEXT) : ports.pp objpas$(PPUEXT) system$(PPUEXT)
  107. $(COMPILER) ports.pp
  108. #
  109. # TP7 Compatible RTL Units
  110. #
  111. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc \
  112. go32$(PPUEXT) strings$(PPUEXT) system$(PPUEXT)
  113. $(COMPILER) dos.pp
  114. #
  115. # Delphi Compatible Units
  116. #
  117. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  118. objpas$(PPUEXT) dos$(PPUEXT) go32$(PPUEXT) sysconst$(PPUEXT)
  119. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  120. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  121. sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconst$(PPUEXT) types$(PPUEXT) fgl$(PPUEXT)
  122. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  123. fgl$(PPUEXT) : $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT)
  124. $(COMPILER) $(OBJPASDIR)/fgl.pp
  125. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  126. $(COMPILER) $(OBJPASDIR)/math.pp
  127. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT) rtlconst$(PPUEXT)
  128. $(COMPILER) -Sg -Fi$(OBJPASDIR) $(OBJPASDIR)/typinfo.pp
  129. types$(PPUEXT) : $(OBJPASDIR)/types.pp objpas$(PPUEXT)
  130. $(COMPILER) $(OBJPASDIR)/types.pp
  131. rtlconst$(PPUEXT) : $(OBJPASDIR)/rtlconst.pp
  132. $(COMPILER) -Fi$(OBJPASDIR) $(OBJPASDIR)/rtlconst.pp
  133. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT)
  134. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  135. #
  136. # Mac Pascal Model
  137. #
  138. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  139. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  140. #
  141. # Other system-independent RTL Units
  142. #
  143. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  144. $(COMPILER) $(PROCINC)/cpu.pp
  145. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  146. $(COMPILER) $(PROCINC)/mmx.pp
  147. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  148. $(COMPILER) $(INC)/getopts.pp
  149. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  150. $(COMPILER) -Sg $(INC)/heaptrc.pp
  151. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
  152. $(COMPILER) $(INC)/lineinfo.pp
  153. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp system$(PPUEXT)
  154. $(COMPILER) $(INC)/lnfodwrf.pp
  155. charset$(PPUEXT) : $(INC)/charset.pp system$(PPUEXT)
  156. $(COMPILER) $(INC)/charset.pp
  157. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  158. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  159. matrix$(PPUEXT) : $(INC)/matrix.pp $(SYSTEMUNIT)$(PPUEXT)
  160. $(COMPILER) $(INC)/matrix.pp
  161. ucomplex$(PPUEXT) : $(INC)/ucomplex.pp math$(PPUEXT) system$(PPUEXT)
  162. $(COMPILER) $(INC)/ucomplex.pp
  163. #
  164. # Other system-dependent RTL Units
  165. #
  166. msmouse$(PPUEXT) : msmouse.pp system$(PPUEXT)
  167. $(COMPILER) msmouse.pp
  168. callspec$(PPUEXT) : $(INC)/callspec.pp system$(PPUEXT)
  169. $(COMPILER) $(INC)/callspec.pp
  170. cmem$(PPUEXT) : $(INC)/cmem.pp $(SYSTEMUNIT)$(PPUEXT)
  171. $(COMPILER) $(INC)/cmem.pp
  172. ctypes$(PPUEXT) : $(INC)/ctypes.pp system$(PPUEXT)
  173. $(COMPILER) $(INC)/ctypes.pp