From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 163873858D1E for ; Tue, 3 Jan 2023 03:56:32 +0000 (GMT) Received: by smtp.gentoo.org (Postfix, from userid 559) id 908CA335C9F; Tue, 3 Jan 2023 03:56:31 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: sh: move some generated source files to built sources Date: Mon, 2 Jan 2023 22:56:28 -0500 Message-Id: <20230103035628.21982-1-vapier@gentoo.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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