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