Merge branch 'vendor/OPENSSL'
[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_ipx.h opt_ppp.h
7
8 NPPP?=          2
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=     use_ppp.h
23
24 use_ppp.h:
25         echo "#define NPPP ${NPPP}" > ${.TARGET}
26
27 opt_inet.h:
28         touch opt_inet.h
29 .if ${PPP_INET} > 0
30         echo "#define INET 1" > ${.TARGET}
31 .endif
32
33 opt_ipx.h:
34         touch opt_ipx.h
35 .if ${PPP_IPX} > 0
36         echo "#define IPX ${PPP_IPX}" > ${.TARGET}
37 .endif
38
39 opt_ppp.h:
40         touch ${.TARGET}
41 .if ${PPP_BSDCOMP} > 0
42         echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > ${.TARGET}
43 .endif
44 .if ${PPP_DEFLATE} > 0
45         echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
46 .endif
47 .if ${PPP_FILTER} > 0
48         echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
49 .endif
50
51 .include <bsd.kmod.mk>