Makefile.fpc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 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. CPU_UNITS=
  44. ifeq ($(ARCH),i386)
  45. CPU_UNITS=cpu mmx
  46. endif
  47. ifeq ($(ARCH),x86_64)
  48. CPU_UNITS=x86 cpu
  49. endif
  50. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  51. #LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
  52. DLLS=
  53. else
  54. DLLS=fpcmemdll
  55. endif
  56. # Paths
  57. OBJPASDIR=$(RTL)/objpas
  58. # Files used by windows.pp
  59. #include $(WININC)/makefile.inc
  60. WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
  61. [rules]
  62. .NOTPARALLEL:
  63. SYSTEMPPU=$(addsuffix $(PPUEXT),system)
  64. # Get the system independent include file names.
  65. # This will set the following variables :
  66. # SYSINCNAMES
  67. include $(INC)/makefile.inc
  68. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  69. # Get the processor dependent include file names.
  70. # This will set the following variables :
  71. # CPUINCNAMES
  72. include $(PROCINC)/makefile.cpu
  73. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  74. # Put system unit dependencies together.
  75. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  76. #
  77. # Loaders
  78. #
  79. # none
  80. #
  81. # Unit specific rules
  82. #
  83. system$(PPUEXT) : system.pp $(SYSDEPS)
  84. $(COMPILER) -Us -Sg system.pp
  85. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
  86. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
  87. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
  88. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  89. buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
  90. $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -Fi$(DDKINC) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl