2
0

Makefile.fpc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 ucomplex getopts \
  19. # sockets printer \
  20. # video mouse keyboard
  21. fmtbcd #\
  22. # sharemem exeinfo fpintres
  23. # shared=$(DLLS)
  24. rsts=math varutils typinfo variants classes dateutils 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=x86 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