Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ## Process this file with automake to generate Makefile.in
  2. ##
  3. # Copyright (C) 1993-2022 Free Software Foundation, Inc.
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects
  18. ACLOCAL_AMFLAGS = -Im4 -I.. -I../config
  19. srccom = $(srcdir)/common
  20. srcroot = $(srcdir)/..
  21. SUBDIRS = @subdirs@ $(SIM_SUBDIRS)
  22. SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@
  23. AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
  24. ## We don't set some of these vars here, but we need to define them so they may
  25. ## be used consistently in local.mk files we include below.
  26. pkginclude_HEADERS =
  27. check_PROGRAMS =
  28. noinst_LIBRARIES =
  29. EXTRA_PROGRAMS =
  30. CLEANFILES =
  31. DISTCLEANFILES =
  32. MOSTLYCLEANFILES = core
  33. AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
  34. AM_CPPFLAGS = \
  35. -I$(srcroot)/include \
  36. $(SIM_INLINE)
  37. COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
  38. LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
  39. ## Deps to add to the all-recursive target. These are built before descending
  40. ## into any subdirs.
  41. SIM_ALL_RECURSIVE_DEPS =
  42. # Generate target constants for newlib/libgloss from its source tree.
  43. # This file is shipped with distributions so we build in the source dir.
  44. # Use `make nltvals' to rebuild.
  45. .PHONY: nltvals
  46. nltvals:
  47. $(srccom)/gennltvals.py --cpp "$(CPP)"
  48. if ENABLE_SIM
  49. pkginclude_HEADERS += \
  50. $(srcroot)/include/sim/callback.h \
  51. $(srcroot)/include/sim/sim.h
  52. endif
  53. include common/local.mk
  54. if SIM_ENABLE_IGEN
  55. include igen/local.mk
  56. endif
  57. include testsuite/local.mk
  58. if SIM_ENABLE_ARCH_arm
  59. include arm/local.mk
  60. endif
  61. if SIM_ENABLE_ARCH_bpf
  62. include bpf/local.mk
  63. endif
  64. if SIM_ENABLE_ARCH_cr16
  65. include cr16/local.mk
  66. endif
  67. if SIM_ENABLE_ARCH_cris
  68. include cris/local.mk
  69. endif
  70. if SIM_ENABLE_ARCH_d10v
  71. include d10v/local.mk
  72. endif
  73. if SIM_ENABLE_ARCH_erc32
  74. include erc32/local.mk
  75. endif
  76. if SIM_ENABLE_ARCH_frv
  77. include frv/local.mk
  78. endif
  79. if SIM_ENABLE_ARCH_iq2000
  80. include iq2000/local.mk
  81. endif
  82. if SIM_ENABLE_ARCH_lm32
  83. include lm32/local.mk
  84. endif
  85. if SIM_ENABLE_ARCH_m32c
  86. include m32c/local.mk
  87. endif
  88. if SIM_ENABLE_ARCH_m32r
  89. include m32r/local.mk
  90. endif
  91. if SIM_ENABLE_ARCH_m68hc11
  92. include m68hc11/local.mk
  93. endif
  94. if SIM_ENABLE_ARCH_mn10300
  95. include mn10300/local.mk
  96. endif
  97. if SIM_ENABLE_ARCH_moxie
  98. include moxie/local.mk
  99. endif
  100. if SIM_ENABLE_ARCH_or1k
  101. include or1k/local.mk
  102. endif
  103. if SIM_ENABLE_ARCH_ppc
  104. include ppc/local.mk
  105. endif
  106. if SIM_ENABLE_ARCH_rx
  107. include rx/local.mk
  108. endif
  109. if SIM_ENABLE_ARCH_sh
  110. include sh/local.mk
  111. endif
  112. if SIM_ENABLE_ARCH_v850
  113. include v850/local.mk
  114. endif
  115. all-recursive: $(SIM_ALL_RECURSIVE_DEPS)