Makefile.fpc 3.7 KB

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