1 # $FreeBSD: src/sys/modules/if_ppp/Makefile,v 1.21 1999/11/28 18:52:51 bde Exp $
2 # $DragonFly: src/sys/net/ppp_layer/Makefile,v 1.5 2004/08/13 17:51:09 dillon Exp $
4 .PATH: ${.CURDIR}/../ppp ${.CURDIR}/..
6 SRCS= if_ppp.c ppp_tty.c slcompress.c \
7 use_ppp.h opt_inet.h opt_ipx.h opt_ppp.h
12 PPP_FILTER?= 1 # 0/1 - requires bpf to be configured in kernel
13 PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel
14 PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel
18 .if ${PPP_BSDCOMP} > 0
21 .if ${PPP_DEFLATE} > 0
22 SRCS+= ppp_deflate.c zlib.c
28 echo "#define NPPP ${NPPP}" > use_ppp.h
33 echo "#define INET 1" > opt_inet.h
39 echo "#define IPX ${PPP_IPX}" > opt_ipx.h
44 .if ${PPP_BSDCOMP} > 0
45 echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > opt_ppp.h
47 .if ${PPP_DEFLATE} > 0
48 echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> opt_ppp.h
51 echo "#define PPP_FILTER ${PPP_FILTER}" >> opt_ppp.h
54 .include <bsd.kmod.mk>