Makefile.fpc 7.3 KB

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