public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: sh: move some generated source files to built sources
@ 2023-01-03  3:56 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2023-01-03  3:56 UTC (permalink / raw)
  To: gdb-patches

This should have been part of the previous commit 80636a54bcfa2bca3dc8f
("sim: build: move generated headers to built sources"), but they were
missed because they're .c files effectively treated as .h files.
---
 sim/Makefile.in | 25 ++++++++++++++-----------
 sim/sh/local.mk |  8 ++++++--
 2 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/sim/sh/local.mk b/sim/sh/local.mk
index 2dc63323e040..8c2ce0da1499 100644
--- a/sim/sh/local.mk
+++ b/sim/sh/local.mk
@@ -24,10 +24,14 @@
 
 noinst_PROGRAMS += %D%/run
 
+## List all generated headers to help Automake dependency tracking.
+## NB: These .c files are only included by other .c files.  They are not
+## compiled individually.  Hence they're really "header" files.
+BUILT_SOURCES += \
+	%D%/code.c \
+	%D%/ppi.c
 %C%_BUILD_OUTPUTS = \
 	%D%/gencode$(EXEEXT) \
-	%D%/code.c \
-	%D%/ppi.c \
 	%D%/table.c
 
 ## This makes sure build tools are available before building the arch-subdirs.
-- 
2.39.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-03  3:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03  3:56 [PATCH] sim: sh: move some generated source files to built sources 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).