summaryrefslogtreecommitdiffstats
path: root/lkm
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-10-18 01:37:52 +0000
committerpeter <peter@FreeBSD.org>1997-10-18 01:37:52 +0000
commitddbef49e260a4f08195d37a5729f17048f620936 (patch)
treeb880d566a967b0bc78319082b5097f1d9ad0af6d /lkm
parent4630b2d34de28d8d4844e35079ca50945361f8e2 (diff)
downloadFreeBSD-src-ddbef49e260a4f08195d37a5729f17048f620936.zip
FreeBSD-src-ddbef49e260a4f08195d37a5729f17048f620936.tar.gz
Update Makefile to know about PPP_FILTER and fix the PPP_BSDCOMP and
PPP_DEFLATE options... The code uses #if defined(PPP_DEFLATE) etc, so the original method of "#define PPP_DEFLATE 0" did not actually disable anything. It was not possible to configure out bsdcomp or zlib compression. Also, join the settings for PPP_FILTER and NBPFILTER together since they are related here (can't have PPP_FILTER without NBPFILTER).
Diffstat (limited to 'lkm')
-rw-r--r--lkm/if_ppp/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/lkm/if_ppp/Makefile b/lkm/if_ppp/Makefile
index 33c8f1a..b29efdf 100644
--- a/lkm/if_ppp/Makefile
+++ b/lkm/if_ppp/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.6 1997/02/22 12:48:06 peter Exp $
+# $Id: Makefile,v 1.7 1997/08/21 10:17:29 jmg Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_ppp_mod
@@ -7,23 +7,30 @@ NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
-NBPFILTER?= 0
NPPP?= 2
-PPP_BSDCOMP?= 1
-PPP_DEFLATE?= 1
-PROTOS?= -DINET
+PPP_BSDCOMP?= 1 # 0/1
+PPP_DEFLATE?= 1 # 0/1
+PPP_FILTER?= 0 # 0/1 - requires bpf to be configured in kernel
+PROTOS?= -DINET # add -DIPX if you have IPX in the kernel
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h ppp.h opt_ppp.h
bpfilter.h:
- echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
+ echo "#define NBPFILTER ${PPP_FILTER}" > bpfilter.h
ppp.h:
echo "#define NPPP ${NPPP}" > ppp.h
opt_ppp.h:
+.if ${PPP_BSDCOMP} > 0
echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > opt_ppp.h
+.endif
+.if ${PPP_DEFLATE} > 0
echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> opt_ppp.h
+.endif
+.if ${PPP_FILTER} > 0
+ echo "#define PPP_FILTER ${PPP_FILTER}" >> opt_ppp.h
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud