public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: newlib@sourceware.org
Subject: [PATCH 1/5] libgloss: convert top level to automake
Date: Sat,  5 Feb 2022 00:46:52 -0500	[thread overview]
Message-ID: <20220205054656.11443-2-vapier@gentoo.org> (raw)
In-Reply-To: <20220205054656.11443-1-vapier@gentoo.org>

The top level dir isn't doing anything interesting, just recursing into
subdirs.  So this change isn't terribly exciting.  But it sets us up for
doing more fun stuff in follow up commits.

[TODO] Check test targets
---
 libgloss/Makefile.am       |  38 ++
 libgloss/Makefile.in       | 842 +++++++++++++++++++++++++++++--------
 libgloss/config/default.mh |   3 +
 libgloss/configure.ac      |   2 +-
 4 files changed, 715 insertions(+), 170 deletions(-)
 create mode 100644 libgloss/Makefile.am

diff --git a/libgloss/Makefile.am b/libgloss/Makefile.am
new file mode 100644
index 000000000000..0779da76dd76
--- /dev/null
+++ b/libgloss/Makefile.am
@@ -0,0 +1,38 @@
+## Top level makefile for libgloss
+
+ACLOCAL_AMFLAGS = -I . -I .. -I ../config
+
+# Variables that will accumulate in subdirs.
+PHONY =
+
+SUBDIRS = @subdirs@ .
+
+tooldir = $(exec_prefix)/$(target_alias)
+
+## These are roughly topologically sorted in order to make porting more
+## streamlined.
+FLAGS_TO_PASS = \
+	"CC=$(CC)" \
+	"CFLAGS=$(CFLAGS)" \
+	"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
+	"CCASFLAGS=$(CCASFLAGS)" \
+	"AR=$(AR)" \
+	"RANLIB=$(RANLIB)" \
+	"AR_FLAGS=$(AR_FLAGS)" \
+	"MAKEINFO=$(MAKEINFO)" \
+	"AS=$(AS)" \
+	"LD=$(LD)" \
+	"CROSS_CFLAGS=$(CROSS_CFLAGS)" \
+	"TARGET_CFLAGS=$(TARGET_CFLAGS)" \
+	"exec_prefix=$(exec_prefix)" \
+	"prefix=$(prefix)" \
+	"tooldir=$(tooldir)" \
+	"infodir=$(infodir)" \
+	"libdir=$(libdir)" \
+	"top_toollibdir=$(toollibdir)" \
+	"INSTALL=$(INSTALL)" \
+	"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
+	"INSTALL_DATA=$(INSTALL_DATA)" \
+	"DESTDIR=$(DESTDIR)"
+
+include $(top_srcdir)/../multilib.am
diff --git a/libgloss/config/default.mh b/libgloss/config/default.mh
index 987dc390dc50..4e7f106f9366 100644
--- a/libgloss/config/default.mh
+++ b/libgloss/config/default.mh
@@ -29,3 +29,6 @@ AR_FLAGS = rc
 #
 .c.s:
 	$(CC) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $(CFLAGS) $<
+
+# We don't build docs in subdirs, so stub out the rules.
+.PHONY: doc docs dvi html install-html info install-info clean-info pdf install-pdf
diff --git a/libgloss/configure.ac b/libgloss/configure.ac
index 1fa877729f9b..e4f0b50860b6 100644
--- a/libgloss/configure.ac
+++ b/libgloss/configure.ac
@@ -11,7 +11,7 @@ AC_CONFIG_AUX_DIR(..)
 AC_PROG_INSTALL
 
 AC_CANONICAL_SYSTEM
-AM_INIT_AUTOMAKE([foreign no-define 1.15])
+AM_INIT_AUTOMAKE([foreign no-dist no-define subdir-objects 1.15.1])
 
 if test -z "${with_multisubdir}" ; then
   AC_CONFIG_FILES([doc/Makefile])
-- 
2.34.1


  reply	other threads:[~2022-02-05  5:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-05  5:46 [PATCH 0/5] start converting libgloss to non-recursive automake Mike Frysinger
2022-02-05  5:46 ` Mike Frysinger [this message]
2022-02-05  5:46 ` [PATCH 2/5] libgloss: merge doc into top-level Makefile Mike Frysinger
2022-02-05  5:46 ` [PATCH 3/5] libgloss: merge libgloss " Mike Frysinger
2022-02-07 11:14   ` Mike Frysinger
2022-02-07 11:49     ` Corinna Vinschen
2022-02-05  5:46 ` [PATCH 4/5] libgloss: merge iq2000 " Mike Frysinger
2022-02-05  5:46 ` [PATCH 5/5] libgloss: merge bfin " Mike Frysinger
2022-02-07 11:44   ` Corinna Vinschen
2022-02-07 12:07     ` Corinna Vinschen
2022-02-07 13:11       ` Mike Frysinger
2022-02-07 11:36 ` [PATCH 0/5] start converting libgloss to non-recursive automake Corinna Vinschen
2022-02-07 12:45   ` Mike Frysinger
2022-02-08  9:15     ` Corinna Vinschen

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=20220205054656.11443-2-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=newlib@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).