Makefile.am 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Makefile for the toplevel directory of the D Standard library.
  2. # Copyright (C) 2006-2022 Free Software Foundation, Inc.
  3. #
  4. # GCC is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 3, or (at your option)
  7. # any later version.
  8. #
  9. # GCC is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with GCC; see the file COPYING3. If not see
  16. # <http://www.gnu.org/licenses/>.
  17. if ENABLE_LIBPHOBOS
  18. SUBDIRS = libdruntime src testsuite
  19. else
  20. SUBDIRS =
  21. endif
  22. ACLOCAL_AMFLAGS = -I . -I .. -I ../config
  23. # Multilib support.
  24. MAKEOVERRIDES=
  25. # Work around what appears to be a GNU make bug handling MAKEFLAGS
  26. # values defined in terms of make variables, as is the case for CC and
  27. # friends when we are called from the top level Makefile.
  28. AM_MAKEFLAGS = \
  29. "AR_FLAGS=$(AR_FLAGS)" \
  30. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  31. "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
  32. "CCASFLAGS=$(CCASFLAGS)" \
  33. "CFLAGS=$(CFLAGS)" \
  34. "CXXFLAGS=$(CXXFLAGS)" \
  35. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  36. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  37. "GDC_FOR_TARGET=$(GDC_FOR_TARGET)" \
  38. "GDC=$(GDC)" \
  39. "GDCFLAGS=$(GDCFLAGS)" \
  40. "INSTALL=$(INSTALL)" \
  41. "INSTALL_DATA=$(INSTALL_DATA)" \
  42. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  43. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  44. "LDFLAGS=$(LDFLAGS)" \
  45. "LIBCFLAGS=$(LIBCFLAGS)" \
  46. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  47. "MAKE=$(MAKE)" \
  48. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  49. "PICFLAG=$(PICFLAG)" \
  50. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  51. "SHELL=$(SHELL)" \
  52. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  53. "exec_prefix=$(exec_prefix)" \
  54. "infodir=$(infodir)" \
  55. "libdir=$(libdir)" \
  56. "includedir=$(includedir)" \
  57. "prefix=$(prefix)" \
  58. "tooldir=$(tooldir)" \
  59. "gdc_include_dir=$(gdc_include_dir)" \
  60. "AR=$(AR)" \
  61. "AS=$(AS)" \
  62. "LD=$(LD)" \
  63. "RANLIB=$(RANLIB)" \
  64. "NM=$(NM)" \
  65. "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
  66. "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
  67. "DESTDIR=$(DESTDIR)" \
  68. "WERROR=$(WERROR)"
  69. # Subdir rules rely on $(FLAGS_TO_PASS)
  70. FLAGS_TO_PASS = $(AM_MAKEFLAGS)
  71. include $(top_srcdir)/../multilib.am