diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2006-03-17 18:54:44 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2006-03-17 18:54:44 +0000 |
| commit | e1fe3dba5ce2826061f6489765be9b4a341736a9 (patch) | |
| tree | 801e953598fc63a37f62cf997017301675552fe9 /sys/modules | |
| parent | 23801379f0e7cdddcb057ea05fe79b340a01dbf5 (diff) | |
Notes
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/Makefile | 10 | ||||
| -rw-r--r-- | sys/modules/dummynet/Makefile | 4 | ||||
| -rw-r--r-- | sys/modules/if_bridge/Makefile | 4 | ||||
| -rw-r--r-- | sys/modules/if_gif/Makefile | 8 | ||||
| -rw-r--r-- | sys/modules/ipfilter/Makefile | 4 | ||||
| -rw-r--r-- | sys/modules/ipfw/Makefile | 4 | ||||
| -rw-r--r-- | sys/modules/netgraph/Makefile | 6 | ||||
| -rw-r--r-- | sys/modules/pf/Makefile | 4 | ||||
| -rw-r--r-- | sys/modules/pflog/Makefile | 4 |
9 files changed, 33 insertions, 15 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index f17210deec21..6a6c47593add 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + SUBDIR= ${_3dfx} \ ${_3dfx_linux} \ ${_aac} \ @@ -295,7 +297,7 @@ _vpo= vpo _ufs= ufs .endif -.if !defined(NO_CRYPT) || defined(ALL_MODULES) +.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) .if exists(${.CURDIR}/../opencrypto) _crypto= crypto _cryptodev= cryptodev @@ -305,11 +307,11 @@ _random= random .endif .endif -.if !defined(NO_IPFILTER) || defined(ALL_MODULES) +.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) _ipfilter= ipfilter .endif -.if !defined(NO_PF) || defined(ALL_MODULES) +.if ${MK_PF} != "no" || defined(ALL_MODULES) _pf= pf _pflog= pflog .endif @@ -407,7 +409,7 @@ _ipw= ipw _iwi= iwi _mly= mly _nve= nve -.if !defined(NO_CRYPT) || defined(ALL_MODULES) +.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) .if exists(${.CURDIR}/../crypto/via) _padlock= padlock .endif diff --git a/sys/modules/dummynet/Makefile b/sys/modules/dummynet/Makefile index ecd6cbe900d3..5da69b271f54 100644 --- a/sys/modules/dummynet/Makefile +++ b/sys/modules/dummynet/Makefile @@ -1,12 +1,14 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../netinet KMOD= dummynet SRCS= ip_dummynet.c SRCS+= opt_inet6.h .if !defined(KERNBUILDDIR) -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > ${.TARGET} .endif diff --git a/sys/modules/if_bridge/Makefile b/sys/modules/if_bridge/Makefile index fa47a7659313..d1fc3501b628 100644 --- a/sys/modules/if_bridge/Makefile +++ b/sys/modules/if_bridge/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../net KMOD= if_bridge SRCS= if_bridge.c bridgestp.c opt_inet.h opt_inet6.h @@ -8,7 +10,7 @@ SRCS= if_bridge.c bridgestp.c opt_inet.h opt_inet6.h opt_inet.h: echo "#define INET 1" > ${.TARGET} -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > ${.TARGET} .endif diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile index c9d073b91b84..b608f559b061 100644 --- a/sys/modules/if_gif/Makefile +++ b/sys/modules/if_gif/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 KMOD= if_gif @@ -10,7 +12,7 @@ SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mac.h \ opt_inet.h: echo "#define INET 1" > ${.TARGET} -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > ${.TARGET} .endif @@ -20,11 +22,11 @@ opt_mrouting.h: .else OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h .if empty(OPT_INET6) -NO_INET6= +MK_INET6_SUPPORT= no .endif .endif -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" SRCS+= in6_gif.c .endif diff --git a/sys/modules/ipfilter/Makefile b/sys/modules/ipfilter/Makefile index 542af84efa3f..9cfb0f6ad5fc 100644 --- a/sys/modules/ipfilter/Makefile +++ b/sys/modules/ipfilter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../contrib/ipfilter/netinet KMOD= ipl @@ -12,7 +14,7 @@ SRCS+= opt_bpf.h opt_inet6.h opt_bpf.h: echo "#define DEV_BPF 1" > ${.TARGET} -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > ${.TARGET} .endif diff --git a/sys/modules/ipfw/Makefile b/sys/modules/ipfw/Makefile index 5c433e25c10b..3a305f9ba792 100644 --- a/sys/modules/ipfw/Makefile +++ b/sys/modules/ipfw/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../netinet KMOD= ipfw @@ -17,7 +19,7 @@ CFLAGS+= -DIPFIREWALL # .if !defined(KERNBUILDDIR) -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > ${.TARGET} .endif diff --git a/sys/modules/netgraph/Makefile b/sys/modules/netgraph/Makefile index b2b6af4ec4a6..6bf4cc492690 100644 --- a/sys/modules/netgraph/Makefile +++ b/sys/modules/netgraph/Makefile @@ -1,6 +1,8 @@ # $Whistle: Makefile,v 1.5 1999/01/24 06:48:37 archie Exp $ # $FreeBSD$ +.include <bsd.own.mk> + SUBDIR= async \ atm \ atmllc \ @@ -52,11 +54,11 @@ _sync_ar= sync_ar _sync_sr= sync_sr .endif -.if !defined(NO_BLUETOOTH) || defined(ALL_MODULES) +.if ${MK_BLUETOOTH} != "no" || defined(ALL_MODULES) _bluetooth= bluetooth .endif -.if !defined(NO_CRYPT) && exists(${.CURDIR}/../../crypto/rc4/rc4.c) +.if ${MK_CRYPT} != "no" && exists(${.CURDIR}/../../crypto/rc4/rc4.c) _mppc= mppc .endif diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile index 11e00e2c649b..3cff4784d472 100644 --- a/sys/modules/pf/Makefile +++ b/sys/modules/pf/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../contrib/pf/net .PATH: ${.CURDIR}/../../contrib/pf/netinet @@ -14,7 +16,7 @@ CFLAGS+= -I${.CURDIR}/../../contrib/pf opt_inet.h: echo "#define INET 1" > opt_inet.h -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > opt_inet6.h .endif diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile index f4a83df9708c..12ead1287a77 100644 --- a/sys/modules/pflog/Makefile +++ b/sys/modules/pflog/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + .PATH: ${.CURDIR}/../../contrib/pf/net KMOD= pflog @@ -12,7 +14,7 @@ CFLAGS+= -I${.CURDIR}/../../contrib/pf opt_inet.h: echo "#define INET 1" > opt_inet.h -.if !defined(NO_INET6) +.if ${MK_INET6_SUPPORT} != "no" opt_inet6.h: echo "#define INET6 1" > opt_inet6.h .endif |
