freebsd-dev/sys/modules/if_ppp/Makefile
Jason Evans 0384fff8c5 Major update to the way synchronization is done in the kernel. Highlights
include:

* Mutual exclusion is used instead of spl*().  See mutex(9).  (Note: The
  alpha port is still in transition and currently uses both.)

* Per-CPU idle processes.

* Interrupts are run in their own separate kernel threads and can be
  preempted (i386 only).

Partially contributed by:	BSDi (BSD/OS)
Submissions by (at least):	cp, dfr, dillon, grog, jake, jhb, sheldonh
2000-09-07 01:33:02 +00:00

55 lines
1.1 KiB
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}/../../net
KMOD= if_ppp
SRCS= bus_if.h device_if.h if_ppp.c ppp_tty.c slcompress.c \
ppp.h opt_bus.h opt_inet.h opt_ipx.h opt_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
CFLAGS+= ${PROTOS}
.if ${PPP_BSDCOMP} > 0
SRCS+= bsd_comp.c
.endif
.if ${PPP_DEFLATE} > 0
SRCS+= ppp_deflate.c zlib.c
.endif
CLEANFILES= ppp.h
ppp.h:
echo "#define NPPP ${NPPP}" > ppp.h
opt_inet.h:
touch opt_inet.h
.if ${PPP_INET} > 0
echo "#define INET 1" > opt_inet.h
.endif
opt_ipx.h:
touch opt_ipx.h
.if ${PPP_IPX} > 0
echo "#define IPX ${PPP_IPX}" > opt_ipx.h
.endif
opt_ppp.h:
touch 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>