Makefile.fpc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. softfpu sfpux80 ufloatx80 sfpu128 ufloat128 \
  19. # sockets printer \
  20. # keyboard
  21. # sharemem exeinfo fpintres \
  22. cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
  23. cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 \
  24. cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 \
  25. cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 \
  26. cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
  27. # shared=$(DLLS)
  28. rsts=math typinfo classes sysconst
  29. [require]
  30. nortl=y
  31. [install]
  32. fpcpackage=y
  33. [default]
  34. fpcdir=../..
  35. target=nativent
  36. [compiler]
  37. includedir=$(INC) $(PROCINC) $(DDKINC) $(NDKINC)
  38. sourcedir=$(INC) $(PROCINC) $(COMMON)
  39. [prerules]
  40. RTL=..
  41. INC=$(RTL)/inc
  42. COMMON=$(RTL)/common
  43. PROCINC=$(RTL)/$(CPU_TARGET)
  44. DDKINC=ddk
  45. NDKINC=ndk
  46. UNITPREFIX=rtl
  47. SYSTEMUNIT=system
  48. CPU_UNITS=
  49. ifeq ($(ARCH),i386)
  50. CPU_UNITS=cpu mmx
  51. endif
  52. ifeq ($(ARCH),x86_64)
  53. CPU_UNITS=x86 cpu
  54. endif
  55. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  56. #LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
  57. DLLS=
  58. else
  59. DLLS=fpcmemdll
  60. endif
  61. # Paths
  62. OBJPASDIR=$(RTL)/objpas
  63. # Files used by windows.pp
  64. #include $(WININC)/makefile.inc
  65. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  66. [rules]
  67. .NOTPARALLEL:
  68. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  69. # Get the system independent include file names.
  70. # This will set the following variables :
  71. # SYSINCNAMES
  72. include $(INC)/makefile.inc
  73. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  74. # Get the processor dependent include file names.
  75. # This will set the following variables :
  76. # CPUINCNAMES
  77. include $(PROCINC)/makefile.cpu
  78. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  79. # Put system unit dependencies together.
  80. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  81. #
  82. # Loaders
  83. #
  84. # none
  85. #
  86. # Unit specific rules
  87. #
  88. system$(PPUEXT) : system.pp $(SYSDEPS)
  89. $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg system.pp
  90. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  91. $(COMPILER) $(INC)/uuchar.pp
  92. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  93. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  94. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  95. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  96. iso7185$(PPUEXT) : $(INC)/iso7185.pp $(SYSTEMUNIT)$(PPUEXT)
  97. $(COMPILER) $(INC)/iso7185.pp
  98. extpas$(PPUEXT) : $(INC)/extpas.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  99. $(COMPILER) $(INC)/extpas.pp
  100. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  101. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -Fi$(DDKINC) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
  102. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) objpas$(PPUEXT)
  103. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas