From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +icgLXNaO2C6fgAAWB0awg (envelope-from ) for ; Sun, 28 Feb 2021 03:55:15 -0500 Received: by simark.ca (Postfix, from userid 112) id A9BCD1EF7C; Sun, 28 Feb 2021 03:55:15 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6EAF41E789 for ; Sun, 28 Feb 2021 03:55:12 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E202E384A018; Sun, 28 Feb 2021 08:55:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E202E384A018 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614502511; bh=TwV9inEpRq2pmY83z8rxZkefwMSylvpCH2Cm6bBGh00=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=IwYUGlyUNO65KzTbEcO4zlfaeZjUjzh6Tiae4iQPbAHIPTPmt7Gi3ywQR9Ff/QNcF a+10BQ9QazVLVyRmqhPg13zhEynwrGz3l5vXFcXI2RodyY1TXGnLSoJklaYQ8+NlAs 9anhuHgeNT7IFCvvYuVb/UR+9KWMNnYAntNO6P08= Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 00A33386180E for ; Sun, 28 Feb 2021 08:55:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 00A33386180E Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 34589340AB2 for ; Sun, 28 Feb 2021 08:55:04 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH 1/2] sim: switch top level to automake Date: Sun, 28 Feb 2021 03:55:00 -0500 Message-Id: <20210228085501.19153-1-vapier@gentoo.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" This doesn't gain us much by itself, but it sets us up for using more features as we try to unify ports and avoid recursive make. --- sim/ChangeLog | 7 + sim/Makefile.am | 36 + sim/Makefile.in | 774 +++++++++++------ sim/aclocal.m4 | 1136 +++++++++++++++++++++++++ sim/configure | 1924 +++++++++++++++++++++++++++++++++--------- sim/configure.ac | 12 +- sim/igen/Makefile.in | 1 + sim/ppc/Makefile.in | 2 + 8 files changed, 3233 insertions(+), 659 deletions(-) create mode 100644 sim/Makefile.am create mode 100644 sim/aclocal.m4 diff --git a/sim/ChangeLog b/sim/ChangeLog index 4449c947274e..78e112cfa6c2 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,10 @@ +2021-02-28 Mike Frysinger + + * Makefile.am: New file. + * configure.ac: Update AC_INIT call. Move AC_CANONICAL_SYSTEM after + it. Call AM_INIT_AUTOMAKE. Delete AC_CONFIG_MACRO_DIRS. + * aclocal.m4, configure, Makefile.in: Regenerated. + 2021-02-28 Mike Frysinger * m4/sim_ac_common.m4 (SIM_AC_COMMON): Delete CC_FOR_BUILD test. diff --git a/sim/Makefile.am b/sim/Makefile.am new file mode 100644 index 000000000000..bcca70623e9a --- /dev/null +++ b/sim/Makefile.am @@ -0,0 +1,36 @@ +## Process this file with automake to generate Makefile.in +# +# 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 . + +AUTOMAKE_OPTIONS = foreign no-dist subdir-objects +ACLOCAL_AMFLAGS = -I.. -I../config + +srcroot = $(srcdir)/.. + +SUBDIRS = @subdirs@ + +MOSTLYCLEANFILES = core + +# Generate nltvals.def for newlib/libgloss using devo and build tree. +# This file is shipped with distributions so we build in the source dir. +# Use `make nltvals' to rebuild. +# Note: If gdb releases begin to contain target header files (not a good idea, +# but if they did ...), nltvals.def coud be generated at build time. +# An alternative is to slurp in the tables at runtime. +.PHONY: nltvals +nltvals: + $(abs_srcdir)/common/gennltvals.py --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot) + $(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def diff --git a/sim/aclocal.m4 b/sim/aclocal.m4 new file mode 100644 index 000000000000..5f59833b91a4 diff --git a/sim/configure.ac b/sim/configure.ac index 80e1b42d40b2..de5779642c50 100644 --- a/sim/configure.ac +++ b/sim/configure.ac @@ -1,13 +1,19 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(Makefile.in) -AC_CONFIG_MACRO_DIRS([.. ../config]) +dnl NB: The version here is not used. If gdb ever changes from generating its +dnl version at build time to autoconf time (like bfd et al do), we can switch. +AC_INIT([sim], [0], + [https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim], + [], [https://sourceware.org/gdb/wiki/Sim/]) + +AC_CANONICAL_SYSTEM + +AM_INIT_AUTOMAKE AC_PROG_CC AC_PROG_INSTALL AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CANONICAL_SYSTEM AC_ARG_PROGRAM AC_PROG_CC AC_PROG_CPP -- 2.30.0