Makefile.fpc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #
  2. # Makefile.fpc for Free Pascal Darwin RTL
  3. #
  4. [package]
  5. main=rtl
  6. # disabled units: serial
  7. [target]
  8. loaders=
  9. units=$(SYSTEMUNIT) sysinit uuchar $(UNIXTYPEUNIT) $(CTYPESUNIT) objpas macpas $(ISO7185UNIT) extpas \
  10. $(STRINGSUNIT) $(SYSCTLUNIT) $(BASEUNIXUNIT) $(UNIXUTILUNIT) \
  11. $(UNIXUNIT) $(INITCUNIT) $(CMEMUNIT) $(DYNLIBSUNIT) $(CPU_UNITS) \
  12. $(DOSUNIT) $(DLUNIT) $(BLOCKRTLUNIT) \
  13. $(TYPINFOUNIT) $(SORTBASEUNIT) $(FGLUNIT) $(CLASSESUNIT) $(MATHUNIT) $(TYPESUNIT) \
  14. $(CHARSETUNIT) $(CPALLUNIT) $(CHARACTERUNIT) $(GETOPTSUNIT) heaptrc $(LINEINFOUNIT) $(LNFODWRFUNIT) $(LNFOGDBUNIT) \
  15. $(ERRORSUNIT) $(TERMIOUNIT) \
  16. $(SYSCONSTUNIT) $(CTHREADSUNIT) $(RTLCONSTSUNIT) $(CWSTRINGUNIT) $(BSDUNIT) $(SYSUTILSUNIT) $(FPWIDESTRINGUNIT) \
  17. fpintres fpextres $(OBJCUNIT) $(OBJCBASEUNIT) $(UNIXCPUNIT) \
  18. $(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SFPU128UNIT) $(UFLOAT128UNIT)
  19. implicitunits=$(EXEINFOUNIT) \
  20. $(CP1250UNIT) $(CP1251UNIT) $(CP1252UNIT) $(CP1253UNIT) $(CP1254UNIT) $(CP1255UNIT) $(CP1256UNIT) $(CP1257UNIT) $(CP1258UNIT) \
  21. $(CP437UNIT) $(CP646UNIT) $(CP737UNIT) $(CP775UNIT) $(CP850UNIT) $(CP852UNIT) $(CP855UNIT) $(CP856UNIT) $(CP857UNIT) $(CP860UNIT) $(CP861UNIT) $(CP862UNIT) \
  22. $(CP863UNIT) $(CP864UNIT) $(CP865UNIT) $(CP866UNIT) $(CP869UNIT) $(CP874UNIT) $(CP3021UNIT) $(CP8859_1UNIT) $(CP8859_2UNIT) $(CP8859_3UNIT) $(CP8859_4UNIT) \
  23. $(CP8859_5UNIT) $(CP8859_6UNIT) $(CP8859_7UNIT) $(CP8859_8UNIT) $(CP8859_9UNIT) $(CP8859_10UNIT) $(CP8859_11UNIT) \
  24. $(CP8859_13UNIT) $(CP8859_14UNIT) $(CP8859_15UNIT) $(CP8859_16UNIT) $(CPKOI8_RUNIT) $(CPKOI8_UUNIT) \
  25. $(UNICODEDATAUNIT)
  26. rsts=math typinfo classes sysconst rtlconsts
  27. [require]
  28. nortl=y
  29. [install]
  30. fpcpackage=y
  31. [default]
  32. fpcdir=../..
  33. target=darwin
  34. [compiler]
  35. includedir=$(INC) $(PROCINC) $(UNIXINC) $(BSDINC) $(BSDPROCINC) $(OSPROCINC)
  36. sourcedir=$(INC) $(PROCINC) $(UNIXINC) $(BSDINC) $(COMMON)
  37. [lib]
  38. libname=libfprtl.so
  39. libversion=2.0.0
  40. libunits=$(SYSTEMUNIT) $(OBJPASUNIT) $(STRINGSUNIT) \
  41. $(UNIXUNIT) \
  42. $(DOSUNIT) $(CRTUNIT) $(OBJECTSUNIT) \
  43. $(SYSUTILSUNIT) $(TYPINFOUNIT) $(MATHUNIT) \
  44. $(CPUUNIT) $(MMXUNIT) $(GETOPTSUNIT) $(HEAPTRCUNIT) \
  45. $(ERRORSUNIT)
  46. [prerules]
  47. ifeq ($(CPU_TARGET),i386)
  48. CPU_UNITS=$(MMXUNIT) $(CPUUNIT)
  49. endif
  50. ifeq ($(ARCH),x86_64)
  51. CPU_UNITS=$(CPUUNIT)
  52. endif
  53. RTL=..
  54. INC=$(RTL)/inc
  55. COMMON=$(RTL)/common
  56. PROCINC=$(RTL)/$(CPU_TARGET)
  57. BSDINC=$(RTL)/bsd
  58. BSDPROCINC=$(BSDINC)/$(CPU_TARGET)
  59. OSPROCINC=$(RTL)/darwin/$(CPU_TARGET)
  60. UNIXINC=$(RTL)/unix
  61. UNITPREFIX=rtl
  62. INITCDIR=$(UNIXINC)
  63. SYSUTILS_DEPS_OS=$(SYSCTLUNIT)$(PPUEXT) $(BASEUNIXUNIT)$(PPUEXT) $(UNIXUNIT)$(PPUEXT) $(ERRORSUNIT)$(PPUEXT) $(SYSCONSTUNIT)$(PPUEXT) $(UNIXTYPEUNIT)$(PPUEXT)
  64. BASEUNIX_DEPS_OS=$(SYSCTLUNIT)$(PPUEXT)
  65. DYNLIBS_DEPS_OS=$(DLUNIT)$(PPUEXT)
  66. CTYPES_DEPS_OS=$(UNIXTYPEUNIT)$(PPUEXT)
  67. EXEINFO_DEPS_OS=$(BASEUNIXUNIT)$(PPUEXT)
  68. FPEXTRES_DEPS_OS=$(BASEUNIXUNIT)$(PPUEXT)
  69. ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
  70. SYSTEMUNIT=system
  71. else
  72. SYSTEMUNIT="Error: Darwin is not supported for 1.0"
  73. endif
  74. # Use new feature from 1.0.5 version
  75. # that generates release PPU files
  76. # which will not be recompiled
  77. ifdef RELEASE
  78. override FPCOPT+=-Ur
  79. endif
  80. # Darwin requires libc, no syscalls
  81. override FPCOPT+=-dFPC_USE_LIBC
  82. # Paths
  83. OBJPASDIR=$(RTL)/objpas
  84. GRAPHDIR=$(INC)/graph
  85. # Use new graph unit ?
  86. # NEWGRAPH=YES
  87. # Use LibGGI ?
  88. # Use
  89. #
  90. ifndef USELIBGGI
  91. USELIBGGI=NO
  92. endif
  93. [rules]
  94. # Get the system independent include file names.
  95. # This will set the following variables :
  96. # SYSINCNAMES
  97. include $(INC)/makefile.inc
  98. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  99. # Get the processor dependent include file names.
  100. # This will set the following variables :
  101. # CPUINCNAMES
  102. include $(PROCINC)/makefile.cpu
  103. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  104. # Put system unit dependencies together.
  105. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(OSPROCINC)/sighnd.inc $(OSPROCINC)/sig_cpu.inc
  106. #
  107. # System Units (System, Objpas, Strings)
  108. #
  109. SYSINIT_DEPS=sysinit.pas $(SYSTEMUNIT)$(PPUEXT)\
  110. $(SYSINIT_DEPS_OS) $(SYSINIT_DEPS_CPU)
  111. sysinit$(PPUEXT) : $(SYSINIT_DEPS)
  112. $(COMPILER) $<