summaryrefslogtreecommitdiffstats
path: root/sys/modules/if_ppp
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1998-01-08 23:50:27 +0000
committereivind <eivind@FreeBSD.org>1998-01-08 23:50:27 +0000
commitd0bda339f4e7c39f2e5ef86d6bec50b670000c20 (patch)
tree5ec27de9851870650c7b5b768b59150f7f578e9d /sys/modules/if_ppp
parentb4fb282bcf051f473e169c96839ab02b41327baf (diff)
downloadFreeBSD-src-d0bda339f4e7c39f2e5ef86d6bec50b670000c20.zip
FreeBSD-src-d0bda339f4e7c39f2e5ef86d6bec50b670000c20.tar.gz
Make the LKMs compile with the INET option as a newstyle option in
opt_inet.h.
Diffstat (limited to 'sys/modules/if_ppp')
-rw-r--r--sys/modules/if_ppp/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/modules/if_ppp/Makefile b/sys/modules/if_ppp/Makefile
index 03dcd05..4a49e1d 100644
--- a/sys/modules/if_ppp/Makefile
+++ b/sys/modules/if_ppp/Makefile
@@ -1,9 +1,9 @@
-# $Id: Makefile,v 1.9 1997/12/16 18:28:07 eivind Exp $
+# $Id: Makefile,v 1.10 1997/12/16 22:50:18 eivind Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_ppp_mod
SRCS= bsd_comp.c if_ppp.c ppp_tty.c slcompress.c bpfilter.h ppp.h \
- opt_ipx.h opt_ppp.h
+ opt_inet.h opt_ipx.h opt_ppp.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
@@ -12,11 +12,12 @@ NPPP?= 2
PPP_BSDCOMP?= 1 # 0/1
PPP_DEFLATE?= 1 # 0/1
PPP_FILTER?= 0 # 0/1 - requires bpf to be configured in kernel
+PPP_INET?= 1 # 0/1 - requires INET to be configured in kernel
PPP_IPX?= 0 # 0/1 - requires IPX to be configured in kernel
PROTOS?= -DINET # add -DIPX if you have IPX in the kernel
CFLAGS+= ${PROTOS}
-CLEANFILES+= bpfilter.h ppp.h opt_ipx.h opt_ppp.h
+CLEANFILES+= bpfilter.h opt_inet.h opt_ipx.h opt_ppp.h ppp.h
bpfilter.h:
echo "#define NBPFILTER ${PPP_FILTER}" > bpfilter.h
@@ -24,6 +25,12 @@ bpfilter.h:
ppp.h:
echo "#define NPPP ${NPPP}" > ppp.h
+opt_inet.h:
+ touch opt_inet.h
+.if ${PPP_INET} > 0
+ echo "#define IPX ${PPP_INET}" > opt_inet.h
+.endif
+
opt_ipx.h:
touch opt_ipx.h
.if ${PPP_IPX} > 0
OpenPOWER on IntegriCloud