+2021-06-18 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Output arch-subdir.mk.
+ * Makefile.in, configure: Regenerate.
+ * arch-subdir.mk.in: New file.
+
2021-06-17 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Call SIM_AC_OPTION_ENDIAN.
configure.lineno config.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_FILES = arch-subdir.mk
CONFIG_CLEAN_VPATH_FILES =
LIBRARIES = $(noinst_LIBRARIES)
ARFLAGS = cru
distclean-hdr:
-rm -f config.h stamp-h1
+arch-subdir.mk: $(top_builddir)/config.status $(srcdir)/arch-subdir.mk.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
clean-noinstLIBRARIES:
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
--- /dev/null
+## Fragment to pass common settings into arch subdir builds.
+## NB: This should eventually be merged into sim/Makefile.am once there are no
+## subdir configure scripts.
+#
+# 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-06-18 Mike Frysinger <vapier@gentoo.org>
+
+ * Make-common.in: Include ../arch-subdir.mk.
+
2021-06-18 Mike Frysinger <vapier@gentoo.org>
* cgen-run.c: Include sim-signal.h.
GNULIB_PARENT_DIR = ../..
include $(GNULIB_PARENT_DIR)/gnulib/Makefile.gnulib.inc
+# Settings from top-level configure.
+include ../arch-subdir.mk
+
prefix = @prefix@
exec_prefix = @exec_prefix@
$as_echo "$sim_trace" >&6; }
-ac_config_files="$ac_config_files Makefile"
+ac_config_files="$ac_config_files arch-subdir.mk Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
case $ac_config_target in
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
SIM_AC_OPTION_STDIO
SIM_AC_OPTION_TRACE
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([arch-subdir.mk Makefile])
AC_OUTPUT
+2021-06-18 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in: Include ../arch-subdir.mk.
+
2021-06-18 Mike Frysinger <vapier@gentoo.org>
* sim-main.h: Delete sim-signal.h include.
srcroot = $(srcdir)/../..
srcsim = $(srcdir)/..
+# Settings from top-level configure.
+include ../arch-subdir.mk
+
prefix = @prefix@
exec_prefix = @exec_prefix@