kernel - Fix auto port assignment collision in network code
[dragonfly.git] / sys / netgraph / mppc / Makefile
blob7647cadbc7b856f7a37bd32753a2b5c1c54a3a02
1 # $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
2 # $FreeBSD: src/sys/modules/netgraph/mppc/Makefile,v 1.3.2.4 2001/12/21 09:00:49 ru Exp $
3 # $DragonFly: src/sys/netgraph/mppc/Makefile,v 1.3 2006/09/16 18:39:13 swildner Exp $
5 KMOD= ng_mppc
6 SRCS= ng_mppc.c opt_netgraph.h
8 NETGRAPH_MPPC_COMPRESSION?= 0
9 NETGRAPH_MPPC_ENCRYPTION?= 1
11 .if ${NETGRAPH_MPPC_COMPRESSION} > 0
12 # XXX These files don't exist yet, but hopefully someday they will...
13 .PATH: ${.CURDIR}/../../net
14 SRCS+= mppcc.c mppcd.c
15 .endif
17 .if ${NETGRAPH_MPPC_ENCRYPTION} > 0
18 .PATH: ${.CURDIR}/../../crypto
19 .PATH: ${.CURDIR}/../../crypto/rc4
20 SRCS+= rc4.c sha1.c
21 .endif
23 opt_netgraph.h:
24 touch ${.TARGET}
25 .if ${NETGRAPH_MPPC_COMPRESSION} > 0
26 echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
27 .endif
28 .if ${NETGRAPH_MPPC_ENCRYPTION} > 0
29 echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
30 .endif
32 .include <bsd.kmod.mk>