Makefile.fpc 2.4 KB

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