1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 1993-2021 Free Software Foundation, Inc.
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.
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.
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/>.
18 AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects
19 ACLOCAL_AMFLAGS = -Im4 -I.. -I../config
21 srccom = $(srcdir)/common
22 srcroot = $(srcdir)/..
24 SUBDIRS = @subdirs@ $(SIM_SUBDIRS)
26 SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@
27 AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
29 # We don't set some of these vars here, but we need to define them so they may
30 # be used consistently in local.mk files we include below.
37 MOSTLYCLEANFILES = core
39 AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
41 -I$(srcroot)/include \
44 COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
45 LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
47 # Deps to add to the all-recursive target. These are built before descending
49 SIM_ALL_RECURSIVE_DEPS =
51 # Generate nltvals.def for newlib/libgloss using devo and build tree.
52 # This file is shipped with distributions so we build in the source dir.
53 # Use `make nltvals' to rebuild.
54 # Note: If gdb releases begin to contain target header files (not a good idea,
55 # but if they did ...), nltvals.def coud be generated at build time.
56 # An alternative is to slurp in the tables at runtime.
59 $(srccom)/gennltvals.py --cpp "$(CPP)"
61 pkginclude_HEADERS = \
62 $(srcroot)/include/sim/callback.h \
63 $(srcroot)/include/sim/sim.h
65 include common/local.mk
69 include testsuite/local.mk
71 if SIM_ENABLE_ARCH_bpf
74 if SIM_ENABLE_ARCH_cr16
77 if SIM_ENABLE_ARCH_cris
80 if SIM_ENABLE_ARCH_d10v
83 if SIM_ENABLE_ARCH_frv
86 if SIM_ENABLE_ARCH_iq2000
87 include iq2000/local.mk
89 if SIM_ENABLE_ARCH_lm32
92 if SIM_ENABLE_ARCH_m32c
95 if SIM_ENABLE_ARCH_m32r
98 if SIM_ENABLE_ARCH_m68hc11
99 include m68hc11/local.mk
101 if SIM_ENABLE_ARCH_mn10300
102 include mn10300/local.mk
104 if SIM_ENABLE_ARCH_or1k
105 include or1k/local.mk
107 if SIM_ENABLE_ARCH_sh
110 if SIM_ENABLE_ARCH_v850
111 include v850/local.mk
114 all-recursive: $(SIM_ALL_RECURSIVE_DEPS)