Makefile.fpc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #
  2. # Makefile.fpc for Free Pascal Win64 RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=$(LOADERS)
  8. units=system uuchar objpas macpas iso7185 buildrtl cpall lineinfo lnfodwrf
  9. implicitunits=sysinit ctypes strings \
  10. extpas \
  11. heaptrc \
  12. dos messages \
  13. windows cmem dynlibs \
  14. rtlconsts sysconst sysutils math types \
  15. typinfo fgl classes getopts \
  16. charset character fpwidestring \
  17. sharemem exeinfo fpintres windirs \
  18. cpu signals \
  19. cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  20. cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852 \
  21. unicodedata unicodenumtable
  22. # mmx
  23. # fpcmemdll
  24. # winsysut signals
  25. # no cygwin so far
  26. # initc
  27. rsts=math typinfo classes sysconst
  28. programs=
  29. shared=fpcmemdll
  30. [require]
  31. nortl=y
  32. [install]
  33. fpcpackage=y
  34. buildunit= buildrtl
  35. [default]
  36. fpcdir=../..
  37. target=win64
  38. [compiler]
  39. includedir=$(INC) $(PROCINC)
  40. sourcedir=$(INC) $(PROCINC) $(COMMON) $(WINDIR)
  41. [prerules]
  42. RTL=..
  43. INC=$(RTL)/inc
  44. COMMON=$(RTL)/common
  45. PROCINC=$(RTL)/$(CPU_TARGET)
  46. WININC=../win/wininc
  47. WINDIR=../win
  48. UNITPREFIX=rtl
  49. SYSTEMUNIT=system
  50. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  51. LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
  52. endif
  53. # Paths
  54. OBJPASDIR=$(RTL)/objpas
  55. # Files used by windows.pp
  56. #include $(WININC)/makefile.inc
  57. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  58. [rules]
  59. .NOTPARALLEL:
  60. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  61. # Get the system independent include file names.
  62. # This will set the following variables :
  63. # SYSINCNAMES
  64. include $(INC)/makefile.inc
  65. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  66. # Get the processor dependent include file names.
  67. # This will set the following variables :
  68. # CPUINCNAMES
  69. include $(PROCINC)/makefile.cpu
  70. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  71. # Put system unit dependencies together.
  72. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  73. #
  74. # Unit specific rules
  75. #
  76. system$(PPUEXT) : system.pp $(SYSDEPS)
  77. $(COMPILER) -Us -Sg system.pp -Fi../win
  78. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  79. $(COMPILER) $(INC)/uuchar.pp
  80. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  81. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  82. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  83. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  84. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  85. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(WINDIR) -I$(OBJPASDIR) -I$(WININC) -Fu$(WININC) -Fu$(WINDIR) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  86. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT)
  87. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  88. iso7185$(PPUEXT) : $(INC)/iso7185.pp $(SYSTEMUNIT)$(PPUEXT)
  89. $(COMPILER) $(INC)/iso7185.pp
  90. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  91. $(COMPILER) $(INC)/lineinfo.pp
  92. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp $(SYSTEMUNIT)$(PPUEXT)
  93. $(COMPILER) $(INC)/lnfodwrf.pp