Makefile.fpc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. #
  2. # Makefile.fpc for Free Pascal BeOS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=prt0 cprt0 func dllprt
  8. units=system posix objpas macpas strings \
  9. beos \
  10. dos matrix \
  11. sysutils fgl classes typinfo math varutils fmtbcd \
  12. cpu mmx getopts heaptrc lineinfo lnfodwrf variants types sysconst
  13. rsts=math varutils typinfo sysconst
  14. [require]
  15. nortl=y
  16. [install]
  17. fpcpackage=y
  18. [default]
  19. fpcdir=../..
  20. target=beos
  21. cpu=i386
  22. [compiler]
  23. includedir=$(INC) $(PROCINC) $(UNIXINC)
  24. sourcedir=$(INC) $(PROCINC) $(UNIXINC)
  25. [prerules]
  26. RTL=..
  27. INC=$(RTL)/inc
  28. PROCINC=$(RTL)/$(CPU_TARGET)
  29. UNIXINC=$(RTL)/unix
  30. UNITPREFIX=rtl
  31. # Use new feature from 1.0.5 version
  32. # that generates release PPU files
  33. # which will not be recompiled
  34. ifdef RELEASE
  35. override FPCOPT+=-Ur
  36. endif
  37. # Paths
  38. OBJPASDIR=$(RTL)/objpas
  39. GRAPHDIR=$(INC)/graph
  40. [rules]
  41. .NOTPARALLEL:
  42. # Get the system independent include file names.
  43. # This will set the following variables :
  44. # SYSINCNAMES
  45. include $(INC)/makefile.inc
  46. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  47. # Get the processor dependent include file names.
  48. # This will set the following variables :
  49. # CPUINCNAMES
  50. include $(PROCINC)/makefile.cpu
  51. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  52. # Put system unit dependencies together.
  53. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  54. #
  55. # Loaders
  56. #
  57. prt0$(OEXT) : $(CPU_TARGET)/prt0.as
  58. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) $(CPU_TARGET)/prt0.as
  59. cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
  60. $(AS) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
  61. func$(OEXT) : $(CPU_TARGET)/func.as
  62. $(AS) -o $(UNITTARGETDIRPREFIX)func$(OEXT) $(CPU_TARGET)/func.as
  63. dllprt$(OEXT) : $(CPU_TARGET)/dllprt.as
  64. $(AS) -o $(UNITTARGETDIRPREFIX)dllprt$(OEXT) $(CPU_TARGET)/dllprt.as
  65. #
  66. # system Units (system, Objpas, Strings)
  67. #
  68. system$(PPUEXT) : system.pp sysfiles.inc $(SYSDEPS)
  69. $(COMPILER) -Us -Sg system.pp
  70. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  71. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  72. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
  73. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
  74. system$(PPUEXT)
  75. #
  76. # system Dependent Units
  77. #
  78. beos$(PPUEXT) : beos.pp system$(PPUEXT)
  79. #
  80. # TP7 Compatible RTL Units
  81. #
  82. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
  83. beos$(PPUEXT) system$(PPUEXT)
  84. objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
  85. #
  86. # Delphi Compatible Units
  87. #
  88. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  89. objpas$(PPUEXT) beos$(PPUEXT) sysconst$(PPUEXT)
  90. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  91. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  92. sysutils$(PPUEXT) typinfo$(PPUEXT) fgl$(PPUEXT)
  93. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  94. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  95. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
  96. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  97. $(COMPILER) $(OBJPASDIR)/math.pp
  98. gettext$(PPUEXT): $(OBJPASDIR)/gettext.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  99. $(COMPILER) $(OBJPASDIR)/gettext.pp
  100. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  101. $(OBJPASDIR)/varutilh.inc varutils.pp
  102. $(COMPILER) -I$(OBJPASDIR) $(UNIXINC)/varutils.pp
  103. fmtbcd$(PPUEXT) : $(OBJPASDIR)/fmtbcd.pp objpas$(PPUEXT) sysutils$(PPUEXT) variants$(PPUEXT) classes$(PPUEXT) system$(PPUEXT)
  104. $(COMPILER) $(OBJPASDIR)/fmtbcd.pp
  105. types$(PPUEXT) : $(OBJPASDIR/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  106. $(COMPILER) $(OBJPASDIR)/types.pp
  107. fgl$(PPUEXT) : $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT)
  108. $(COMPILER) $(OBJPASDIR)/fgl.pp
  109. #
  110. # Mac Pascal Model
  111. #
  112. macpas$(PPUEXT) : $(INC)/macpas.pp system$(PPUEXT)
  113. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  114. #
  115. # Other system-independent RTL Units
  116. #
  117. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  118. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  119. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  120. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  121. $(COMPILER) -Sg $(INC)/heaptrc.pp
  122. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
  123. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp system$(PPUEXT)
  124. #
  125. # Other system-dependent RTL Units