Makefile.fpc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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 classes typinfo math varutils \
  12. cpu mmx getopts heaptrc lineinfo 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. # Get the system independent include file names.
  42. # This will set the following variables :
  43. # SYSINCNAMES
  44. include $(INC)/makefile.inc
  45. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  46. # Get the processor dependent include file names.
  47. # This will set the following variables :
  48. # CPUINCNAMES
  49. include $(PROCINC)/makefile.cpu
  50. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  51. # Put system unit dependencies together.
  52. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  53. #
  54. # Loaders
  55. #
  56. prt0$(OEXT) : $(CPU_TARGET)/prt0.as
  57. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) $(CPU_TARGET)/prt0.as
  58. cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
  59. $(AS) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
  60. func$(OEXT) : $(CPU_TARGET)/func.as
  61. $(AS) -o $(UNITTARGETDIRPREFIX)func$(OEXT) $(CPU_TARGET)/func.as
  62. dllprt$(OEXT) : $(CPU_TARGET)/dllprt.as
  63. $(AS) -o $(UNITTARGETDIRPREFIX)dllprt$(OEXT) $(CPU_TARGET)/dllprt.as
  64. #
  65. # system Units (system, Objpas, Strings)
  66. #
  67. system$(PPUEXT) : system.pp sysfiles.inc $(SYSDEPS)
  68. $(COMPILER) -Us -Sg system.pp
  69. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  70. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  71. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
  72. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
  73. system$(PPUEXT)
  74. #
  75. # system Dependent Units
  76. #
  77. beos$(PPUEXT) : beos.pp system$(PPUEXT)
  78. #
  79. # TP7 Compatible RTL Units
  80. #
  81. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
  82. beos$(PPUEXT) system$(PPUEXT)
  83. objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
  84. #
  85. # Delphi Compatible Units
  86. #
  87. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  88. objpas$(PPUEXT) beos$(PPUEXT) sysconst$(PPUEXT)
  89. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  90. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  91. sysutils$(PPUEXT) typinfo$(PPUEXT)
  92. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  93. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  94. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
  95. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  96. $(COMPILER) $(OBJPASDIR)/math.pp
  97. gettext$(PPUEXT): $(OBJPASDIR)/gettext.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  98. $(COMPILER) $(OBJPASDIR)/gettext.pp
  99. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  100. $(OBJPASDIR)/varutilh.inc varutils.pp
  101. $(COMPILER) -I$(OBJPASDIR) $(UNIXINC)/varutils.pp
  102. types$(PPUEXT) : $(OBJPASDIR/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  103. $(COMPILER) $(OBJPASDIR)/types.pp
  104. #
  105. # Mac Pascal Model
  106. #
  107. macpas$(PPUEXT) : $(INC)/macpas.pp system$(PPUEXT)
  108. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  109. #
  110. # Other system-independent RTL Units
  111. #
  112. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  113. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  114. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  115. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  116. $(COMPILER) -Sg $(INC)/heaptrc.pp
  117. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
  118. #
  119. # Other system-dependent RTL Units