Makefile.fpc 3.8 KB

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