Makefile.fpc 2.7 KB

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