public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] sim: cris: move rvdummy linking to top-level
Date: Sat,  5 Nov 2022 11:22:49 +0700	[thread overview]
Message-ID: <20221105042249.22511-1-vapier@gentoo.org> (raw)

This is only used by `make check`, so we can move it out of the
default build too.
---
 sim/Makefile.in      | 113 ++++++++++++++++++++++++++-----------------
 sim/cris/Makefile.in |  13 +----
 sim/cris/local.mk    |   7 +++
 3 files changed, 77 insertions(+), 56 deletions(-)

diff --git a/sim/cris/Makefile.in b/sim/cris/Makefile.in
index 7b69c114d929..3474eb9a827b 100644
--- a/sim/cris/Makefile.in
+++ b/sim/cris/Makefile.in
@@ -39,20 +39,9 @@ SIM_EXTRA_CLEAN = cris-clean
 
 arch = cris
 
-# rvdummy is just used for testing.  It does nothing if
-# --enable-sim-hardware isn't active.
-
-all: rvdummy$(EXEEXT)
-
-check: rvdummy$(EXEEXT)
-
-rvdummy$(EXEEXT): rvdummy.o $(EXTRA_LIBDEPS)
-	$(ECHO_CCLD) $(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \
-	  $(CC) $(ALL_CFLAGS) -o rvdummy$(EXEEXT) rvdummy.o $(EXTRA_LIBS)
-
 cris-clean:
 	-rm -f stamp-arch
-	-rm -f tmp-* rvdummy$(EXEEXT)
+	-rm -f tmp-*
 
 # Useful when making CGEN-generated files manually, without --enable-cgen-maint.
 stamps: stamp-arch stamp-v10fcpu stamp-v32fcpu
diff --git a/sim/cris/local.mk b/sim/cris/local.mk
index 9416b7e8c014..62a3f8e80abf 100644
--- a/sim/cris/local.mk
+++ b/sim/cris/local.mk
@@ -16,6 +16,13 @@
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+## rvdummy is just used for testing -- it runs on the same host as `run`.
+## It does nothing if --enable-sim-hardware isn't active.
+%C%_rvdummy_SOURCES = %D%/rvdummy.c
+%C%_rvdummy_LDADD = $(LIBIBERTY_LIB)
+
+check_PROGRAMS += %D%/rvdummy
+
 %C%_BUILD_OUTPUTS = \
 	%D%/engv10.h \
 	%D%/mloopv10f.c \
-- 
2.38.1


                 reply	other threads:[~2022-11-05  4:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221105042249.22511-1-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).