1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1995-03-20 14:25:49 -05:00
|
|
|
|
1998-10-16 00:30:52 -04:00
|
|
|
.PATH: ${.CURDIR}/../../net
|
2001-01-06 09:00:42 -05:00
|
|
|
|
2000-09-26 14:55:24 -04:00
|
|
|
KMOD= if_ppp
|
2000-09-26 14:09:02 -04:00
|
|
|
SRCS= if_ppp.c ppp_tty.c slcompress.c \
|
2006-11-11 10:02:04 -05:00
|
|
|
opt_inet.h opt_inet6.h opt_ipx.h opt_mac.h opt_ppp.h
|
1995-03-20 14:25:49 -05:00
|
|
|
|
1997-10-17 21:37:52 -04:00
|
|
|
PPP_BSDCOMP?= 1 # 0/1
|
|
|
|
|
PPP_DEFLATE?= 1 # 0/1
|
1999-04-27 21:18:13 -04:00
|
|
|
PPP_FILTER?= 1 # 0/1 - requires bpf to be configured in kernel
|
1998-01-08 18:50:27 -05:00
|
|
|
PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel
|
2006-11-11 10:02:04 -05:00
|
|
|
.if defined(NO_INET6)
|
|
|
|
|
PPP_INET6?= 0 # 0/1 - requires INET6 to be configured in kernel
|
|
|
|
|
.else
|
|
|
|
|
PPP_INET6?= 1 # 0/1 - requires INET6 to be configured in kernel
|
|
|
|
|
.endif
|
1997-12-16 13:28:07 -05:00
|
|
|
PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel
|
1995-03-20 14:25:49 -05:00
|
|
|
|
1998-03-26 23:05:08 -05:00
|
|
|
.if ${PPP_BSDCOMP} > 0
|
|
|
|
|
SRCS+= bsd_comp.c
|
|
|
|
|
.endif
|
|
|
|
|
.if ${PPP_DEFLATE} > 0
|
2006-02-27 11:56:22 -05:00
|
|
|
SRCS+= ppp_deflate.c
|
1998-03-26 23:05:08 -05:00
|
|
|
.endif
|
|
|
|
|
|
2005-10-14 19:30:17 -04:00
|
|
|
.if !defined(KERNBUILDDIR)
|
1998-01-08 18:50:27 -05:00
|
|
|
.if ${PPP_INET} > 0
|
2001-02-04 03:23:14 -05:00
|
|
|
opt_inet.h:
|
2006-08-14 09:28:53 -04:00
|
|
|
echo "#define INET 1" > ${.TARGET}
|
1998-01-08 18:50:27 -05:00
|
|
|
.endif
|
|
|
|
|
|
2006-11-11 10:02:04 -05:00
|
|
|
.if ${PPP_INET6} > 0
|
|
|
|
|
opt_inet6.h:
|
|
|
|
|
echo "#define INET6 1" > ${.TARGET}
|
|
|
|
|
.endif
|
|
|
|
|
|
1997-12-16 13:28:07 -05:00
|
|
|
.if ${PPP_IPX} > 0
|
2001-02-04 03:23:14 -05:00
|
|
|
opt_ipx.h:
|
2006-08-14 09:28:53 -04:00
|
|
|
echo "#define IPX ${PPP_IPX}" > ${.TARGET}
|
1997-12-16 13:28:07 -05:00
|
|
|
.endif
|
|
|
|
|
|
1997-08-21 06:17:29 -04:00
|
|
|
opt_ppp.h:
|
2006-08-14 09:28:53 -04:00
|
|
|
:> ${.TARGET}
|
1997-10-17 21:37:52 -04:00
|
|
|
.if ${PPP_BSDCOMP} > 0
|
2000-09-26 14:55:24 -04:00
|
|
|
echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
|
1997-10-17 21:37:52 -04:00
|
|
|
.endif
|
|
|
|
|
.if ${PPP_DEFLATE} > 0
|
2000-09-26 14:55:24 -04:00
|
|
|
echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
|
1997-10-17 21:37:52 -04:00
|
|
|
.endif
|
|
|
|
|
.if ${PPP_FILTER} > 0
|
2000-09-26 14:55:24 -04:00
|
|
|
echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
|
1997-10-17 21:37:52 -04:00
|
|
|
.endif
|
2005-10-14 19:30:17 -04:00
|
|
|
.endif
|
1997-08-21 06:17:29 -04:00
|
|
|
|
2000-05-26 21:14:33 -04:00
|
|
|
.include <bsd.kmod.mk>
|