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 \
|
2002-08-09 11:30:48 -04:00
|
|
|
opt_inet.h opt_ipx.h opt_mac.h opt_ppp.h vnode_if.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
|
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
|
|
|
|
|
SRCS+= ppp_deflate.c zlib.c
|
|
|
|
|
.endif
|
|
|
|
|
|
1999-11-28 13:53:47 -05:00
|
|
|
CLEANFILES= ppp.h
|
1995-03-20 14:25:49 -05:00
|
|
|
|
1998-01-08 18:50:27 -05:00
|
|
|
.if ${PPP_INET} > 0
|
2001-02-04 03:23:14 -05:00
|
|
|
opt_inet.h:
|
2000-09-26 14:55:24 -04:00
|
|
|
echo "#define INET 1" >> ${.TARGET}
|
1998-01-08 18:50:27 -05:00
|
|
|
.endif
|
|
|
|
|
|
1997-12-16 13:28:07 -05:00
|
|
|
.if ${PPP_IPX} > 0
|
2001-02-04 03:23:14 -05:00
|
|
|
opt_ipx.h:
|
2000-09-26 14:55:24 -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:
|
2000-09-26 14:55:24 -04:00
|
|
|
touch ${.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
|
1997-08-21 06:17:29 -04:00
|
|
|
|
2000-05-26 21:14:33 -04:00
|
|
|
.include <bsd.kmod.mk>
|