Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / net / ppp_layer / Makefile
CommitLineData
984263bc
MD
1# $FreeBSD: src/sys/modules/if_ppp/Makefile,v 1.21 1999/11/28 18:52:51 bde Exp $
2
3.PATH: ${.CURDIR}/../../net
4KMOD= if_ppp
5SRCS= if_ppp.c ppp_tty.c slcompress.c \
6 ppp.h opt_inet.h opt_ipx.h opt_ppp.h vnode_if.h
7NOMAN=
8
9NPPP?= 2
10PPP_BSDCOMP?= 1 # 0/1
11PPP_DEFLATE?= 1 # 0/1
12PPP_FILTER?= 1 # 0/1 - requires bpf to be configured in kernel
13PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel
14PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel
15
16CFLAGS+= ${PROTOS}
17
18.if ${PPP_BSDCOMP} > 0
19SRCS+= bsd_comp.c
20.endif
21.if ${PPP_DEFLATE} > 0
22SRCS+= ppp_deflate.c zlib.c
23.endif
24
25CLEANFILES= ppp.h
26
27ppp.h:
28 echo "#define NPPP ${NPPP}" > ppp.h
29
30opt_inet.h:
31 touch opt_inet.h
32.if ${PPP_INET} > 0
33 echo "#define INET 1" > opt_inet.h
34.endif
35
36opt_ipx.h:
37 touch opt_ipx.h
38.if ${PPP_IPX} > 0
39 echo "#define IPX ${PPP_IPX}" > opt_ipx.h
40.endif
41
42opt_ppp.h:
43 touch opt_ppp.h
44.if ${PPP_BSDCOMP} > 0
45 echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > opt_ppp.h
46.endif
47.if ${PPP_DEFLATE} > 0
48 echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> opt_ppp.h
49.endif
50.if ${PPP_FILTER} > 0
51 echo "#define PPP_FILTER ${PPP_FILTER}" >> opt_ppp.h
52.endif
53
54.include <bsd.kmod.mk>