[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master be9c647f 6/9: Prepare for more transplantatio
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master be9c647f 6/9: Prepare for more transplantation |
Date: |
Tue, 28 Jun 2022 22:26:46 -0400 (EDT) |
branch: master
commit be9c647fe7e7da412a54c4c0ebebc7b65a5ff981
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Prepare for more transplantation
The principal gcc makefile is too large. Splitting it into pieces should
make it easier to understand and maintain.
---
compiler_clang.make | 7 +++++++
compiler_clang_version.make | 24 ++++++++++++++++++++++++
compiler_gcc.make | 7 +++++++
compiler_gcc_version.make | 24 ++++++++++++++++++++++++
4 files changed, 62 insertions(+)
diff --git a/compiler_clang.make b/compiler_clang.make
index 23ba0bb6..dc264a83 100644
--- a/compiler_clang.make
+++ b/compiler_clang.make
@@ -25,6 +25,13 @@
$(srcdir)/compiler_clang.make:: ;
+# Ascertain compiler version.
+
+include $(srcdir)/compiler_clang_version.make
+$(srcdir)/compiler_clang_version.make:: ;
+
+# Warnings.
+
include $(srcdir)/compiler_clang_warnings.make
$(srcdir)/compiler_clang_warnings.make:: ;
diff --git a/compiler_clang_version.make b/compiler_clang_version.make
new file mode 100644
index 00000000..4a8cf7f8
--- /dev/null
+++ b/compiler_clang_version.make
@@ -0,0 +1,24 @@
+# Compiler-specific makefile: ascertain clang version.
+#
+# Copyright (C) 2022 Gregory W. Chicares.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# 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, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+#
+# https://savannah.nongnu.org/projects/lmi
+# email: <gchicares@sbcglobal.net>
+# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+# Don't remake this makefile.
+
+$(srcdir)/compiler_clang_version.make:: ;
diff --git a/compiler_gcc.make b/compiler_gcc.make
index a86e3fd2..47cc0e07 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -25,6 +25,13 @@
$(srcdir)/compiler_gcc.make:: ;
+# Ascertain compiler version.
+
+include $(srcdir)/compiler_gcc_version.make
+$(srcdir)/compiler_gcc_version.make:: ;
+
+# Warnings.
+
include $(srcdir)/compiler_gcc_warnings.make
$(srcdir)/compiler_gcc_warnings.make:: ;
diff --git a/compiler_gcc_version.make b/compiler_gcc_version.make
new file mode 100644
index 00000000..ab4c73a8
--- /dev/null
+++ b/compiler_gcc_version.make
@@ -0,0 +1,24 @@
+# Compiler-specific makefile: ascertain gcc version.
+#
+# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Gregory W. Chicares.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# 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, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+#
+# https://savannah.nongnu.org/projects/lmi
+# email: <gchicares@sbcglobal.net>
+# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+# Don't remake this makefile.
+
+$(srcdir)/compiler_gcc_version.make:: ;
- [lmi-commits] [lmi] master updated (ceb0ac3b -> 01aa1fd4), Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 984ccf07 3/9: Expunge useless history, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master a3571e5d 4/9: Remove a dependency on an ancient gcc version, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master d20268b2 5/9: Remove another dependency on an ancient gcc version, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 2f9d615f 8/9: Move a definition, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 9f2184d3 1/9: Record some handy commands, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 7947ec4e 2/9: Distinguish dialect options from warnings, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master 01aa1fd4 9/9: Factor out gcc warnings, Greg Chicares, 2022/06/28
- [lmi-commits] [lmi] master be9c647f 6/9: Prepare for more transplantation,
Greg Chicares <=
- [lmi-commits] [lmi] master 0e74982c 7/9: Transplant ascertainment of compiler version, Greg Chicares, 2022/06/28