]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - sys/modules/netgraph/mppc/Makefile
MFC r301549, r301550:
[FreeBSD/stable/9.git] / sys / modules / netgraph / mppc / Makefile
1 # $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
2 # $FreeBSD$
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>