1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../net
4 KMOD= if_ppp
5 SRCS= if_ppp.c ppp_tty.c slcompress.c \
6 bpfilter.h ppp.h opt_inet.h opt_ipx.h opt_ppp.h vnode_if.h
7 NOMAN=
8 CLEANFILES+= vnode_if.c vnode_if.h
9
10 NPPP?= 2
11 PPP_BSDCOMP?= 1 # 0/1
12 PPP_DEFLATE?= 1 # 0/1
13 PPP_FILTER?= 0 # 0/1 - requires bpf to be configured in kernel
14 PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel
15 PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel
16
17 CFLAGS+= ${PROTOS}
18
19 .if ${PPP_BSDCOMP} > 0
20 SRCS+= bsd_comp.c
21 .endif
22 .if ${PPP_DEFLATE} > 0
23 SRCS+= ppp_deflate.c zlib.c
24 .endif
25
26 CLEANFILES+= bpfilter.h opt_inet.h opt_ipx.h opt_ppp.h ppp.h
27
28 bpfilter.h:
29 echo "#define NBPFILTER ${PPP_FILTER}" > bpfilter.h
30
31 ppp.h:
32 echo "#define NPPP ${NPPP}" > ppp.h
33
34 opt_inet.h:
35 touch opt_inet.h
36 .if ${PPP_INET} > 0
37 echo "#define INET 1" > opt_inet.h
38 .endif
39
40 opt_ipx.h:
41 touch opt_ipx.h
42 .if ${PPP_IPX} > 0
43 echo "#define IPX ${PPP_IPX}" > opt_ipx.h
44 .endif
45
46 opt_ppp.h:
47 touch opt_ppp.h
48 .if ${PPP_BSDCOMP} > 0
49 echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > opt_ppp.h
50 .endif
51 .if ${PPP_DEFLATE} > 0
52 echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> opt_ppp.h
53 .endif
54 .if ${PPP_FILTER} > 0
55 echo "#define PPP_FILTER ${PPP_FILTER}" >> opt_ppp.h
56 .endif
57
58 .include <bsd.kmod.mk>
Cache object: ced00f126fea72342ddeba3f8da02209
|