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