1 # $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
2 # $FreeBSD: releng/10.4/sys/modules/netgraph/mppc/Makefile 302061 2016-06-21 15:47:54Z pfg $
3
4 KMOD= ng_mppc
5 SRCS= ng_mppc.c opt_netgraph.h
6
7 NETGRAPH_MPPC_COMPRESSION?= 1
8 NETGRAPH_MPPC_ENCRYPTION?= 1
9
10 .if ${NETGRAPH_MPPC_COMPRESSION} > 0
11 .PATH: ${.CURDIR}/../../../net
12 SRCS+= mppcc.c mppcd.c
13 .endif
14
15 .if ${NETGRAPH_MPPC_ENCRYPTION} > 0
16 .PATH: ${.CURDIR}/../../../crypto
17 SRCS+= sha1.c
18 .endif
19
20 .if !defined(KERNBUILDDIR)
21 opt_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>
Cache object: 0d690d43340191b971ecdb6b5254f163
|