Makefile.fpc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #
  2. # Makefile.fpc for Free Pascal NativeNT RTL
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=
  8. #units=system objpas macpas iso7185 extpas buildrtl lineinfo lnfodwrf
  9. units=system uuchar objpas iso7185 extpas cpall buildrtl
  10. implicitunits=ndk ndkutils ddk \
  11. ctypes strings \
  12. # heaptrc
  13. # initc cmem dynlibs signals \
  14. # dos \
  15. rtlconsts sysconst sysutils math types \
  16. typinfo fgl classes \
  17. $(CPU_UNITS) charset getopts \
  18. # sockets printer \
  19. # keyboard
  20. # sharemem exeinfo fpintres \
  21. cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  22. cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  23. # shared=$(DLLS)
  24. rsts=math typinfo classes sysconst
  25. [require]
  26. nortl=y
  27. [install]
  28. fpcpackage=y
  29. [default]
  30. fpcdir=../..
  31. target=nativent
  32. [compiler]
  33. includedir=$(INC) $(PROCINC) $(DDKINC) $(NDKINC)
  34. sourcedir=$(INC) $(PROCINC) $(COMMON)
  35. [prerules]
  36. RTL=..
  37. INC=$(RTL)/inc
  38. COMMON=$(RTL)/common
  39. PROCINC=$(RTL)/$(CPU_TARGET)
  40. DDKINC=ddk
  41. NDKINC=ndk
  42. UNITPREFIX=rtl
  43. SYSTEMUNIT=system
  44. CPU_UNITS=
  45. ifeq ($(ARCH),i386)
  46. CPU_UNITS=cpu mmx
  47. endif
  48. ifeq ($(ARCH),x86_64)
  49. CPU_UNITS=x86 cpu
  50. endif
  51. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  52. #LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
  53. DLLS=
  54. else
  55. DLLS=fpcmemdll
  56. endif
  57. # Paths
  58. OBJPASDIR=$(RTL)/objpas
  59. # Files used by windows.pp
  60. #include $(WININC)/makefile.inc
  61. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  62. [rules]
  63. .NOTPARALLEL:
  64. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  65. # Get the system independent include file names.
  66. # This will set the following variables :
  67. # SYSINCNAMES
  68. include $(INC)/makefile.inc
  69. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  70. # Get the processor dependent include file names.
  71. # This will set the following variables :
  72. # CPUINCNAMES
  73. include $(PROCINC)/makefile.cpu
  74. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  75. # Put system unit dependencies together.
  76. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  77. #
  78. # Loaders
  79. #
  80. # none
  81. #
  82. # Unit specific rules
  83. #
  84. system$(PPUEXT) : system.pp $(SYSDEPS)
  85. $(COMPILER) -Us -Sg system.pp
  86. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  87. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  88. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  89. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  90. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  91. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  92. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -Fi$(DDKINC) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  93. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT)
  94. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas