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