1# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $ 2# $FreeBSD$ 3 4# Determine which of compression and encryption to support 5# 6NETGRAPH_MPPC_COMPRESSION?= 0 7.if !defined(NETGRAPH_MPPC_ENCRYPTION) 8.if defined(NOCRYPT) 9NETGRAPH_MPPC_ENCRYPTION= 0 10.else 11NETGRAPH_MPPC_ENCRYPTION= 1 12.endif 13.endif 14 15# No point in building module if neither is enabled 16# 17.if ${NETGRAPH_MPPC_COMPRESSION} == 0 && ${NETGRAPH_MPPC_ENCRYPTION} == 0 18all depend distribute install load unload: 19 @echo '>>>' Neither compression nor encryption enabled, skipping KLD netgraph/mppc. 20.else 21 22KMOD= ng_mppc 23SRCS= ng_mppc.c opt_netgraph.h 24MAN8= ng_mppc.8 25KMODDEPS= netgraph 26 27CFLAGS+= ${PROTOS} 28 29CLEANFILES+= opt_netgraph.h 30 31.if ${NETGRAPH_MPPC_COMPRESSION} > 0 32# XXX These files don't exist yet, but hopefully someday they will... 33SRCS+= mppcc.c mppcd.c 34.PATH: ${.CURDIR}/../../../net 35.endif 36 37.if ${NETGRAPH_MPPC_ENCRYPTION} > 0 38SRCS+= rc4.c sha1.c 39.PATH: ${.CURDIR}/../../../crypto 40.PATH: ${.CURDIR}/../../../crypto/rc4 41.endif 42 43opt_netgraph.h: 44 touch ${.TARGET} 45.if ${NETGRAPH_MPPC_COMPRESSION} > 0 46 echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET} 47.endif 48.if ${NETGRAPH_MPPC_ENCRYPTION} > 0 49 echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET} 50.endif 51 52.include <bsd.kmod.mk> 53.endif 54