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 C97063858407 for ; Tue, 3 Jan 2023 07:58:06 +0000 (GMT) Received: by smtp.gentoo.org (Postfix, from userid 559) id 79D71340CD7; Tue, 3 Jan 2023 07:58:06 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 55/83] sim: m32r: move arch-specific file compilation to top-level Date: Tue, 3 Jan 2023 02:55:37 -0500 Message-Id: <20230103075605.13606-56-vapier@gentoo.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230103075605.13606-1-vapier@gentoo.org> References: <20230103075605.13606-1-vapier@gentoo.org> 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,KAM_SHORT,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: --- sim/Makefile.in | 15 ++++++++++++--- sim/m32r/Makefile.in | 3 --- sim/m32r/local.mk | 17 ++++++++++++++--- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/sim/m32r/Makefile.in b/sim/m32r/Makefile.in index bc7b85694792..43346b8b9849 100644 --- a/sim/m32r/Makefile.in +++ b/sim/m32r/Makefile.in @@ -21,7 +21,4 @@ arch = m32r -# Some modules don't build cleanly yet. -cpu.o cpu2.o cpux.o m32r.o m32r2.o m32rx.o mloop.o mloop2.o mloopx.o sem.o sim-if.o traps.o: SIM_WERROR_CFLAGS = - ## COMMON_POST_CONFIG_FRAG diff --git a/sim/m32r/local.mk b/sim/m32r/local.mk index afecaf6c8bce..3ccfce79b095 100644 --- a/sim/m32r/local.mk +++ b/sim/m32r/local.mk @@ -16,6 +16,20 @@ ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . +## Some modules don't build cleanly yet. +AM_CFLAGS_%C%_cpu.o = -Wno-error +AM_CFLAGS_%C%_cpu2.o = -Wno-error +AM_CFLAGS_%C%_cpux.o = -Wno-error +AM_CFLAGS_%C%_m32r.o = -Wno-error +AM_CFLAGS_%C%_m32r2.o = -Wno-error +AM_CFLAGS_%C%_m32rx.o = -Wno-error +AM_CFLAGS_%C%_mloop.o = -Wno-error +AM_CFLAGS_%C%_mloop2.o = -Wno-error +AM_CFLAGS_%C%_mloopx.o = -Wno-error +AM_CFLAGS_%C%_sem.o = -Wno-error +AM_CFLAGS_%C%_sim_if.o = -Wno-error +AM_CFLAGS_%C%_traps.o = -Wno-error + %C%_libsim_a_SOURCES = %C%_libsim_a_LIBADD = \ $(common_libcommon_a_OBJECTS) \ @@ -56,9 +70,6 @@ $(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h noinst_LIBRARIES += %D%/libsim.a -%D%/%.o: %D%/%.c - $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F) - %D%/%.o: common/%.c $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C $(@D) $(@F) -- 2.39.0