Makefile.fpc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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 objpas strings \
  9. beos \
  10. dos \
  11. sysutils typinfo math varutils \
  12. cpu mmx getopts heaptrc lineinfo
  13. rsts=math varutils typinfo
  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. targetdir=.
  26. [prerules]
  27. RTL=..
  28. INC=$(RTL)/inc
  29. PROCINC=$(RTL)/$(CPU_TARGET)
  30. UNIXINC=$(RTL)/unix
  31. UNITPREFIX=rtl
  32. # Use new feature from 1.0.5 version
  33. # that generates release PPU files
  34. # which will not be recompiled
  35. ifdef RELEASE
  36. override FPCOPT+=-Ur
  37. endif
  38. # Paths
  39. OBJPASDIR=$(RTL)/objpas
  40. GRAPHDIR=$(INC)/graph
  41. [rules]
  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 prt0$(OEXT) $(CPU_TARGET)/prt0.as
  59. cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
  60. $(AS) -o cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
  61. func$(OEXT) : $(CPU_TARGET)/func.as
  62. $(AS) -o func$(OEXT) $(CPU_TARGET)/func.as
  63. dllprt$(OEXT) : $(CPU_TARGET)/dllprt.as
  64. $(AS) -o 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 $(UNIXINC)/objinc.inc system$(PPUEXT)
  85. #
  86. # Delphi Compatible Units
  87. #
  88. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/*.inc) \
  89. objpas$(PPUEXT) beos$(PPUEXT)
  90. $(COMPILER) -I$(OBJPASDIR) sysutils.pp
  91. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  92. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
  93. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  94. $(COMPILER) $(OBJPASDIR)/math.pp
  95. gettext$(PPUEXT): $(OBJPASDIR)/gettext.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  96. $(COMPILER) $(OBJPASDIR)/gettext.pp
  97. varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
  98. $(OBJPASDIR)/varutilh.inc varutils.pp
  99. $(COMPILER) -I$(OBJPASDIR) $(UNIXINC)/varutils.pp
  100. #
  101. # Other system-independent RTL Units
  102. #
  103. cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
  104. mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
  105. getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
  106. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
  107. $(COMPILER) -Sg $(INC)/heaptrc.pp
  108. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
  109. #
  110. # Other system-dependent RTL Units
  111. #