diff options
author | sepotvin <sepotvin@FreeBSD.org> | 2007-06-13 02:08:04 +0000 |
---|---|---|
committer | sepotvin <sepotvin@FreeBSD.org> | 2007-06-13 02:08:04 +0000 |
commit | 3ffe583f135abf345278b912b885783f69a24bd5 (patch) | |
tree | 82c2597c5d5e690c3bee8388626688cb7826c05e | |
parent | 20ad8ecfb0af809f13b9dc6e5ab994548e0d785c (diff) | |
download | FreeBSD-src-3ffe583f135abf345278b912b885783f69a24bd5.zip FreeBSD-src-3ffe583f135abf345278b912b885783f69a24bd5.tar.gz |
Options spring cleanup:
- Add and document the KVM and KVM_SUPPORT options that
are needed for the ifmcstats(3) makefile
- Garbage collect unused variables
- Add missing inclusion of bsd.own.mk where needed
Approved by: kan (mentor)
Reviewed by: ru
-rw-r--r-- | lib/libarchive/test/Makefile | 1 | ||||
-rw-r--r-- | share/mk/bsd.own.mk | 2 | ||||
-rw-r--r-- | sys/modules/ip_mroute_mod/Makefile | 6 | ||||
-rw-r--r-- | tools/build/options/WITHOUT_KVM | 5 | ||||
-rw-r--r-- | tools/build/options/WITHOUT_KVM_SUPPORT | 4 | ||||
-rw-r--r-- | usr.bin/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/ifmcstat/Makefile | 6 |
7 files changed, 19 insertions, 7 deletions
diff --git a/lib/libarchive/test/Makefile b/lib/libarchive/test/Makefile index 4163e0f..7f9d115 100644 --- a/lib/libarchive/test/Makefile +++ b/lib/libarchive/test/Makefile @@ -48,7 +48,6 @@ SRCS= ${TESTS} \ CLEANFILES+= list.h -MK_MAN=no NO_MAN=yes PROG=libarchive_test diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 81c0740..f6148cb 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -325,6 +325,7 @@ WITH_IDEA= IPFILTER \ IPX \ KERBEROS \ + KVM \ LIB32 \ LIBPTHREAD \ LIBTHR \ @@ -449,6 +450,7 @@ MK_GDB:= no INET6 \ IPX \ KERBEROS \ + KVM \ PAM .if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT) .error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set. diff --git a/sys/modules/ip_mroute_mod/Makefile b/sys/modules/ip_mroute_mod/Makefile index 99eaf60..5b3330f 100644 --- a/sys/modules/ip_mroute_mod/Makefile +++ b/sys/modules/ip_mroute_mod/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 KMOD= ip_mroute @@ -8,7 +10,7 @@ SRCS= ip_mroute.c SRCS+= opt_inet.h opt_mac.h opt_mrouting.h SRCS+= opt_inet6.h -.if !defined(MK_INET6_SUPPORT) || ${MK_INET6_SUPPORT} != "no" +.if ${MK_INET6_SUPPORT} != "no" SRCS+= ip6_mroute.c .endif @@ -17,7 +19,7 @@ opt_inet.h: echo "#define INET 1" > ${.TARGET} opt_mrouting.h: echo "#define MROUTING 1" > ${.TARGET} -.if !defined(MK_INET6_SUPPORT) || ${MK_INET6_SUPPORT} != "no" +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > ${.TARGET} .endif diff --git a/tools/build/options/WITHOUT_KVM b/tools/build/options/WITHOUT_KVM new file mode 100644 index 0000000..121186a --- /dev/null +++ b/tools/build/options/WITHOUT_KVM @@ -0,0 +1,5 @@ +.\" $FreeBSD$ +Set to not build the +.Nm libkvm +library as a part of the base system. +.Sy "The option has no effect yet." diff --git a/tools/build/options/WITHOUT_KVM_SUPPORT b/tools/build/options/WITHOUT_KVM_SUPPORT new file mode 100644 index 0000000..16c91a7 --- /dev/null +++ b/tools/build/options/WITHOUT_KVM_SUPPORT @@ -0,0 +1,4 @@ +.\" $FreeBSD$ +Set to build some programs without optional +.Nm libkvm +support. diff --git a/usr.bin/Makefile b/usr.bin/Makefile index 0b5e2f4..75c6af7 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -9,8 +9,6 @@ # Moved to secure: bdes # -.include <bsd.own.mk> - SUBDIR= alias \ apply \ asa \ diff --git a/usr.sbin/ifmcstat/Makefile b/usr.sbin/ifmcstat/Makefile index 1f8c2a5..62de0b9 100644 --- a/usr.sbin/ifmcstat/Makefile +++ b/usr.sbin/ifmcstat/Makefile @@ -1,17 +1,19 @@ # @(#)Makefile 8.1 (Berkeley) 6/5/93 # $FreeBSD$ +.include <bsd.own.mk> + PROG= ifmcstat MAN= ifmcstat.8 BINMODE= 550 WARNS?= 2 -.if !defined(MK_INET6_SUPPORT) || ${MK_INET6_SUPPORT} != "no" +.if ${MK_INET6_SUPPORT} != "no" CFLAGS+=-DINET6 .endif -.if !defined(MK_KVM_SUPPORT) || ${MK_KVM_SUPPORT} != "no" +.if ${MK_KVM_SUPPORT} != "no" CFLAGS+=-DWITH_KVM DPADD= ${LIBKVM} LDADD= -lkvm |