]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/modules/if_ppp/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.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_inet6.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 .if defined(NO_INET6)
14 PPP_INET6?=     0       # 0/1 - requires INET6 to be configured in kernel
15 .else
16 PPP_INET6?=     1       # 0/1 - requires INET6 to be configured in kernel
17 .endif
18 PPP_IPX?=       0       # 0/1 - requires IPX to be configured in kernel
19
20 .if ${PPP_BSDCOMP} > 0
21 SRCS+=  bsd_comp.c
22 .endif
23 .if ${PPP_DEFLATE} > 0
24 SRCS+=  ppp_deflate.c
25 .endif
26
27 .if !defined(KERNBUILDDIR)
28 .if ${PPP_INET} > 0
29 opt_inet.h:
30         echo "#define INET 1" > ${.TARGET}
31 .endif
32
33 .if ${PPP_INET6} > 0
34 opt_inet6.h:
35         echo "#define INET6 1" > ${.TARGET}
36 .endif
37
38 .if ${PPP_IPX} > 0
39 opt_ipx.h:
40         echo "#define IPX ${PPP_IPX}" > ${.TARGET}
41 .endif
42
43 opt_ppp.h:
44         :> ${.TARGET}
45 .if ${PPP_BSDCOMP} > 0
46         echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
47 .endif
48 .if ${PPP_DEFLATE} > 0
49         echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
50 .endif
51 .if ${PPP_FILTER} > 0
52         echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
53 .endif
54 .endif
55
56 .include <bsd.kmod.mk>