]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/if_ppp/Makefile
This commit was generated by cvs2svn to compensate for changes in r159063,
[FreeBSD/FreeBSD.git] / sys / modules / if_ppp / Makefile
1 # $FreeBSD$
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
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
20 .endif
21
22 .if !defined(KERNBUILDDIR)
23 .if ${PPP_INET} > 0
24 opt_inet.h:
25         echo "#define INET 1" >> ${.TARGET}
26 .endif
27
28 .if ${PPP_IPX} > 0
29 opt_ipx.h:
30         echo "#define IPX ${PPP_IPX}" >> ${.TARGET}
31 .endif
32
33 opt_ppp.h:
34         touch ${.TARGET}
35 .if ${PPP_BSDCOMP} > 0
36         echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
37 .endif
38 .if ${PPP_DEFLATE} > 0
39         echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
40 .endif
41 .if ${PPP_FILTER} > 0
42         echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
43 .endif
44 .endif
45
46 .include <bsd.kmod.mk>