8ea22de129
configuring INET). Fixed most style bugs (mainly hard-coding of ${.TARGET}).
53 lines
1.0 KiB
Makefile
53 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../net
|
|
KMOD= if_ppp
|
|
SRCS= if_ppp.c ppp_tty.c slcompress.c \
|
|
opt_inet.h opt_ipx.h opt_ppp.h ppp.h vnode_if.h
|
|
NOMAN=
|
|
|
|
NPPP?= 2
|
|
PPP_BSDCOMP?= 1 # 0/1
|
|
PPP_DEFLATE?= 1 # 0/1
|
|
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
|
|
|
|
.if ${PPP_BSDCOMP} > 0
|
|
SRCS+= bsd_comp.c
|
|
.endif
|
|
.if ${PPP_DEFLATE} > 0
|
|
SRCS+= ppp_deflate.c zlib.c
|
|
.endif
|
|
|
|
CLEANFILES= ppp.h
|
|
|
|
opt_inet.h:
|
|
touch ${.TARGET}
|
|
.if ${PPP_INET} > 0
|
|
echo "#define INET 1" >> ${.TARGET}
|
|
.endif
|
|
|
|
opt_ipx.h:
|
|
touch ${.TARGET}
|
|
.if ${PPP_IPX} > 0
|
|
echo "#define IPX ${PPP_IPX}" >> ${.TARGET}
|
|
.endif
|
|
|
|
opt_ppp.h:
|
|
touch ${.TARGET}
|
|
.if ${PPP_BSDCOMP} > 0
|
|
echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
|
|
.endif
|
|
.if ${PPP_DEFLATE} > 0
|
|
echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
|
|
.endif
|
|
.if ${PPP_FILTER} > 0
|
|
echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
|
|
.endif
|
|
|
|
ppp.h:
|
|
echo "#define NPPP ${NPPP}" > ${.TARGET}
|
|
|
|
.include <bsd.kmod.mk>
|