Makefile.fpc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #
  2. # Makefile.fpc for Free Pascal Win32 RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=$(LOADERS)
  8. units=system objpas macpas buildrtl lineinfo lnfodwrf
  9. implicitunits=sysinitpas sysinitcyg sysinitgprof \
  10. ctypes strings \
  11. heaptrc matrix \
  12. windows winsock winsock2 initc cmem dynlibs signals \
  13. dos crt objects messages \
  14. rtlconsts sysconst sysutils math types \
  15. strutils dateutils varutils variants typinfo fgl classes \
  16. convutils stdconvs cpu mmx charset ucomplex getopts \
  17. winevent sockets printer \
  18. video mouse keyboard fmtbcd \
  19. winsysut sharemem exeinfo fpintres
  20. # shared=$(DLLS)
  21. rsts=math varutils typinfo variants classes dateutils sysconst
  22. [require]
  23. nortl=y
  24. [install]
  25. fpcpackage=y
  26. [default]
  27. fpcdir=../..
  28. target=win32
  29. [compiler]
  30. includedir=$(INC) $(PROCINC) $(WINDIR)
  31. sourcedir=$(INC) $(PROCINC) $(COMMON) $(WINDIR)
  32. [prerules]
  33. RTL=..
  34. INC=$(RTL)/inc
  35. COMMON=$(RTL)/common
  36. PROCINC=$(RTL)/$(CPU_TARGET)
  37. WININC=../win/wininc
  38. WINDIR=../win
  39. UNITPREFIX=rtl
  40. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  41. LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
  42. DLLS=
  43. else
  44. DLLS=fpcmemdll
  45. endif
  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. # Loaders
  68. #
  69. wprt0$(OEXT) : wprt0.as
  70. gprt0$(OEXT) : gprt0.as
  71. wdllprt0$(OEXT) : wdllprt0.as
  72. wcygprt0$(OEXT) : wcygprt0.as
  73. #
  74. # Unit specific rules
  75. #
  76. system$(PPUEXT) : system.pp $(SYSDEPS)
  77. $(COMPILER) -Us -Sg system.pp -Fi../win
  78. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  79. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  80. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  81. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  82. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  83. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(WININC) -Fu$(WININC) -Fu$(WINDIR) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl