freebsd-dev/sys/modules/cx/Makefile
Ruslan Ermilov 7206243f04 Mechanically tidy up the contents of CLEANFILES:M*.h: kmod.mk
automatically removes opt_*.h and if_*.h found in SRCS.
2004-09-01 07:12:24 +00:00

39 lines
740 B
Makefile

# Cronyx Id: sys.modules.cx.Makefile,v 1.1.2.2 2003/01/21 15:15:49 rik Exp $
# $FreeBSD$
.PATH: ${.CURDIR}/../../dev/cx
KMOD= if_cx
SRCS= if_cx.c cxddk.c csigma.c opt_netgraph.h opt_ng_cronyx.h bpf.h \
sppp.h device_if.h bus_if.h isa_if.h
NBPF?= 0
PROTOS?= -DINET
NG_CRONYX?= 0
NETGRAPH= ${NG_CRONYX}
CFLAGS+= ${PROTOS}
CLEANFILES+= bpf.h sppp.h
opt_netgraph.h:
echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h
opt_ng_cronyx.h:
.if ${NG_CRONYX} != 0
echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h
.else
echo "" > opt_ng_cronyx.h
.endif
sppp.h:
.if ${NG_CRONYX} == 0
echo "#define NSPPP 1" > sppp.h
.else
echo "#define NSPPP 0" > sppp.h
.endif
bpf.h:
echo "#define NBPF ${NBPF}" > bpf.h
.include <bsd.kmod.mk>