Makefile.fpc 4.4 KB

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