Makefile.fpc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. #
  2. # Makefile.fpc for Free Pascal Win32 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=sysinitpas sysinitcyg sysinitgprof \
  10. extpas \
  11. ctypes strings \
  12. heaptrc \
  13. windows initc cmem dynlibs signals \
  14. dos messages \
  15. rtlconsts sysconst sysutils math types \
  16. typinfo fgl classes \
  17. cpu mmx charset character getopts \
  18. fpwidestring \
  19. winsysut sharemem exeinfo fpintres windirs \
  20. cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  21. cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 \
  22. cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 \
  23. cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 \
  24. cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u \
  25. unicodedata unicodenumtable
  26. # shared=$(DLLS)
  27. rsts=math typinfo classes sysconst
  28. [require]
  29. nortl=y
  30. [install]
  31. fpcpackage=y
  32. buildunit=buildrtl
  33. [default]
  34. fpcdir=../..
  35. target=win32
  36. [compiler]
  37. includedir=$(INC) $(PROCINC) $(WINDIR)
  38. sourcedir=$(INC) $(PROCINC) $(COMMON) $(WINDIR)
  39. [prerules]
  40. RTL=..
  41. INC=$(RTL)/inc
  42. COMMON=$(RTL)/common
  43. PROCINC=$(RTL)/$(CPU_TARGET)
  44. WININC=../win/wininc
  45. WINDIR=../win
  46. UNITPREFIX=rtl
  47. SYSTEMUNIT=system
  48. DLLS=fpcmemdll
  49. # Paths
  50. OBJPASDIR=$(RTL)/objpas
  51. # Files used by windows.pp
  52. include $(WININC)/makefile.inc
  53. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  54. [rules]
  55. .NOTPARALLEL:
  56. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  57. # Get the system independent include file names.
  58. # This will set the following variables :
  59. # SYSINCNAMES
  60. include $(INC)/makefile.inc
  61. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  62. # Get the processor dependent include file names.
  63. # This will set the following variables :
  64. # CPUINCNAMES
  65. include $(PROCINC)/makefile.cpu
  66. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  67. # Put system unit dependencies together.
  68. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  69. #
  70. # Unit specific rules
  71. #
  72. system$(PPUEXT) : system.pp $(SYSDEPS)
  73. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg system.pp -Fi../win
  74. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  75. $(COMPILER) $(INC)/heaptrc.pp
  76. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp heaptrc$(PPUEXT)
  77. $(COMPILER) $(INC)/uuchar.pp
  78. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT) heaptrc$(PPUEXT)
  79. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  80. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  81. $(COMPILER) $(INC)/macpas.pp
  82. iso7185$(PPUEXT) : $(INC)/iso7185.pp buildrtl$(PPUEXT) heaptrc$(PPUEXT)
  83. $(COMPILER) $(INC)/iso7185.pp
  84. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) heaptrc$(PPUEXT)
  85. $(COMPILER) $(INC)/extpas.pp
  86. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT) heaptrc$(PPUEXT)
  87. $(COMPILER) $(INC)/lineinfo.pp
  88. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp $(SYSTEMUNIT)$(PPUEXT) heaptrc$(PPUEXT)
  89. $(COMPILER) $(INC)/lnfodwrf.pp
  90. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  91. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(WININC) -Fu$(WININC) -Fu$(WINDIR) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  92. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT) heaptrc$(PPUEXT)
  93. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  94. softfpu$(PPUEXT) : ../inc/softfpu.pp system$(PPUEXT) heaptrc$(PPUEXT)
  95. $(COMPILER) ../inc/softfpu.pp
  96. sfpu128$(PPUEXT) : ../inc/sfpu128.pp system$(PPUEXT) heaptrc$(PPUEXT)
  97. $(COMPILER) ../inc/sfpu128.pp
  98. sfpux80$(PPUEXT) : ../inc/sfpux80.pp system$(PPUEXT) heaptrc$(PPUEXT)
  99. $(COMPILER) ../inc/sfpux80.pp