Makefile.fpc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 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 $(CPUUNITS) \
  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 cp3021 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 cpkoi8_r cpkoi8_u \
  18. unicodedata unicodenumtable \
  19. softfpu sfpux80 ufloatx80 sfpu128 ufloat128
  20. rsts=math rtlconsts typinfo classes sysconst
  21. [require]
  22. nortl=y
  23. [install]
  24. fpcpackage=y
  25. buildunit=buildrtl
  26. [default]
  27. fpcdir=../..
  28. target=aros
  29. cpu=i386
  30. [compiler]
  31. includedir=$(INC) $(PROCINC) $(CPU_TARGET) $(AMIINC) i386
  32. sourcedir=$(INC) $(PROCINC) $(CPU_TARGET) $(AMIINC) $(COMMON)
  33. [prerules]
  34. RTL=..
  35. INC=$(RTL)/inc
  36. COMMON=$(RTL)/common
  37. PROCINC=$(RTL)/$(CPU_TARGET)
  38. AMIINC=$(RTL)/amicommon
  39. UNITPREFIX=rtl
  40. LOADERS=prt0
  41. SYSTEMUNIT=system
  42. SYSINITUNITS=si_prc
  43. # Use new feature from 1.0.5 version
  44. # that generates release PPU files
  45. # which will not be recompiled
  46. ifdef RELEASE
  47. override FPCOPT+=-Ur
  48. endif
  49. # Paths
  50. OBJPASDIR=$(RTL)/objpas
  51. ifeq ($(ARCH),i386)
  52. CPU_UNITS=cpu mmx lineinfo
  53. endif
  54. ifeq ($(ARCH),x86_64)
  55. CPU_UNITS=cpu
  56. endif
  57. [rules]
  58. .NOTPARALLEL:
  59. # Get the system independent include file names.
  60. # This will set the following variables :
  61. # SYSINCNAMES
  62. include $(INC)/makefile.inc
  63. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  64. # Get the processor dependent include file names.
  65. # This will set the following variables :
  66. # CPUINCNAMES
  67. include $(PROCINC)/makefile.cpu
  68. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  69. # Put system unit dependencies together.
  70. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  71. #
  72. # Loaders
  73. #
  74. prt0$(OEXT) : $(CPU_TARGET)/prt0.as
  75. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) $(CPU_TARGET)/prt0.as
  76. #
  77. # Base Units (System, strings, os-dependent-base-unit)
  78. #
  79. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  80. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
  81. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  82. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  83. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp heaptrc$(PPUEXT)
  84. $(COMPILER) $(INC)/uuchar.pp
  85. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  86. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  87. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  88. $(COMPILER) $(INC)/macpas.pp
  89. iso7185$(PPUEXT) : $(INC)/iso7185.pp buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  90. $(COMPILER) $(INC)/iso7185.pp
  91. extpas$(PPUEXT) : $(INC)/extpas.pp buildrtl$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) heaptrc$(PPUEXT)
  92. $(COMPILER) $(INC)/extpas.pp
  93. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  94. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  95. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -Fu$(AMIINC) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  96. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  97. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  98. softfpu$(PPUEXT) : $(INC)/softfpu.pp $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT)
  99. $(COMPILER) $<
  100. sfpux80$(PPUEXT) : $(INC)/sfpux80.pp $(INC)/softfpu.pp $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT)
  101. $(COMPILER) $<
  102. sfpu128$(PPUEXT) : $(INC)/sfpu128.pp $(INC)/softfpu.pp $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT)
  103. $(COMPILER) $<
  104. ufloatx80$(PPUEXT) : $(INC)/ufloatx80.pp sfpux80$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  105. $(COMPILER) $<
  106. ufloat128$(PPUEXT) : $(INC)/ufloat128.pp sfpu128$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  107. $(COMPILER) $<