xref: /freebsd/sys/modules/netgraph/mppc/Makefile (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
2# $FreeBSD$
3
4KMOD=	ng_mppc
5SRCS= 	ng_mppc.c opt_netgraph.h
6
7NETGRAPH_MPPC_COMPRESSION?=	1
8NETGRAPH_MPPC_ENCRYPTION?=	1
9
10.if ${NETGRAPH_MPPC_COMPRESSION} > 0
11.PATH: ${SRCTOP}/sys/net
12SRCS+=	mppcc.c mppcd.c
13.endif
14
15.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
16.PATH: ${SRCTOP}/sys/crypto
17SRCS+= sha1.c
18.endif
19
20.if !defined(KERNBUILDDIR)
21opt_netgraph.h:
22	:> ${.TARGET}
23.if ${NETGRAPH_MPPC_COMPRESSION} > 0
24	echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
25.endif
26.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
27	echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
28.endif
29.endif
30
31.include <bsd.kmod.mk>
32