1999-08-28 03:08:13 +02:00
|
|
|
# $FreeBSD$
|
1995-03-20 20:25:49 +01:00
|
|
|
|
1998-10-16 06:30:52 +02:00
|
|
|
.PATH: ${.CURDIR}/../../net
|
2000-09-26 20:55:24 +02:00
|
|
|
KMOD= if_ppp
|
2000-09-26 20:09:02 +02:00
|
|
|
SRCS= if_ppp.c ppp_tty.c slcompress.c \
|
2000-09-26 20:55:24 +02:00
|
|
|
opt_inet.h opt_ipx.h opt_ppp.h ppp.h vnode_if.h
|
1995-03-20 20:25:49 +01:00
|
|
|
NOMAN=
|
|
|
|
|
|
|
|
NPPP?= 2
|
1997-10-18 03:37:52 +02:00
|
|
|
PPP_BSDCOMP?= 1 # 0/1
|
|
|
|
PPP_DEFLATE?= 1 # 0/1
|
1999-04-28 03:18:13 +02:00
|
|
|
PPP_FILTER?= 1 # 0/1 - requires bpf to be configured in kernel
|
1998-01-09 00:50:27 +01:00
|
|
|
PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel
|
1997-12-16 19:28:07 +01:00
|
|
|
PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel
|
1995-03-20 20:25:49 +01:00
|
|
|
|
1998-03-27 05:05:08 +01:00
|
|
|
.if ${PPP_BSDCOMP} > 0
|
|
|
|
SRCS+= bsd_comp.c
|
|
|
|
.endif
|
|
|
|
.if ${PPP_DEFLATE} > 0
|
|
|
|
SRCS+= ppp_deflate.c zlib.c
|
|
|
|
.endif
|
|
|
|
|
1999-11-28 19:53:47 +01:00
|
|
|
CLEANFILES= ppp.h
|
1995-03-20 20:25:49 +01:00
|
|
|
|
1998-01-09 00:50:27 +01:00
|
|
|
opt_inet.h:
|
2000-09-26 20:55:24 +02:00
|
|
|
touch ${.TARGET}
|
1998-01-09 00:50:27 +01:00
|
|
|
.if ${PPP_INET} > 0
|
2000-09-26 20:55:24 +02:00
|
|
|
echo "#define INET 1" >> ${.TARGET}
|
1998-01-09 00:50:27 +01:00
|
|
|
.endif
|
|
|
|
|
1997-12-16 19:28:07 +01:00
|
|
|
opt_ipx.h:
|
2000-09-26 20:55:24 +02:00
|
|
|
touch ${.TARGET}
|
1997-12-16 19:28:07 +01:00
|
|
|
.if ${PPP_IPX} > 0
|
2000-09-26 20:55:24 +02:00
|
|
|
echo "#define IPX ${PPP_IPX}" >> ${.TARGET}
|
1997-12-16 19:28:07 +01:00
|
|
|
.endif
|
|
|
|
|
1997-08-21 12:17:29 +02:00
|
|
|
opt_ppp.h:
|
2000-09-26 20:55:24 +02:00
|
|
|
touch ${.TARGET}
|
1997-10-18 03:37:52 +02:00
|
|
|
.if ${PPP_BSDCOMP} > 0
|
2000-09-26 20:55:24 +02:00
|
|
|
echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
|
1997-10-18 03:37:52 +02:00
|
|
|
.endif
|
|
|
|
.if ${PPP_DEFLATE} > 0
|
2000-09-26 20:55:24 +02:00
|
|
|
echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
|
1997-10-18 03:37:52 +02:00
|
|
|
.endif
|
|
|
|
.if ${PPP_FILTER} > 0
|
2000-09-26 20:55:24 +02:00
|
|
|
echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
|
1997-10-18 03:37:52 +02:00
|
|
|
.endif
|
1997-08-21 12:17:29 +02:00
|
|
|
|
2000-09-26 20:55:24 +02:00
|
|
|
ppp.h:
|
|
|
|
echo "#define NPPP ${NPPP}" > ${.TARGET}
|
|
|
|
|
2000-05-27 03:14:33 +02:00
|
|
|
.include <bsd.kmod.mk>
|