xref: /freebsd/sys/modules/netgraph/mppc/Makefile (revision 8b3ae668b13db776ced151f20e9ad3d23eca545d)
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 Cobbs
7ee5bb5a8SArchie CobbsNETGRAPH_MPPC_COMPRESSION?=	0
8ee5bb5a8SArchie CobbsNETGRAPH_MPPC_ENCRYPTION?=	1
9807a5caaSArchie Cobbs
10807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_COMPRESSION} > 0
11807a5caaSArchie Cobbs# XXX These files don't exist yet, but hopefully someday they will...
128e5b414eSArchie Cobbs.PATH: ${.CURDIR}/../../../net
13ee5bb5a8SArchie CobbsSRCS+=	mppcc.c mppcd.c
14807a5caaSArchie Cobbs.endif
15807a5caaSArchie Cobbs
16807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
178e5b414eSArchie Cobbs.PATH: ${.CURDIR}/../../../crypto
18233896e9SDoug AmbriskoSRCS+= sha1.c
19807a5caaSArchie Cobbs.endif
20807a5caaSArchie Cobbs
2182292344SYaroslav Tykhiy.if !defined(KERNBUILDDIR)
22807a5caaSArchie Cobbsopt_netgraph.h:
238b3ae668SDag-Erling Smørgrav	:> ${.TARGET}
24807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_COMPRESSION} > 0
25807a5caaSArchie Cobbs	echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
26807a5caaSArchie Cobbs.endif
27807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
28807a5caaSArchie Cobbs	echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
29807a5caaSArchie Cobbs.endif
3082292344SYaroslav Tykhiy.endif
31807a5caaSArchie Cobbs
3264db83a8SPeter Wemm.include <bsd.kmod.mk>
33