1 # $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
2 # $FreeBSD: releng/5.0/sys/modules/netgraph/mppc/Makefile 89260 2002-01-11 15:49:02Z ru $
3
4 KMOD= ng_mppc
5 SRCS= ng_mppc.c opt_netgraph.h
6
7 NETGRAPH_MPPC_COMPRESSION?= 0
8 NETGRAPH_MPPC_ENCRYPTION?= 1
9
10 .if ${NETGRAPH_MPPC_COMPRESSION} > 0
11 # XXX These files don't exist yet, but hopefully someday they will...
12 .PATH: ${.CURDIR}/../../../net
13 SRCS+= mppcc.c mppcd.c
14 .endif
15
16 .if ${NETGRAPH_MPPC_ENCRYPTION} > 0
17 .PATH: ${.CURDIR}/../../../crypto
18 .PATH: ${.CURDIR}/../../../crypto/rc4
19 SRCS+= rc4.c sha1.c
20 .endif
21
22 opt_netgraph.h:
23 touch ${.TARGET}
24 .if ${NETGRAPH_MPPC_COMPRESSION} > 0
25 echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
26 .endif
27 .if ${NETGRAPH_MPPC_ENCRYPTION} > 0
28 echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
29 .endif
30
31 .include <bsd.kmod.mk>
Cache object: a3dd665ee8a1891593b88574138fbe53
|