1# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
2# $FreeBSD$
3
4KMOD=		ng_mppc
5SRCS= 		ng_mppc.c opt_netgraph.h
6MAN8=		ng_mppc.8
7KMODDEPS=	netgraph
8
9NETGRAPH_MPPC_COMPRESSION?=	0
10NETGRAPH_MPPC_ENCRYPTION?=	1
11
12CFLAGS+=	${PROTOS}
13
14CLEANFILES+=	opt_netgraph.h
15
16.if ${NETGRAPH_MPPC_COMPRESSION} > 0
17# XXX These files don't exist yet, but hopefully someday they will...
18SRCS+=		mppcc.c mppcd.c
19.endif
20
21.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
22SRCS+=		rc4.c sha1.c
23.endif
24
25opt_netgraph.h:
26	touch ${.TARGET}
27.if ${NETGRAPH_MPPC_COMPRESSION} > 0
28	echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
29.endif
30.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
31	echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
32.endif
33
34.PATH:		${.CURDIR}/../../../net
35.PATH:		${.CURDIR}/../../../crypto
36.PATH:		${.CURDIR}/../../../crypto/rc4
37
38.include <bsd.kmod.mk>
39