Makefile.fpc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. ctypes strings \
  11. heaptrc \
  12. windows initc cmem dynlibs signals \
  13. dos messages \
  14. rtlconsts sysconst sysutils math types \
  15. typinfo fgl classes \
  16. cpu mmx charset character getopts \
  17. fpwidestring \
  18. winsysut sharemem exeinfo fpintres windirs \
  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. # shared=$(DLLS)
  23. rsts=math typinfo classes sysconst
  24. [require]
  25. nortl=y
  26. [install]
  27. fpcpackage=y
  28. buildunit=buildrtl
  29. [default]
  30. fpcdir=../..
  31. target=win32
  32. [compiler]
  33. includedir=$(INC) $(PROCINC) $(WINDIR)
  34. sourcedir=$(INC) $(PROCINC) $(COMMON) $(WINDIR)
  35. [prerules]
  36. RTL=..
  37. INC=$(RTL)/inc
  38. COMMON=$(RTL)/common
  39. PROCINC=$(RTL)/$(CPU_TARGET)
  40. WININC=../win/wininc
  41. WINDIR=../win
  42. UNITPREFIX=rtl
  43. SYSTEMUNIT=system
  44. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  45. LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
  46. DLLS=
  47. else
  48. DLLS=fpcmemdll
  49. endif
  50. # Paths
  51. OBJPASDIR=$(RTL)/objpas
  52. # Files used by windows.pp
  53. include $(WININC)/makefile.inc
  54. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  55. [rules]
  56. .NOTPARALLEL:
  57. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  58. # Get the system independent include file names.
  59. # This will set the following variables :
  60. # SYSINCNAMES
  61. include $(INC)/makefile.inc
  62. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  63. # Get the processor dependent include file names.
  64. # This will set the following variables :
  65. # CPUINCNAMES
  66. include $(PROCINC)/makefile.cpu
  67. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  68. # Put system unit dependencies together.
  69. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  70. #
  71. # Loaders
  72. #
  73. wprt0$(OEXT) : wprt0.as
  74. gprt0$(OEXT) : gprt0.as
  75. wdllprt0$(OEXT) : wdllprt0.as
  76. wcygprt0$(OEXT) : wcygprt0.as
  77. #
  78. # Unit specific rules
  79. #
  80. system$(PPUEXT) : system.pp $(SYSDEPS)
  81. $(COMPILER) -Us -Sg system.pp -Fi../win
  82. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  83. $(COMPILER) $(INC)/uuchar.pp
  84. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  85. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  86. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  87. $(COMPILER) $(INC)/macpas.pp
  88. iso7185$(PPUEXT) : $(INC)/iso7185.pp buildrtl$(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
  94. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  95. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(WININC) -Fu$(WININC) -Fu$(WINDIR) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  96. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT)
  97. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  98. softfpu$(PPUEXT) : ../inc/softfpu.pp system$(PPUEXT)
  99. $(COMPILER) ../inc/softfpu.pp
  100. sfpu128$(PPUEXT) : ../inc/sfpu128.pp system$(PPUEXT)
  101. $(COMPILER) ../inc/sfpu128.pp
  102. sfpux80$(PPUEXT) : ../inc/sfpux80.pp system$(PPUEXT)
  103. $(COMPILER) ../inc/sfpux80.pp