Makefile.fpc 3.6 KB

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