2021-01-17 19:17:36 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
#
|
|
|
|
# Copyright (C) 1993-2021 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2021-01-18 00:13:37 +08:00
|
|
|
AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects
|
2021-01-18 03:45:25 +08:00
|
|
|
ACLOCAL_AMFLAGS = -Im4 -I.. -I../config
|
2021-01-17 19:17:36 +08:00
|
|
|
|
|
|
|
srcroot = $(srcdir)/..
|
|
|
|
|
|
|
|
SUBDIRS = @subdirs@
|
|
|
|
|
2021-01-16 15:27:38 +08:00
|
|
|
SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@
|
|
|
|
AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
|
|
|
|
|
2021-02-22 12:35:46 +08:00
|
|
|
# We don't set some of these vars here, but we need to define them so they may
|
|
|
|
# be used consistently in local.mk files we include below.
|
2021-03-14 09:54:49 +08:00
|
|
|
check_PROGRAMS =
|
2021-02-22 12:35:46 +08:00
|
|
|
noinst_LIBRARIES =
|
|
|
|
EXTRA_PROGRAMS =
|
|
|
|
|
2021-03-14 09:54:49 +08:00
|
|
|
CLEANFILES =
|
|
|
|
DISTCLEANFILES =
|
2021-01-17 19:17:36 +08:00
|
|
|
MOSTLYCLEANFILES = core
|
|
|
|
|
2021-05-04 22:45:46 +08:00
|
|
|
AM_CPPFLAGS = -I$(srcroot)/include
|
|
|
|
|
2021-01-18 03:45:25 +08:00
|
|
|
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
|
|
|
|
LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
|
|
|
|
|
2021-05-14 16:39:39 +08:00
|
|
|
# Deps to add to the all-recursive target. These are built before descending
|
|
|
|
# into any subdirs.
|
|
|
|
SIM_ALL_RECURSIVE_DEPS =
|
|
|
|
|
2021-01-17 19:17:36 +08:00
|
|
|
# Generate nltvals.def for newlib/libgloss using devo and build tree.
|
|
|
|
# This file is shipped with distributions so we build in the source dir.
|
|
|
|
# Use `make nltvals' to rebuild.
|
|
|
|
# Note: If gdb releases begin to contain target header files (not a good idea,
|
|
|
|
# but if they did ...), nltvals.def coud be generated at build time.
|
|
|
|
# An alternative is to slurp in the tables at runtime.
|
|
|
|
.PHONY: nltvals
|
|
|
|
nltvals:
|
|
|
|
$(abs_srcdir)/common/gennltvals.py --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot)
|
|
|
|
$(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
|
2021-01-18 00:13:37 +08:00
|
|
|
|
2021-05-14 13:57:06 +08:00
|
|
|
pkginclude_HEADERS = \
|
|
|
|
$(srcroot)/include/sim/callback.h \
|
|
|
|
$(srcroot)/include/sim/sim.h
|
|
|
|
|
2021-05-14 16:39:39 +08:00
|
|
|
include common/local.mk
|
2021-02-22 12:35:46 +08:00
|
|
|
if SIM_ENABLE_IGEN
|
|
|
|
include igen/local.mk
|
|
|
|
endif
|
2021-01-18 00:13:37 +08:00
|
|
|
include testsuite/local.mk
|
2021-05-14 16:39:39 +08:00
|
|
|
|
|
|
|
all-recursive: $(SIM_ALL_RECURSIVE_DEPS)
|