]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/Makefile.am
Automatic Copyright Year update after running gdb/copyright.py
[thirdparty/binutils-gdb.git] / sim / Makefile.am
CommitLineData
6bddc3e8 1## Process this file with automake to generate Makefile.in
de8a2781 2##
4a94e368 3# Copyright (C) 1993-2022 Free Software Foundation, Inc.
6bddc3e8
MF
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
6c57b87f 18AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects
c2783492 19ACLOCAL_AMFLAGS = -Im4 -I.. -I../config
6bddc3e8 20
0a129eb1 21srccom = $(srcdir)/common
6bddc3e8
MF
22srcroot = $(srcdir)/..
23
36bb57e4 24SUBDIRS = @subdirs@ $(SIM_SUBDIRS)
6bddc3e8 25
a0e674c1
MF
26SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@
27AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
28
de8a2781
MF
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.
fb2c495f 31pkginclude_HEADERS =
a389375f 32check_PROGRAMS =
b6b1c790
MF
33noinst_LIBRARIES =
34EXTRA_PROGRAMS =
35
a389375f
MF
36CLEANFILES =
37DISTCLEANFILES =
6bddc3e8
MF
38MOSTLYCLEANFILES = core
39
47ce766a 40AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
d73f39ee
MF
41AM_CPPFLAGS = \
42 -I$(srcroot)/include \
43 $(SIM_INLINE)
a0c4531a 44
c2783492
MF
45COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
46LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
47
de8a2781
MF
48## Deps to add to the all-recursive target. These are built before descending
49## into any subdirs.
5bea0c32
MF
50SIM_ALL_RECURSIVE_DEPS =
51
64ae70dd 52# Generate target constants for newlib/libgloss from its source tree.
6bddc3e8
MF
53# This file is shipped with distributions so we build in the source dir.
54# Use `make nltvals' to rebuild.
6bddc3e8
MF
55.PHONY: nltvals
56nltvals:
0a129eb1 57 $(srccom)/gennltvals.py --cpp "$(CPP)"
6c57b87f 58
fb2c495f
MF
59if ENABLE_SIM
60pkginclude_HEADERS += \
92bc001e
MF
61 $(srcroot)/include/sim/callback.h \
62 $(srcroot)/include/sim/sim.h
fb2c495f 63endif
92bc001e 64
5bea0c32 65include common/local.mk
b6b1c790
MF
66if SIM_ENABLE_IGEN
67include igen/local.mk
68endif
6c57b87f 69include testsuite/local.mk
5bea0c32 70
ed939535
MF
71if SIM_ENABLE_ARCH_arm
72include arm/local.mk
73endif
0a129eb1
MF
74if SIM_ENABLE_ARCH_bpf
75include bpf/local.mk
76endif
70ab6bdd
MF
77if SIM_ENABLE_ARCH_cr16
78include cr16/local.mk
79endif
0a129eb1
MF
80if SIM_ENABLE_ARCH_cris
81include cris/local.mk
82endif
70ab6bdd
MF
83if SIM_ENABLE_ARCH_d10v
84include d10v/local.mk
85endif
ed939535
MF
86if SIM_ENABLE_ARCH_erc32
87include erc32/local.mk
88endif
0a129eb1
MF
89if SIM_ENABLE_ARCH_frv
90include frv/local.mk
91endif
92if SIM_ENABLE_ARCH_iq2000
93include iq2000/local.mk
94endif
95if SIM_ENABLE_ARCH_lm32
96include lm32/local.mk
97endif
70ab6bdd
MF
98if SIM_ENABLE_ARCH_m32c
99include m32c/local.mk
100endif
0a129eb1
MF
101if SIM_ENABLE_ARCH_m32r
102include m32r/local.mk
103endif
70ab6bdd
MF
104if SIM_ENABLE_ARCH_m68hc11
105include m68hc11/local.mk
106endif
d2a5dbc7
MF
107if SIM_ENABLE_ARCH_mn10300
108include mn10300/local.mk
109endif
94f5dfed
MF
110if SIM_ENABLE_ARCH_moxie
111include moxie/local.mk
112endif
0a129eb1
MF
113if SIM_ENABLE_ARCH_or1k
114include or1k/local.mk
115endif
ed939535
MF
116if SIM_ENABLE_ARCH_ppc
117include ppc/local.mk
118endif
119if SIM_ENABLE_ARCH_rx
120include rx/local.mk
121endif
70ab6bdd
MF
122if SIM_ENABLE_ARCH_sh
123include sh/local.mk
124endif
d2a5dbc7
MF
125if SIM_ENABLE_ARCH_v850
126include v850/local.mk
127endif
70ab6bdd 128
5bea0c32 129all-recursive: $(SIM_ALL_RECURSIVE_DEPS)