193d9e768b
This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon
32 lines
650 B
Makefile
32 lines
650 B
Makefile
# $Whistle: Makefile,v 1.1 1999/12/08 20:20:39 archie Exp $
|
|
# $FreeBSD$
|
|
|
|
KMOD= ng_mppc
|
|
SRCS= ng_mppc.c opt_netgraph.h
|
|
|
|
NETGRAPH_MPPC_COMPRESSION?= 1
|
|
NETGRAPH_MPPC_ENCRYPTION?= 1
|
|
|
|
.if ${NETGRAPH_MPPC_COMPRESSION} > 0
|
|
.PATH: ${SRCTOP}/sys/net
|
|
SRCS+= mppcc.c mppcd.c
|
|
.endif
|
|
|
|
.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
|
|
.PATH: ${SRCTOP}/sys/crypto
|
|
SRCS+= sha1.c
|
|
.endif
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_netgraph.h:
|
|
:> ${.TARGET}
|
|
.if ${NETGRAPH_MPPC_COMPRESSION} > 0
|
|
echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
|
|
.endif
|
|
.if ${NETGRAPH_MPPC_ENCRYPTION} > 0
|
|
echo "#define NETGRAPH_MPPC_ENCRYPTION 1" >> ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|