2000-04-09 21:07:39 +00:00
|
|
|
# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
KMOD= ng_mppc
|
|
|
|
SRCS= ng_mppc.c opt_netgraph.h
|
2000-05-04 17:54:37 +00:00
|
|
|
MAN4= ng_mppc.4
|
2000-04-09 21:07:39 +00:00
|
|
|
|
2000-04-12 19:56:16 +00:00
|
|
|
NETGRAPH_MPPC_COMPRESSION?= 0
|
|
|
|
NETGRAPH_MPPC_ENCRYPTION?= 1
|
2000-04-09 21:07:39 +00:00
|
|
|
|
|
|
|
.if ${NETGRAPH_MPPC_COMPRESSION} > 0
|
|
|
|
# XXX These files don't exist yet, but hopefully someday they will...
|
2000-04-10 22:22:18 +00:00
|
|
|
.PATH: ${.CURDIR}/../../../net
|
2000-04-12 19:56:16 +00:00
|
|
|
SRCS+= mppcc.c mppcd.c
|
2000-04-09 21:07:39 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
|
2000-04-10 22:22:18 +00:00
|
|
|
.PATH: ${.CURDIR}/../../../crypto
|
|
|
|
.PATH: ${.CURDIR}/../../../crypto/rc4
|
2000-04-12 19:56:16 +00:00
|
|
|
SRCS+= rc4.c sha1.c
|
2000-04-09 21:07:39 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
opt_netgraph.h:
|
|
|
|
touch ${.TARGET}
|
|
|
|
.if ${NETGRAPH_MPPC_COMPRESSION} > 0
|
|
|
|
echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
|
|
|
|
echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
2000-05-04 12:08:52 +00:00
|
|
|
.include "${.CURDIR}/../../../conf/kmod.mk"
|