Makefile.fpc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #
  2. # Makefile.fpc for Free Pascal AROS RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=$(LOADERS)
  8. units=$(SYSTEMUNIT) heaptrc uuchar objpas macpas iso7185 extpas lineinfo buildrtl cpall
  9. implicitunits=$(SYSINITUNITS) athreads dos sysutils \
  10. ctypes strings rtlconsts sysconst math types \
  11. typinfo fgl classes charset character getopts \
  12. fpintres exeinfo \
  13. cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  14. cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 \
  15. cp863 cp864 cp865 cp866 cp869 cp874 cp8859_1 cp8859_2 cp8859_3 cp8859_4 \
  16. cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 \
  17. cp8859_13 cp8859_14 cp8859_15 cp8859_16 \
  18. unicodedata unicodenumtable
  19. rsts=math rtlconsts typinfo classes sysconst
  20. [require]
  21. nortl=y
  22. [install]
  23. fpcpackage=y
  24. buildunit=buildrtl
  25. [default]
  26. fpcdir=../..
  27. target=aros
  28. cpu=i386
  29. [compiler]
  30. includedir=$(INC) $(PROCINC) $(CPU_TARGET) $(AMIINC) i386
  31. sourcedir=$(INC) $(PROCINC) $(CPU_TARGET) $(AMIINC) $(COMMON)
  32. [prerules]
  33. RTL=..
  34. INC=$(RTL)/inc
  35. COMMON=$(RTL)/common
  36. PROCINC=$(RTL)/$(CPU_TARGET)
  37. AMIINC=$(RTL)/amicommon
  38. UNITPREFIX=rtl
  39. LOADERS=prt0
  40. SYSTEMUNIT=system
  41. SYSINITUNITS=si_prc
  42. # Use new feature from 1.0.5 version
  43. # that generates release PPU files
  44. # which will not be recompiled
  45. ifdef RELEASE
  46. override FPCOPT+=-Ur
  47. endif
  48. # Paths
  49. OBJPASDIR=$(RTL)/objpas
  50. [rules]
  51. .NOTPARALLEL:
  52. # Get the system independent include file names.
  53. # This will set the following variables :
  54. # SYSINCNAMES
  55. include $(INC)/makefile.inc
  56. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  57. # Get the processor dependent include file names.
  58. # This will set the following variables :
  59. # CPUINCNAMES
  60. include $(PROCINC)/makefile.cpu
  61. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  62. # Put system unit dependencies together.
  63. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  64. #
  65. # Loaders
  66. #
  67. prt0$(OEXT) : $(CPU_TARGET)/prt0.as
  68. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) $(CPU_TARGET)/prt0.as
  69. #
  70. # Base Units (System, strings, os-dependent-base-unit)
  71. #
  72. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  73. $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
  74. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  75. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  76. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp heaptrc$(PPUEXT)
  77. $(COMPILER) $(INC)/uuchar.pp
  78. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  79. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  80. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  81. $(COMPILER) $(INC)/macpas.pp
  82. iso7185$(PPUEXT) : $(INC)/iso7185.pp buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  83. $(COMPILER) $(INC)/iso7185.pp
  84. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) heaptrc$(PPUEXT)
  85. $(COMPILER) $(INC)/extpas.pp
  86. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  87. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  88. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -Fu$(AMIINC) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  89. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  90. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas