Makefile.fpc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 \
  21. cp863 cp864 cp865 cp866 cp869 cp874 cp8859_1 cp8859_2 cp8859_3 cp8859_4 \
  22. cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 \
  23. cp8859_13 cp8859_14 cp8859_15 cp8859_16 \
  24. unicodedata unicodenumtable
  25. # mmx
  26. # fpcmemdll
  27. # winsysut signals
  28. # no cygwin so far
  29. # initc
  30. rsts=math typinfo classes sysconst
  31. programs=
  32. shared=fpcmemdll
  33. [require]
  34. nortl=y
  35. [install]
  36. fpcpackage=y
  37. buildunit= buildrtl
  38. [default]
  39. fpcdir=../..
  40. target=win64
  41. [compiler]
  42. includedir=$(INC) $(PROCINC)
  43. sourcedir=$(INC) $(PROCINC) $(COMMON) $(WINDIR)
  44. [prerules]
  45. RTL=..
  46. INC=$(RTL)/inc
  47. COMMON=$(RTL)/common
  48. PROCINC=$(RTL)/$(CPU_TARGET)
  49. WININC=../win/wininc
  50. WINDIR=../win
  51. UNITPREFIX=rtl
  52. SYSTEMUNIT=system
  53. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  54. LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
  55. endif
  56. # Paths
  57. OBJPASDIR=$(RTL)/objpas
  58. # Files used by windows.pp
  59. #include $(WININC)/makefile.inc
  60. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  61. [rules]
  62. .NOTPARALLEL:
  63. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  64. # Get the system independent include file names.
  65. # This will set the following variables :
  66. # SYSINCNAMES
  67. include $(INC)/makefile.inc
  68. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  69. # Get the processor dependent include file names.
  70. # This will set the following variables :
  71. # CPUINCNAMES
  72. include $(PROCINC)/makefile.cpu
  73. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  74. # Put system unit dependencies together.
  75. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  76. #
  77. # Unit specific rules
  78. #
  79. system$(PPUEXT) : system.pp $(SYSDEPS)
  80. $(COMPILER) -Us -Sg system.pp -Fi../win
  81. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  82. $(COMPILER) $(INC)/uuchar.pp
  83. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  84. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  85. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  86. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  87. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  88. $(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
  89. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT)
  90. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  91. iso7185$(PPUEXT) : $(INC)/iso7185.pp $(SYSTEMUNIT)$(PPUEXT)
  92. $(COMPILER) $(INC)/iso7185.pp
  93. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  94. $(COMPILER) $(INC)/lineinfo.pp
  95. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp $(SYSTEMUNIT)$(PPUEXT)
  96. $(COMPILER) $(INC)/lnfodwrf.pp