Makefile.fpc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. #
  2. # Makefile.fpc for Free Pascal Atari RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=$(LOADERS)
  8. units=$(SYSTEMUNIT) fpextres uuchar objpas macpas iso7185 buildrtl cpall
  9. # extpas
  10. implicitunits=si_prc sysutils dos \
  11. ctypes strings rtlconsts sysconst math types \
  12. typinfo sortbase fgl classes charset character getopts \
  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. rsts=math rtlconsts typinfo classes sysconst
  20. [require]
  21. nortl=y
  22. [install]
  23. fpcpackage=y
  24. [default]
  25. fpcdir=../..
  26. target=atari
  27. cpu=m68k
  28. [compiler]
  29. includedir=$(INC) $(PROCINC) $(CPU_TARGET)
  30. sourcedir=$(INC) $(PROCINC) $(CPU_TARGET) $(COMMON)
  31. [prerules]
  32. RTL=..
  33. INC=$(RTL)/inc
  34. COMMON=$(RTL)/common
  35. PROCINC=$(RTL)/$(CPU_TARGET)
  36. UNITPREFIX=rtl
  37. LOADERS=prt0
  38. SYSTEMUNIT=system
  39. # Use new feature from 1.0.5 version
  40. # that generates release PPU files
  41. # which will not be recompiled
  42. ifdef RELEASE
  43. override FPCOPT+=-Ur
  44. endif
  45. # Paths
  46. OBJPASDIR=$(RTL)/objpas
  47. [rules]
  48. .NOTPARALLEL:
  49. # Get the system independent include file names.
  50. # This will set the following variables :
  51. # SYSINCNAMES
  52. include $(INC)/makefile.inc
  53. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  54. # Get the processor dependent include file names.
  55. # This will set the following variables :
  56. # CPUINCNAMES
  57. include $(PROCINC)/makefile.cpu
  58. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  59. # Put system unit dependencies together.
  60. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  61. #
  62. # Loaders
  63. #
  64. prt0$(OEXT) : prt0.as
  65. $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) prt0.as
  66. #
  67. # Base Units (System, strings, os-dependent-base-unit)
  68. #
  69. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
  70. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg @rtl.cfg $(SYSTEMUNIT).pp $(REDIR)
  71. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  72. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  73. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp heaptrc$(PPUEXT)
  74. $(COMPILER) $(INC)/uuchar.pp
  75. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  76. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  77. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  78. $(COMPILER) $(INC)/macpas.pp
  79. iso7185$(PPUEXT) : $(INC)/iso7185.pp buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  80. $(COMPILER) $(INC)/iso7185.pp
  81. extpas$(PPUEXT) : $(INC)/extpas.pp buildrtl$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) heaptrc$(PPUEXT)
  82. $(COMPILER) $(INC)/extpas.pp
  83. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  84. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(CPU_TARGET) -Fu$(PROCINC) -Fu$(AMIINC) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  85. fpextres$(PPUEXT) : $(INC)/fpextres.pp $(SYSTEMUNIT)$(PPUEXT)
  86. $(COMPILER) -Sg $(INC)/fpextres.pp
  87. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  88. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas