Makefile.fpc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852 \
  22. unicodedata unicodenumtable
  23. # shared=$(DLLS)
  24. rsts=math typinfo classes sysconst
  25. [require]
  26. nortl=y
  27. [install]
  28. fpcpackage=y
  29. buildunit=buildrtl
  30. [default]
  31. fpcdir=../..
  32. target=win32
  33. [compiler]
  34. includedir=$(INC) $(PROCINC) $(WINDIR)
  35. sourcedir=$(INC) $(PROCINC) $(COMMON) $(WINDIR)
  36. [prerules]
  37. RTL=..
  38. INC=$(RTL)/inc
  39. COMMON=$(RTL)/common
  40. PROCINC=$(RTL)/$(CPU_TARGET)
  41. WININC=../win/wininc
  42. WINDIR=../win
  43. UNITPREFIX=rtl
  44. SYSTEMUNIT=system
  45. DLLS=fpcmemdll
  46. # Paths
  47. OBJPASDIR=$(RTL)/objpas
  48. # Files used by windows.pp
  49. include $(WININC)/makefile.inc
  50. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  51. [rules]
  52. .NOTPARALLEL:
  53. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  54. # Get the system independent include file names.
  55. # This will set the following variables :
  56. # SYSINCNAMES
  57. include $(INC)/makefile.inc
  58. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  59. # Get the processor dependent include file names.
  60. # This will set the following variables :
  61. # CPUINCNAMES
  62. include $(PROCINC)/makefile.cpu
  63. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  64. # Put system unit dependencies together.
  65. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  66. #
  67. # Unit specific rules
  68. #
  69. system$(PPUEXT) : system.pp $(SYSDEPS)
  70. $(COMPILER) -Us -Sg system.pp -Fi../win
  71. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  72. $(COMPILER) $(INC)/uuchar.pp
  73. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  74. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  75. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  76. $(COMPILER) $(INC)/macpas.pp
  77. iso7185$(PPUEXT) : $(INC)/iso7185.pp buildrtl$(PPUEXT)
  78. $(COMPILER) $(INC)/iso7185.pp
  79. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  80. $(COMPILER) $(INC)/extpas.pp
  81. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  82. $(COMPILER) $(INC)/lineinfo.pp
  83. lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp $(SYSTEMUNIT)$(PPUEXT)
  84. $(COMPILER) $(INC)/lnfodwrf.pp
  85. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  86. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(WININC) -Fu$(WININC) -Fu$(WINDIR) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  87. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT)
  88. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  89. softfpu$(PPUEXT) : ../inc/softfpu.pp system$(PPUEXT)
  90. $(COMPILER) ../inc/softfpu.pp
  91. sfpu128$(PPUEXT) : ../inc/sfpu128.pp system$(PPUEXT)
  92. $(COMPILER) ../inc/sfpu128.pp
  93. sfpux80$(PPUEXT) : ../inc/sfpux80.pp system$(PPUEXT)
  94. $(COMPILER) ../inc/sfpux80.pp