6f6358c712b57b6a8dc73f8e068c33647b99b004
[dragonfly.git] / sys / net / ppp_layer / Makefile
1 # $FreeBSD: src/sys/modules/if_ppp/Makefile,v 1.21 1999/11/28 18:52:51 bde Exp $
2
3 .PATH:  ${.CURDIR}/../ppp ${.CURDIR}/..
4 KMOD=   if_ppp
5 SRCS=   if_ppp.c ppp_tty.c slcompress.c \
6         use_ppp.h opt_inet.h opt_ppp.h
7
8 NPPP?=          4
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
14 .if ${PPP_BSDCOMP} > 0
15 SRCS+=  bsd_comp.c
16 .endif
17 .if ${PPP_DEFLATE} > 0
18 SRCS+=  ppp_deflate.c zlib.c
19 .endif
20
21 use_ppp.h:
22         echo "#define NPPP ${NPPP}" > ${.TARGET}
23
24 opt_inet.h:
25         touch opt_inet.h
26 .if ${PPP_INET} > 0
27         echo "#define INET 1" > ${.TARGET}
28 .endif
29
30 opt_ppp.h:
31         touch ${.TARGET}
32 .if ${PPP_BSDCOMP} > 0
33         echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > ${.TARGET}
34 .endif
35 .if ${PPP_DEFLATE} > 0
36         echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
37 .endif
38 .if ${PPP_FILTER} > 0
39         echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
40 .endif
41
42 .include <bsd.kmod.mk>