Remove some CLEANFILES in kernel module Makefiles.
[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 use_ppp.h:
23         echo "#define NPPP ${NPPP}" > ${.TARGET}
24
25 opt_inet.h:
26         touch opt_inet.h
27 .if ${PPP_INET} > 0
28         echo "#define INET 1" > ${.TARGET}
29 .endif
30
31 opt_ipx.h:
32         touch opt_ipx.h
33 .if ${PPP_IPX} > 0
34         echo "#define IPX ${PPP_IPX}" > ${.TARGET}
35 .endif
36
37 opt_ppp.h:
38         touch ${.TARGET}
39 .if ${PPP_BSDCOMP} > 0
40         echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > ${.TARGET}
41 .endif
42 .if ${PPP_DEFLATE} > 0
43         echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
44 .endif
45 .if ${PPP_FILTER} > 0
46         echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
47 .endif
48
49 .include <bsd.kmod.mk>