1*86d7f5d3SJohn Marino# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $ 2*86d7f5d3SJohn Marino# $FreeBSD: src/sys/modules/netgraph/mppc/Makefile,v 1.3.2.4 2001/12/21 09:00:49 ru Exp $ 3*86d7f5d3SJohn Marino# $DragonFly: src/sys/netgraph/mppc/Makefile,v 1.3 2006/09/16 18:39:13 swildner Exp $ 4*86d7f5d3SJohn Marino 5*86d7f5d3SJohn MarinoKMOD= ng_mppc 6*86d7f5d3SJohn MarinoSRCS= ng_mppc.c opt_netgraph.h 7*86d7f5d3SJohn Marino 8*86d7f5d3SJohn MarinoNETGRAPH_MPPC_COMPRESSION?= 0 9*86d7f5d3SJohn MarinoNETGRAPH_MPPC_ENCRYPTION?= 1 10*86d7f5d3SJohn Marino 11*86d7f5d3SJohn Marino.if ${NETGRAPH_MPPC_COMPRESSION} > 0 12*86d7f5d3SJohn Marino# XXX These files don't exist yet, but hopefully someday they will... 13*86d7f5d3SJohn Marino.PATH: ${.CURDIR}/../../net 14*86d7f5d3SJohn MarinoSRCS+= mppcc.c mppcd.c 15*86d7f5d3SJohn Marino.endif 16*86d7f5d3SJohn Marino 17*86d7f5d3SJohn Marino.if ${NETGRAPH_MPPC_ENCRYPTION} > 0 18*86d7f5d3SJohn Marino.PATH: ${.CURDIR}/../../crypto 19*86d7f5d3SJohn Marino.PATH: ${.CURDIR}/../../crypto/rc4 20*86d7f5d3SJohn MarinoSRCS+= rc4.c sha1.c 21*86d7f5d3SJohn Marino.endif 22*86d7f5d3SJohn Marino 23*86d7f5d3SJohn Marinoopt_netgraph.h: 24*86d7f5d3SJohn Marino touch ${.TARGET} 25*86d7f5d3SJohn Marino.if ${NETGRAPH_MPPC_COMPRESSION} > 0 26*86d7f5d3SJohn Marino echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET} 27*86d7f5d3SJohn Marino.endif 28*86d7f5d3SJohn Marino.if ${NETGRAPH_MPPC_ENCRYPTION} > 0 29*86d7f5d3SJohn Marino echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET} 30*86d7f5d3SJohn Marino.endif 31*86d7f5d3SJohn Marino 32*86d7f5d3SJohn Marino.include <bsd.kmod.mk> 33