summaryrefslogtreecommitdiffstats
path: root/sys/modules/if_ppp
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-09-26 18:55:24 +0000
committerbde <bde@FreeBSD.org>2000-09-26 18:55:24 +0000
commit0ccb8b64f8f326903faee2b7fd10374cfd422edf (patch)
tree52fda0f30acdf6899193c9eff111fad1d58ede40 /sys/modules/if_ppp
parent3cf88c5b0d98a827bdb0fd5e89960fcd48fa31fd (diff)
downloadFreeBSD-src-0ccb8b64f8f326903faee2b7fd10374cfd422edf.zip
FreeBSD-src-0ccb8b64f8f326903faee2b7fd10374cfd422edf.tar.gz
Removed garbage (CFLAGS+= ${PROTOS} was a vestige of an old way of
configuring INET). Fixed most style bugs (mainly hard-coding of ${.TARGET}).
Diffstat (limited to 'sys/modules/if_ppp')
-rw-r--r--sys/modules/if_ppp/Makefile28
1 files changed, 13 insertions, 15 deletions
diff --git a/sys/modules/if_ppp/Makefile b/sys/modules/if_ppp/Makefile
index 3e6c9a5..3884226 100644
--- a/sys/modules/if_ppp/Makefile
+++ b/sys/modules/if_ppp/Makefile
@@ -1,9 +1,9 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../net
-KMOD= if_ppp
+KMOD= if_ppp
SRCS= if_ppp.c ppp_tty.c slcompress.c \
- ppp.h opt_inet.h opt_ipx.h opt_ppp.h vnode_if.h
+ opt_inet.h opt_ipx.h opt_ppp.h ppp.h vnode_if.h
NOMAN=
NPPP?= 2
@@ -13,8 +13,6 @@ PPP_FILTER?= 1 # 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
-CFLAGS+= ${PROTOS}
-
.if ${PPP_BSDCOMP} > 0
SRCS+= bsd_comp.c
.endif
@@ -24,31 +22,31 @@ SRCS+= ppp_deflate.c zlib.c
CLEANFILES= ppp.h
-ppp.h:
- echo "#define NPPP ${NPPP}" > ppp.h
-
opt_inet.h:
- touch opt_inet.h
+ touch ${.TARGET}
.if ${PPP_INET} > 0
- echo "#define INET 1" > opt_inet.h
+ echo "#define INET 1" >> ${.TARGET}
.endif
opt_ipx.h:
- touch opt_ipx.h
+ touch ${.TARGET}
.if ${PPP_IPX} > 0
- echo "#define IPX ${PPP_IPX}" > opt_ipx.h
+ echo "#define IPX ${PPP_IPX}" >> ${.TARGET}
.endif
opt_ppp.h:
- touch opt_ppp.h
+ touch ${.TARGET}
.if ${PPP_BSDCOMP} > 0
- echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" > opt_ppp.h
+ echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
.endif
.if ${PPP_DEFLATE} > 0
- echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> opt_ppp.h
+ echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
.endif
.if ${PPP_FILTER} > 0
- echo "#define PPP_FILTER ${PPP_FILTER}" >> opt_ppp.h
+ echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
.endif
+ppp.h:
+ echo "#define NPPP ${NPPP}" > ${.TARGET}
+
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud