summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2023-06-04 10:00:20 +0000
committerlukem <lukem@NetBSD.org>2023-06-04 10:00:20 +0000
commit891ab5cf22df21e6098f500df8b278d41b1dd146 (patch)
treeb064c7666a734489ca21c7312f58f030bf0aa509 /tools
parent733909a2c44a633308136597959f415f4d31c404 (diff)
tools: use <bsd.hostinit.mk> where appropriate
bsd.hostinit.mk sets a bunch of NOxxx variables before including bsd.init.mk (which includes bsd.own.mk), so simplify instead of replicating the NOxxx setup for host tools.
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.host9
-rw-r--r--tools/Makefile.nbincludes15
2 files changed, 5 insertions, 19 deletions
diff --git a/tools/Makefile.host b/tools/Makefile.host
index 6316bfa0a6a..b599c8e0f1a 100644
--- a/tools/Makefile.host
+++ b/tools/Makefile.host
@@ -1,11 +1,6 @@
-# $NetBSD: Makefile.host,v 1.34 2018/05/04 14:50:18 christos Exp $
+# $NetBSD: Makefile.host,v 1.35 2023/06/04 10:00:20 lukem Exp $
-NOINFO= # defined
-NOLINT= # defined
-NOMAN= # defined
-MKREPRO=no # Native toolchain might be unable to do it
-
-.include <bsd.own.mk>
+.include <bsd.hostinit.mk>
.ifndef NOCOMPATLIB
# Use TOOLDIR copy of libnbcompat and associated *.h files
diff --git a/tools/Makefile.nbincludes b/tools/Makefile.nbincludes
index 54ee35cf79f..9a3e5ba69bb 100644
--- a/tools/Makefile.nbincludes
+++ b/tools/Makefile.nbincludes
@@ -1,15 +1,6 @@
-# $NetBSD: Makefile.nbincludes,v 1.5 2016/09/14 00:41:04 christos Exp $
-
-# NOxxx definitions are copied from Makefile.host, and are
-# required before .include <bsd.own.mk>. The include of bsd.own.mk
-# itself is required to get definitions of TOOL_* variables used in
-# "!=" variable assignments (which are performed early).
-#
-NOINFO= # defined
-NOLINT= # defined
-NOMAN= # defined
-
-.include <bsd.own.mk>
+# $NetBSD: Makefile.nbincludes,v 1.6 2023/06/04 10:00:20 lukem Exp $
+
+.include <bsd.hostinit.mk>
_ARCHDIR= ${.CURDIR}/../../sys/arch
_INCDIR= ${.CURDIR}/../../include