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 21807a5caaSArchie Cobbsopt_netgraph.h: 22807a5caaSArchie Cobbs touch ${.TARGET} 23807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_COMPRESSION} > 0 24807a5caaSArchie Cobbs echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET} 25807a5caaSArchie Cobbs.endif 26807a5caaSArchie Cobbs.if ${NETGRAPH_MPPC_ENCRYPTION} > 0 27807a5caaSArchie Cobbs echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET} 28807a5caaSArchie Cobbs.endif 29807a5caaSArchie Cobbs 3064db83a8SPeter Wemm.include <bsd.kmod.mk> 31