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
|
|
|
|
KMOD= if_ppp
|
2000-09-26 18:09:02 +00:00
|
|
|
SRCS= if_ppp.c ppp_tty.c slcompress.c \
|
|
|
|
ppp.h opt_inet.h opt_ipx.h opt_ppp.h vnode_if.h
|
1995-03-20 19:25:49 +00:00
|
|
|
NOMAN=
|
|
|
|
|
|
|
|
NPPP?= 2
|
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
|
|
|
|
|
|
|
CFLAGS+= ${PROTOS}
|
1998-03-27 04:05:08 +00:00
|
|
|
|
|
|
|
.if ${PPP_BSDCOMP} > 0
|
|
|
|
SRCS+= bsd_comp.c
|
|
|
|
.endif
|
|
|
|
.if ${PPP_DEFLATE} > 0
|
|
|
|
SRCS+= ppp_deflate.c zlib.c
|
|
|
|
.endif
|
|
|
|
|
1999-11-28 18:53:47 +00:00
|
|
|
CLEANFILES= ppp.h
|
1995-03-20 19:25:49 +00:00
|
|
|
|
|
|
|
ppp.h:
|
|
|
|
echo "#define NPPP ${NPPP}" > ppp.h
|
|
|
|
|
1998-01-08 23:50:27 +00:00
|
|
|
opt_inet.h:
|
|
|
|
touch opt_inet.h
|
|
|
|
.if ${PPP_INET} > 0
|
1998-01-09 01:01:21 +00:00
|
|
|
echo "#define INET 1" > opt_inet.h
|
1998-01-08 23:50:27 +00:00
|
|
|
.endif
|
|
|
|
|
1997-12-16 18:28:07 +00:00
|
|
|
opt_ipx.h:
|
|
|
|
touch opt_ipx.h
|
|
|
|
.if ${PPP_IPX} > 0
|
1997-12-16 22:50:18 +00:00
|
|
|
echo "#define IPX ${PPP_IPX}" > opt_ipx.h
|
1997-12-16 18:28:07 +00:00
|
|
|
.endif
|
|
|
|
|
1997-08-21 10:17:29 +00:00
|
|
|
opt_ppp.h:
|
1997-12-16 18:28:07 +00:00
|
|
|
touch opt_ppp.h
|
1997-10-18 01:37:52 +00:00
|
|
|
.if ${PPP_BSDCOMP} > 0
|
1997-08-21 10:17:29 +00:00
|
|
|
echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > opt_ppp.h
|
1997-10-18 01:37:52 +00:00
|
|
|
.endif
|
|
|
|
.if ${PPP_DEFLATE} > 0
|
1997-08-21 10:17:29 +00:00
|
|
|
echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> opt_ppp.h
|
1997-10-18 01:37:52 +00:00
|
|
|
.endif
|
|
|
|
.if ${PPP_FILTER} > 0
|
|
|
|
echo "#define PPP_FILTER ${PPP_FILTER}" >> opt_ppp.h
|
|
|
|
.endif
|
1997-08-21 10:17:29 +00:00
|
|
|
|
2000-05-27 01:14:33 +00:00
|
|
|
.include <bsd.kmod.mk>
|