1 # $FreeBSD: releng/5.4/sys/modules/if_ppp/Makefile 101588 2002-08-09 15:30:48Z brooks $
2
3 .PATH: ${.CURDIR}/../../net
4
5 KMOD= if_ppp
6 SRCS= if_ppp.c ppp_tty.c slcompress.c \
7 opt_inet.h opt_ipx.h opt_mac.h opt_ppp.h vnode_if.h
8
9 PPP_BSDCOMP?= 1 # 0/1
10 PPP_DEFLATE?= 1 # 0/1
11 PPP_FILTER?= 1 # 0/1 - requires bpf to be configured in kernel
12 PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel
13 PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel
14
15 .if ${PPP_BSDCOMP} > 0
16 SRCS+= bsd_comp.c
17 .endif
18 .if ${PPP_DEFLATE} > 0
19 SRCS+= ppp_deflate.c zlib.c
20 .endif
21
22 CLEANFILES= ppp.h
23
24 .if ${PPP_INET} > 0
25 opt_inet.h:
26 echo "#define INET 1" >> ${.TARGET}
27 .endif
28
29 .if ${PPP_IPX} > 0
30 opt_ipx.h:
31 echo "#define IPX ${PPP_IPX}" >> ${.TARGET}
32 .endif
33
34 opt_ppp.h:
35 touch ${.TARGET}
36 .if ${PPP_BSDCOMP} > 0
37 echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
38 .endif
39 .if ${PPP_DEFLATE} > 0
40 echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
41 .endif
42 .if ${PPP_FILTER} > 0
43 echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
44 .endif
45
46 .include <bsd.kmod.mk>
Cache object: 5953ba048a5d10c117e3e741c903f84e
|