xref: /freebsd/sys/modules/netgraph/mppc/Makefile (revision ee5bb5a822a358f39f6d24f879787b743b24a364)
1807a5caaSArchie Cobbs# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
2807a5caaSArchie Cobbs# $FreeBSD$
3807a5caaSArchie Cobbs
4807a5caaSArchie CobbsKMOD=		ng_mppc
5807a5caaSArchie CobbsSRCS= 		ng_mppc.c opt_netgraph.h
6807a5caaSArchie CobbsMAN8=		ng_mppc.8
7807a5caaSArchie CobbsKMODDEPS=	netgraph
8807a5caaSArchie Cobbs
9ee5bb5a8SArchie CobbsNETGRAPH_MPPC_COMPRESSION?=	0
10ee5bb5a8SArchie CobbsNETGRAPH_MPPC_ENCRYPTION?=	1
11807a5caaSArchie Cobbs
12807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_COMPRESSION} > 0
13807a5caaSArchie Cobbs# XXX These files don't exist yet, but hopefully someday they will...
148e5b414eSArchie Cobbs.PATH:		${.CURDIR}/../../../net
15ee5bb5a8SArchie CobbsSRCS+=		mppcc.c mppcd.c
16807a5caaSArchie Cobbs.endif
17807a5caaSArchie Cobbs
18807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
198e5b414eSArchie Cobbs.PATH:		${.CURDIR}/../../../crypto
208e5b414eSArchie Cobbs.PATH:		${.CURDIR}/../../../crypto/rc4
21ee5bb5a8SArchie CobbsSRCS+=		rc4.c sha1.c
22807a5caaSArchie Cobbs.endif
23807a5caaSArchie Cobbs
24807a5caaSArchie Cobbsopt_netgraph.h:
25807a5caaSArchie Cobbs	touch ${.TARGET}
26807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_COMPRESSION} > 0
27807a5caaSArchie Cobbs	echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
28807a5caaSArchie Cobbs.endif
29807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
30807a5caaSArchie Cobbs	echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
31807a5caaSArchie Cobbs.endif
32807a5caaSArchie Cobbs
33807a5caaSArchie Cobbs.include <bsd.kmod.mk>
34