amd64 port: mainly on the pmap headers, identify_cpu and initcpu
[dragonfly/port-amd64.git] / sys / netgraph / mppc / Makefile
blobc9f06eb3e3110f98b8847aadf9ed370b6b78f18d
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
7 KMODDEPS= netgraph
9 NETGRAPH_MPPC_COMPRESSION?= 0
10 NETGRAPH_MPPC_ENCRYPTION?= 1
12 .if ${NETGRAPH_MPPC_COMPRESSION} > 0
13 # XXX These files don't exist yet, but hopefully someday they will...
14 .PATH: ${.CURDIR}/../../net
15 SRCS+= mppcc.c mppcd.c
16 .endif
18 .if ${NETGRAPH_MPPC_ENCRYPTION} > 0
19 .PATH: ${.CURDIR}/../../crypto
20 .PATH: ${.CURDIR}/../../crypto/rc4
21 SRCS+= rc4.c sha1.c
22 .endif
24 opt_netgraph.h:
25 touch ${.TARGET}
26 .if ${NETGRAPH_MPPC_COMPRESSION} > 0
27 echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
28 .endif
29 .if ${NETGRAPH_MPPC_ENCRYPTION} > 0
30 echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
31 .endif
33 .include <bsd.kmod.mk>