* [PATCH 1/2] sim: avoid installing headers when there is no sim
@ 2021-11-19 0:45 Mike Frysinger
2021-11-19 0:45 ` [PATCH 2/2] sim: install various doc files Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2021-11-19 0:45 UTC (permalink / raw)
To: gdb-patches
If we aren't building any sims, don't install the sim headers as they
won't be useful to anyone.
---
sim/Makefile.am | 5 ++-
sim/Makefile.in | 96 +++++++++++++++++++++++++-----------------------
sim/configure | 18 ++++++++-
sim/configure.ac | 1 +
4 files changed, 72 insertions(+), 48 deletions(-)
diff --git a/sim/Makefile.am b/sim/Makefile.am
index fd4b76877434..4831fbc6d1e1 100644
--- a/sim/Makefile.am
+++ b/sim/Makefile.am
@@ -28,6 +28,7 @@ AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
# 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.
+pkginclude_HEADERS =
check_PROGRAMS =
noinst_LIBRARIES =
EXTRA_PROGRAMS =
@@ -58,9 +59,11 @@ SIM_ALL_RECURSIVE_DEPS =
nltvals:
$(srccom)/gennltvals.py --cpp "$(CPP)"
-pkginclude_HEADERS = \
+if ENABLE_SIM
+pkginclude_HEADERS += \
$(srcroot)/include/sim/callback.h \
$(srcroot)/include/sim/sim.h
+endif
include common/local.mk
if SIM_ENABLE_IGEN
diff --git a/sim/Makefile.in b/sim/Makefile.in
index d33720b6bb8a..0ea9d746c88a 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -432,13 +432,17 @@ EXTRA_PROGRAMS = $(am__EXEEXT_2) testsuite/common/bits-gen$(EXEEXT) \
testsuite/common/fpu-tst$(EXEEXT) $(am__EXEEXT_3) \
$(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
$(am__EXEEXT_7)
+@ENABLE_SIM_TRUE@am__append_1 = \
+@ENABLE_SIM_TRUE@ $(srcroot)/include/sim/callback.h \
+@ENABLE_SIM_TRUE@ $(srcroot)/include/sim/sim.h
+
# This makes sure igen is available before building the arch-subdirs which
# need to run the igen tool.
-@SIM_ENABLE_IGEN_TRUE@am__append_1 = $(IGEN)
-@SIM_ENABLE_IGEN_TRUE@am__append_2 = igen/libigen.a
-@SIM_ENABLE_IGEN_TRUE@am__append_3 = $(igen_IGEN_TOOLS)
+@SIM_ENABLE_IGEN_TRUE@am__append_2 = $(IGEN)
+@SIM_ENABLE_IGEN_TRUE@am__append_3 = igen/libigen.a
@SIM_ENABLE_IGEN_TRUE@am__append_4 = $(igen_IGEN_TOOLS)
+@SIM_ENABLE_IGEN_TRUE@am__append_5 = $(igen_IGEN_TOOLS)
TESTS = testsuite/common/bits32m0$(EXEEXT) \
testsuite/common/bits32m31$(EXEEXT) \
testsuite/common/bits64m0$(EXEEXT) \
@@ -446,69 +450,69 @@ TESTS = testsuite/common/bits32m0$(EXEEXT) \
testsuite/common/alu-tst$(EXEEXT)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_bpf_TRUE@am__append_5 = $(bpf_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_bpf_TRUE@am__append_6 = $(bpf_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_bpf_TRUE@am__append_7 = $(bpf_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_cr16_TRUE@am__append_7 = $(cr16_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_cr16_TRUE@am__append_8 = cr16/gencode
-@SIM_ENABLE_ARCH_cr16_TRUE@am__append_9 = $(cr16_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_cr16_TRUE@am__append_8 = $(cr16_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_cr16_TRUE@am__append_9 = cr16/gencode
+@SIM_ENABLE_ARCH_cr16_TRUE@am__append_10 = $(cr16_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_cris_TRUE@am__append_10 = $(cris_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_cris_TRUE@am__append_11 = $(cris_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_cris_TRUE@am__append_12 = $(cris_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_d10v_TRUE@am__append_12 = $(d10v_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_d10v_TRUE@am__append_13 = d10v/gencode
-@SIM_ENABLE_ARCH_d10v_TRUE@am__append_14 = $(d10v_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_d10v_TRUE@am__append_13 = $(d10v_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_d10v_TRUE@am__append_14 = d10v/gencode
+@SIM_ENABLE_ARCH_d10v_TRUE@am__append_15 = $(d10v_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_frv_TRUE@am__append_15 = $(frv_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_frv_TRUE@am__append_16 = $(frv_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_frv_TRUE@am__append_17 = $(frv_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_iq2000_TRUE@am__append_17 = $(iq2000_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_iq2000_TRUE@am__append_18 = $(iq2000_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_iq2000_TRUE@am__append_19 = $(iq2000_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_lm32_TRUE@am__append_19 = $(lm32_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_lm32_TRUE@am__append_20 = $(lm32_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_lm32_TRUE@am__append_21 = $(lm32_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_m32c_TRUE@am__append_21 = $(m32c_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_m32c_TRUE@am__append_22 = m32c/opc2c
-@SIM_ENABLE_ARCH_m32c_TRUE@am__append_23 = \
+@SIM_ENABLE_ARCH_m32c_TRUE@am__append_22 = $(m32c_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_m32c_TRUE@am__append_23 = m32c/opc2c
+@SIM_ENABLE_ARCH_m32c_TRUE@am__append_24 = \
@SIM_ENABLE_ARCH_m32c_TRUE@ $(m32c_BUILD_OUTPUTS) \
@SIM_ENABLE_ARCH_m32c_TRUE@ m32c/m32c.c.log \
@SIM_ENABLE_ARCH_m32c_TRUE@ m32c/r8c.c.log
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_m32r_TRUE@am__append_24 = $(m32r_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_m32r_TRUE@am__append_25 = $(m32r_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_m32r_TRUE@am__append_26 = $(m32r_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_m68hc11_TRUE@am__append_26 = $(m68hc11_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_m68hc11_TRUE@am__append_27 = m68hc11/gencode
-@SIM_ENABLE_ARCH_m68hc11_TRUE@am__append_28 = $(m68hc11_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_m68hc11_TRUE@am__append_27 = $(m68hc11_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_m68hc11_TRUE@am__append_28 = m68hc11/gencode
+@SIM_ENABLE_ARCH_m68hc11_TRUE@am__append_29 = $(m68hc11_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_mn10300_TRUE@am__append_29 = $(mn10300_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_mn10300_TRUE@am__append_30 = $(mn10300_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_mn10300_TRUE@am__append_31 = $(mn10300_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_or1k_TRUE@am__append_31 = $(or1k_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_or1k_TRUE@am__append_32 = $(or1k_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_or1k_TRUE@am__append_33 = $(or1k_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_33 = $(sh_BUILD_OUTPUTS)
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_34 = sh/gencode
-@SIM_ENABLE_ARCH_sh_TRUE@am__append_35 = $(sh_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_34 = $(sh_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_35 = sh/gencode
+@SIM_ENABLE_ARCH_sh_TRUE@am__append_36 = $(sh_BUILD_OUTPUTS)
# This makes sure build tools are available before building the arch-subdirs.
-@SIM_ENABLE_ARCH_v850_TRUE@am__append_36 = $(v850_BUILD_OUTPUTS)
@SIM_ENABLE_ARCH_v850_TRUE@am__append_37 = $(v850_BUILD_OUTPUTS)
+@SIM_ENABLE_ARCH_v850_TRUE@am__append_38 = $(v850_BUILD_OUTPUTS)
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
@@ -542,7 +546,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
- $(am__configure_deps) $(pkginclude_HEADERS)
+ $(am__configure_deps) $(am__pkginclude_HEADERS_DIST)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
@@ -747,6 +751,8 @@ am__can_run_installinfo = \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
+am__pkginclude_HEADERS_DIST = $(srcroot)/include/sim/callback.h \
+ $(srcroot)/include/sim/sim.h
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
@@ -1159,20 +1165,24 @@ srcroot = $(srcdir)/..
SUBDIRS = @subdirs@ $(SIM_SUBDIRS)
AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
+# 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.
+pkginclude_HEADERS = $(am__append_1)
+
# NB: libcommon.a isn't used directly by ports. We need a target for common
# objects to be a part of, and ports use the individual objects directly.
-noinst_LIBRARIES = common/libcommon.a $(am__append_2)
+noinst_LIBRARIES = common/libcommon.a $(am__append_3)
CLEANFILES = common/version.c common/version.c-stamp \
testsuite/common/bits-gen testsuite/common/bits32m0.c \
testsuite/common/bits32m31.c testsuite/common/bits64m0.c \
testsuite/common/bits64m63.c
DISTCLEANFILES =
-MOSTLYCLEANFILES = core $(am__append_4) site-srcdir.exp testrun.log \
- testrun.sum $(am__append_6) $(am__append_9) $(am__append_11) \
- $(am__append_14) $(am__append_16) $(am__append_18) \
- $(am__append_20) $(am__append_23) $(am__append_25) \
- $(am__append_28) $(am__append_30) $(am__append_32) \
- $(am__append_35) $(am__append_37)
+MOSTLYCLEANFILES = core $(am__append_5) site-srcdir.exp testrun.log \
+ testrun.sum $(am__append_7) $(am__append_10) $(am__append_12) \
+ $(am__append_15) $(am__append_17) $(am__append_19) \
+ $(am__append_21) $(am__append_24) $(am__append_26) \
+ $(am__append_29) $(am__append_31) $(am__append_33) \
+ $(am__append_36) $(am__append_38)
AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
AM_CPPFLAGS = -I$(srcroot)/include $(SIM_INLINE) -I$(srcdir)/common
COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
@@ -1183,16 +1193,12 @@ LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
# This makes sure common parts are available before building the arch-subdirs
# which will refer to these.
-SIM_ALL_RECURSIVE_DEPS = common/libcommon.a $(am__append_1) \
- $(am__append_5) $(am__append_7) $(am__append_10) \
- $(am__append_12) $(am__append_15) $(am__append_17) \
- $(am__append_19) $(am__append_21) $(am__append_24) \
- $(am__append_26) $(am__append_29) $(am__append_31) \
- $(am__append_33) $(am__append_36)
-pkginclude_HEADERS = \
- $(srcroot)/include/sim/callback.h \
- $(srcroot)/include/sim/sim.h
-
+SIM_ALL_RECURSIVE_DEPS = common/libcommon.a $(am__append_2) \
+ $(am__append_6) $(am__append_8) $(am__append_11) \
+ $(am__append_13) $(am__append_16) $(am__append_18) \
+ $(am__append_20) $(am__append_22) $(am__append_25) \
+ $(am__append_27) $(am__append_30) $(am__append_32) \
+ $(am__append_34) $(am__append_37)
common_libcommon_a_CPPFLAGS = \
$(AM_CPPFLAGS) \
-DSIM_COMMON_BUILD \
diff --git a/sim/configure b/sim/configure
index 3cd19e0648ae..4589362d36cd 100755
--- a/sim/configure
+++ b/sim/configure
@@ -650,6 +650,8 @@ SIM_ENABLE_HW_TRUE
cgen
cgendir
CGEN_MAINT
+ENABLE_SIM_FALSE
+ENABLE_SIM_TRUE
SIM_ENABLE_IGEN_FALSE
SIM_ENABLE_IGEN_TRUE
SIM_ENABLE_ARCH_v850_FALSE
@@ -12245,7 +12247,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12248 "configure"
+#line 12250 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12351,7 +12353,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12354 "configure"
+#line 12356 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -14860,6 +14862,14 @@ else
SIM_ENABLE_IGEN_FALSE=
fi
+ if test -n "$SIM_SUBDIRS"; then
+ ENABLE_SIM_TRUE=
+ ENABLE_SIM_FALSE='#'
+else
+ ENABLE_SIM_TRUE='#'
+ ENABLE_SIM_FALSE=
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
$as_echo_n "checking whether to force sim alignment... " >&6; }
@@ -15621,6 +15631,10 @@ if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
+ as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
diff --git a/sim/configure.ac b/sim/configure.ac
index 00d1e8d4b91d..86a800b6d6b1 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -155,6 +155,7 @@ if test "${enable_sim}" != no; then
fi
fi
AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
+AM_CONDITIONAL([ENABLE_SIM], [test -n "$SIM_SUBDIRS"])
dnl Standard (and optional) simulator options.
dnl Eventually all simulators will support these.
--
2.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] sim: install various doc files
2021-11-19 0:45 [PATCH 1/2] sim: avoid installing headers when there is no sim Mike Frysinger
@ 2021-11-19 0:45 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2021-11-19 0:45 UTC (permalink / raw)
To: gdb-patches
---
sim/Makefile.am | 12 +++
sim/Makefile.in | 250 ++++++++++++++++++++++++++++++++++++++++++---
sim/arm/local.mk | 19 ++++
sim/erc32/local.mk | 19 ++++
sim/frv/local.mk | 3 +
sim/or1k/local.mk | 3 +
sim/ppc/local.mk | 19 ++++
sim/rx/local.mk | 19 ++++
8 files changed, 330 insertions(+), 14 deletions(-)
create mode 100644 sim/arm/local.mk
create mode 100644 sim/erc32/local.mk
create mode 100644 sim/ppc/local.mk
create mode 100644 sim/rx/local.mk
diff --git a/sim/Makefile.am b/sim/Makefile.am
index 4831fbc6d1e1..909bec00553f 100644
--- a/sim/Makefile.am
+++ b/sim/Makefile.am
@@ -71,6 +71,9 @@ include igen/local.mk
endif
include testsuite/local.mk
+if SIM_ENABLE_ARCH_arm
+include arm/local.mk
+endif
if SIM_ENABLE_ARCH_bpf
include bpf/local.mk
endif
@@ -83,6 +86,9 @@ endif
if SIM_ENABLE_ARCH_d10v
include d10v/local.mk
endif
+if SIM_ENABLE_ARCH_erc32
+include erc32/local.mk
+endif
if SIM_ENABLE_ARCH_frv
include frv/local.mk
endif
@@ -107,6 +113,12 @@ endif
if SIM_ENABLE_ARCH_or1k
include or1k/local.mk
endif
+if SIM_ENABLE_ARCH_ppc
+include ppc/local.mk
+endif
+if SIM_ENABLE_ARCH_rx
+include rx/local.mk
+endif
if SIM_ENABLE_ARCH_sh
include sh/local.mk
endif
diff --git a/sim/Makefile.in b/sim/Makefile.in
index 0ea9d746c88a..35f807b84df6 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -101,6 +101,23 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# See sim/Makefile.am
+#
+# Copyright (C) 1995-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/>.
+
# See sim/Makefile.am
#
# Copyright (C) 2020-2021 Free Software Foundation, Inc.
@@ -172,6 +189,23 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# See sim/Makefile.am
+#
+# 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/>.
+
# See sim/Makefile.am
#
# Copyright (C) 1998-2021 Free Software Foundation, Inc.
@@ -315,6 +349,40 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# See sim/Makefile.am
+#
+# Copyright (C) 1994-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/>.
+
+# See sim/Makefile.am
+#
+# Copyright (C) 2008-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/>.
+
# See sim/Makefile.am
#
# Copyright (C) 1990-2021 Free Software Foundation, Inc.
@@ -352,6 +420,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
@@ -751,8 +820,6 @@ am__can_run_installinfo = \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
-am__pkginclude_HEADERS_DIST = $(srcroot)/include/sim/callback.h \
- $(srcroot)/include/sim/sim.h
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
@@ -780,7 +847,14 @@ am__uninstall_files_from_dir = { \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
-am__installdirs = "$(DESTDIR)$(pkgincludedir)"
+am__installdirs = "$(DESTDIR)$(armdocdir)" "$(DESTDIR)$(erc32docdir)" \
+ "$(DESTDIR)$(frvdocdir)" "$(DESTDIR)$(or1kdocdir)" \
+ "$(DESTDIR)$(ppcdocdir)" "$(DESTDIR)$(rxdocdir)" \
+ "$(DESTDIR)$(pkgincludedir)"
+DATA = $(armdoc_DATA) $(erc32doc_DATA) $(frvdoc_DATA) $(or1kdoc_DATA) \
+ $(ppcdoc_DATA) $(rxdoc_DATA)
+am__pkginclude_HEADERS_DIST = $(srcroot)/include/sim/callback.h \
+ $(srcroot)/include/sim/sim.h
HEADERS = $(pkginclude_HEADERS)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
@@ -1274,6 +1348,8 @@ testsuite_common_CPPFLAGS = \
-I$(srcroot)/include \
-I../bfd
+@SIM_ENABLE_ARCH_arm_TRUE@armdocdir = $(docdir)/arm
+@SIM_ENABLE_ARCH_arm_TRUE@armdoc_DATA = arm/README
@SIM_ENABLE_ARCH_bpf_TRUE@bpf_BUILD_OUTPUTS = \
@SIM_ENABLE_ARCH_bpf_TRUE@ bpf/eng-le.h \
@SIM_ENABLE_ARCH_bpf_TRUE@ bpf/mloop-le.c \
@@ -1304,6 +1380,10 @@ testsuite_common_CPPFLAGS = \
@SIM_ENABLE_ARCH_d10v_TRUE@d10v_gencode_SOURCES = d10v/gencode.c
@SIM_ENABLE_ARCH_d10v_TRUE@d10v_gencode_LDADD = d10v/d10v-opc.o
+@SIM_ENABLE_ARCH_erc32_TRUE@erc32docdir = $(docdir)/erc32
+@SIM_ENABLE_ARCH_erc32_TRUE@erc32doc_DATA = erc32/README.erc32 erc32/README.gdb erc32/README.sis
+@SIM_ENABLE_ARCH_frv_TRUE@frvdocdir = $(docdir)/frv
+@SIM_ENABLE_ARCH_frv_TRUE@frvdoc_DATA = frv/README
@SIM_ENABLE_ARCH_frv_TRUE@frv_BUILD_OUTPUTS = \
@SIM_ENABLE_ARCH_frv_TRUE@ frv/eng.h \
@SIM_ENABLE_ARCH_frv_TRUE@ frv/mloop.c \
@@ -1371,11 +1451,17 @@ testsuite_common_CPPFLAGS = \
@SIM_ENABLE_ARCH_mn10300_TRUE@mn10300_IGEN_INSN = $(srcdir)/mn10300/mn10300.igen
@SIM_ENABLE_ARCH_mn10300_TRUE@mn10300_IGEN_INSN_INC = mn10300/am33.igen mn10300/am33-2.igen
@SIM_ENABLE_ARCH_mn10300_TRUE@mn10300_IGEN_DC = $(srcdir)/mn10300/mn10300.dc
+@SIM_ENABLE_ARCH_or1k_TRUE@or1kdocdir = $(docdir)/or1k
+@SIM_ENABLE_ARCH_or1k_TRUE@or1kdoc_DATA = or1k/README
@SIM_ENABLE_ARCH_or1k_TRUE@or1k_BUILD_OUTPUTS = \
@SIM_ENABLE_ARCH_or1k_TRUE@ or1k/eng.h \
@SIM_ENABLE_ARCH_or1k_TRUE@ or1k/mloop.c \
@SIM_ENABLE_ARCH_or1k_TRUE@ or1k/stamp-mloop
+@SIM_ENABLE_ARCH_ppc_TRUE@ppcdocdir = $(docdir)/ppc
+@SIM_ENABLE_ARCH_ppc_TRUE@ppcdoc_DATA = ppc/BUGS ppc/INSTALL ppc/README ppc/RUN
+@SIM_ENABLE_ARCH_rx_TRUE@rxdocdir = $(docdir)/rx
+@SIM_ENABLE_ARCH_rx_TRUE@rxdoc_DATA = rx/README.txt
@SIM_ENABLE_ARCH_sh_TRUE@sh_BUILD_OUTPUTS = \
@SIM_ENABLE_ARCH_sh_TRUE@ sh/gencode$(EXEEXT) \
@SIM_ENABLE_ARCH_sh_TRUE@ sh/code.c \
@@ -1414,7 +1500,7 @@ all: config.h
.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
am--refresh: Makefile
@:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/common/local.mk $(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/common/local.mk $(srcdir)/bpf/local.mk $(srcdir)/cr16/local.mk $(srcdir)/cris/local.mk $(srcdir)/d10v/local.mk $(srcdir)/frv/local.mk $(srcdir)/iq2000/local.mk $(srcdir)/lm32/local.mk $(srcdir)/m32c/local.mk $(srcdir)/m32r/local.mk $(srcdir)/m68hc11/local.mk $(srcdir)/mn10300/local.mk $(srcdir)/or1k/local.mk $(srcdir)/sh/local.mk $(srcdir)/v850/local.mk $(am__configure_deps)
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/common/local.mk $(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/common/local.mk $(srcdir)/arm/local.mk $(srcdir)/bpf/local.mk $(srcdir)/cr16/local.mk $(srcdir)/cris/local.mk $(srcdir)/d10v/local.mk $(srcdir)/erc32/local.mk $(srcdir)/frv/local.mk $(srcdir)/iq2000/local.mk $(srcdir)/lm32/local.mk $(srcdir)/m32c/local.mk $(srcdir)/m32r/local.mk $(srcdir)/m68hc11/local.mk $(srcdir)/mn10300/local.mk $(srcdir)/or1k/local.mk $(srcdir)/ppc/local.mk $(srcdir)/rx/local.mk $(srcdir)/sh/local.mk $(srcdir)/v850/local.mk $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
@@ -1436,7 +1522,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
-$(srcdir)/common/local.mk $(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/common/local.mk $(srcdir)/bpf/local.mk $(srcdir)/cr16/local.mk $(srcdir)/cris/local.mk $(srcdir)/d10v/local.mk $(srcdir)/frv/local.mk $(srcdir)/iq2000/local.mk $(srcdir)/lm32/local.mk $(srcdir)/m32c/local.mk $(srcdir)/m32r/local.mk $(srcdir)/m68hc11/local.mk $(srcdir)/mn10300/local.mk $(srcdir)/or1k/local.mk $(srcdir)/sh/local.mk $(srcdir)/v850/local.mk $(am__empty):
+$(srcdir)/common/local.mk $(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/common/local.mk $(srcdir)/arm/local.mk $(srcdir)/bpf/local.mk $(srcdir)/cr16/local.mk $(srcdir)/cris/local.mk $(srcdir)/d10v/local.mk $(srcdir)/erc32/local.mk $(srcdir)/frv/local.mk $(srcdir)/iq2000/local.mk $(srcdir)/lm32/local.mk $(srcdir)/m32c/local.mk $(srcdir)/m32r/local.mk $(srcdir)/m68hc11/local.mk $(srcdir)/mn10300/local.mk $(srcdir)/or1k/local.mk $(srcdir)/ppc/local.mk $(srcdir)/rx/local.mk $(srcdir)/sh/local.mk $(srcdir)/v850/local.mk $(am__empty):
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
@@ -1894,6 +1980,132 @@ clean-libtool:
distclean-libtool:
-rm -f libtool config.lt
+install-armdocDATA: $(armdoc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(armdoc_DATA)'; test -n "$(armdocdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(armdocdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(armdocdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(armdocdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(armdocdir)" || exit $$?; \
+ done
+
+uninstall-armdocDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(armdoc_DATA)'; test -n "$(armdocdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(armdocdir)'; $(am__uninstall_files_from_dir)
+install-erc32docDATA: $(erc32doc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(erc32doc_DATA)'; test -n "$(erc32docdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(erc32docdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(erc32docdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(erc32docdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(erc32docdir)" || exit $$?; \
+ done
+
+uninstall-erc32docDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(erc32doc_DATA)'; test -n "$(erc32docdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(erc32docdir)'; $(am__uninstall_files_from_dir)
+install-frvdocDATA: $(frvdoc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(frvdoc_DATA)'; test -n "$(frvdocdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(frvdocdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(frvdocdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(frvdocdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(frvdocdir)" || exit $$?; \
+ done
+
+uninstall-frvdocDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(frvdoc_DATA)'; test -n "$(frvdocdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(frvdocdir)'; $(am__uninstall_files_from_dir)
+install-or1kdocDATA: $(or1kdoc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(or1kdoc_DATA)'; test -n "$(or1kdocdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(or1kdocdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(or1kdocdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(or1kdocdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(or1kdocdir)" || exit $$?; \
+ done
+
+uninstall-or1kdocDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(or1kdoc_DATA)'; test -n "$(or1kdocdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(or1kdocdir)'; $(am__uninstall_files_from_dir)
+install-ppcdocDATA: $(ppcdoc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(ppcdoc_DATA)'; test -n "$(ppcdocdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(ppcdocdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(ppcdocdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(ppcdocdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(ppcdocdir)" || exit $$?; \
+ done
+
+uninstall-ppcdocDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(ppcdoc_DATA)'; test -n "$(ppcdocdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(ppcdocdir)'; $(am__uninstall_files_from_dir)
+install-rxdocDATA: $(rxdoc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(rxdoc_DATA)'; test -n "$(rxdocdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(rxdocdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(rxdocdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rxdocdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(rxdocdir)" || exit $$?; \
+ done
+
+uninstall-rxdocDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(rxdoc_DATA)'; test -n "$(rxdocdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(rxdocdir)'; $(am__uninstall_files_from_dir)
install-pkgincludeHEADERS: $(pkginclude_HEADERS)
@$(NORMAL_INSTALL)
@list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
@@ -2248,10 +2460,10 @@ check-am: all-am
$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU check-TESTS
check: check-recursive
-all-am: Makefile $(LIBRARIES) $(HEADERS) config.h
+all-am: Makefile $(LIBRARIES) $(DATA) $(HEADERS) config.h
installdirs: installdirs-recursive
installdirs-am:
- for dir in "$(DESTDIR)$(pkgincludedir)"; do \
+ for dir in "$(DESTDIR)$(armdocdir)" "$(DESTDIR)$(erc32docdir)" "$(DESTDIR)$(frvdocdir)" "$(DESTDIR)$(or1kdocdir)" "$(DESTDIR)$(ppcdocdir)" "$(DESTDIR)$(rxdocdir)" "$(DESTDIR)$(pkgincludedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
@@ -2331,7 +2543,9 @@ info: info-recursive
info-am:
-install-data-am: install-pkgincludeHEADERS
+install-data-am: install-armdocDATA install-erc32docDATA \
+ install-frvdocDATA install-or1kdocDATA \
+ install-pkgincludeHEADERS install-ppcdocDATA install-rxdocDATA
install-dvi: install-dvi-recursive
@@ -2379,7 +2593,10 @@ ps: ps-recursive
ps-am:
-uninstall-am: uninstall-pkgincludeHEADERS
+uninstall-am: uninstall-armdocDATA uninstall-erc32docDATA \
+ uninstall-frvdocDATA uninstall-or1kdocDATA \
+ uninstall-pkgincludeHEADERS uninstall-ppcdocDATA \
+ uninstall-rxdocDATA
.MAKE: $(am__recursive_targets) all check-am install-am install-strip
@@ -2390,16 +2607,21 @@ uninstall-am: uninstall-pkgincludeHEADERS
distclean distclean-DEJAGNU distclean-compile \
distclean-generic distclean-hdr distclean-libtool \
distclean-tags dvi dvi-am html html-am info info-am install \
- install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
+ install-am install-armdocDATA install-data install-data-am \
+ install-dvi install-dvi-am install-erc32docDATA install-exec \
+ install-exec-am install-frvdocDATA install-html \
install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-pkgincludeHEADERS \
- install-ps install-ps-am install-strip installcheck \
+ install-or1kdocDATA install-pdf install-pdf-am \
+ install-pkgincludeHEADERS install-ppcdocDATA install-ps \
+ install-ps-am install-rxdocDATA install-strip installcheck \
installcheck-am installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
recheck tags tags-am uninstall uninstall-am \
- uninstall-pkgincludeHEADERS
+ uninstall-armdocDATA uninstall-erc32docDATA \
+ uninstall-frvdocDATA uninstall-or1kdocDATA \
+ uninstall-pkgincludeHEADERS uninstall-ppcdocDATA \
+ uninstall-rxdocDATA
.PRECIOUS: Makefile
diff --git a/sim/arm/local.mk b/sim/arm/local.mk
new file mode 100644
index 000000000000..9da11ab5e2d3
--- /dev/null
+++ b/sim/arm/local.mk
@@ -0,0 +1,19 @@
+# See sim/Makefile.am
+#
+# Copyright (C) 1995-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/>.
+
+%C%docdir = $(docdir)/%C%
+%C%doc_DATA = %D%/README
diff --git a/sim/erc32/local.mk b/sim/erc32/local.mk
new file mode 100644
index 000000000000..7e1b378107b8
--- /dev/null
+++ b/sim/erc32/local.mk
@@ -0,0 +1,19 @@
+# See sim/Makefile.am
+#
+# 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/>.
+
+%C%docdir = $(docdir)/%C%
+%C%doc_DATA = %D%/README.erc32 %D%/README.gdb %D%/README.sis
diff --git a/sim/frv/local.mk b/sim/frv/local.mk
index 378120c613c5..3fb29ba9bd2a 100644
--- a/sim/frv/local.mk
+++ b/sim/frv/local.mk
@@ -16,6 +16,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+%C%docdir = $(docdir)/%C%
+%C%doc_DATA = %D%/README
+
%C%_BUILD_OUTPUTS = \
%D%/eng.h \
%D%/mloop.c \
diff --git a/sim/or1k/local.mk b/sim/or1k/local.mk
index ab1f07df0ea1..10fb2d1e5367 100644
--- a/sim/or1k/local.mk
+++ b/sim/or1k/local.mk
@@ -15,6 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+%C%docdir = $(docdir)/%C%
+%C%doc_DATA = %D%/README
+
%C%_BUILD_OUTPUTS = \
%D%/eng.h \
%D%/mloop.c \
diff --git a/sim/ppc/local.mk b/sim/ppc/local.mk
new file mode 100644
index 000000000000..02def833504c
--- /dev/null
+++ b/sim/ppc/local.mk
@@ -0,0 +1,19 @@
+# See sim/Makefile.am
+#
+# Copyright (C) 1994-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/>.
+
+%C%docdir = $(docdir)/%C%
+%C%doc_DATA = %D%/BUGS %D%/INSTALL %D%/README %D%/RUN
diff --git a/sim/rx/local.mk b/sim/rx/local.mk
new file mode 100644
index 000000000000..8b982080a956
--- /dev/null
+++ b/sim/rx/local.mk
@@ -0,0 +1,19 @@
+# See sim/Makefile.am
+#
+# Copyright (C) 2008-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/>.
+
+%C%docdir = $(docdir)/%C%
+%C%doc_DATA = %D%/README.txt
--
2.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-19 0:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19 0:45 [PATCH 1/2] sim: avoid installing headers when there is no sim Mike Frysinger
2021-11-19 0:45 ` [PATCH 2/2] sim: install various doc files Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).