aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-12-15 22:34:47 +0000
committerWarner Losh <imp@FreeBSD.org>2021-12-15 22:35:24 +0000
commit7a171e30836d1aa9870489e692f0ed56fbd45756 (patch)
tree7f7ceb37e4e48c477602c4a27fecb643e966cef5 /tools
parent7aec934fffde73f7d22450b18e04436aa77b1148 (diff)
downloadsrc-7a171e30836d1aa9870489e692f0ed56fbd45756.tar.gz
src-7a171e30836d1aa9870489e692f0ed56fbd45756.zip
Diffstat (limited to 'tools')
-rw-r--r--tools/build/test-includes/Makefile10
-rw-r--r--tools/build/test-includes/test-includes.c7
2 files changed, 6 insertions, 11 deletions
diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includes/Makefile
index b42497e0397d..b1e5023663af 100644
--- a/tools/build/test-includes/Makefile
+++ b/tools/build/test-includes/Makefile
@@ -13,11 +13,11 @@
# programs to detect FreeBSD has different headers, omitting internal
# headers cuts down on the noise w/o causing problems for the goal.
#
-PROG= test-includes
-SRCS= test-includes.c
-INTERNALPROG= This is a compile-only test
+LIB= test-includes
+INTERNALLIB= This is a compile-only test
MAN=
HDRS!= (cd ${SRCTOP}/sys; ls sys/[^_]*.h net*/[^_]*.h)
+NO_PIC= yes
# Some files have to be clean for extra defines too...
CFLAGS.event.c= -D_WANT_KEVENT32 -D_WANT_FREEBSD11_KEVENT
@@ -33,6 +33,8 @@ ${h:R}.c:
.endif
.endfor
+test-includes: lib${LIB}.a .PHONY
+
#
# Target to make the current known bad list. In general, this list should only
# ever shrink and never grow.
@@ -49,4 +51,4 @@ badfiles.inc:
done; \
echo) > ${.CURDIR}/badfiles.inc
-.include <bsd.prog.mk>
+.include <bsd.lib.mk>
diff --git a/tools/build/test-includes/test-includes.c b/tools/build/test-includes/test-includes.c
deleted file mode 100644
index 5518813d8f18..000000000000
--- a/tools/build/test-includes/test-includes.c
+++ /dev/null
@@ -1,7 +0,0 @@
-/* Public domain */
-
-int
-main(void)
-{
- return 0;
-}