summaryrefslogtreecommitdiffstats
path: root/sys/modules/cx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/cx/Makefile')
-rw-r--r--sys/modules/cx/Makefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/sys/modules/cx/Makefile b/sys/modules/cx/Makefile
index ce9932c..0716f90 100644
--- a/sys/modules/cx/Makefile
+++ b/sys/modules/cx/Makefile
@@ -3,36 +3,25 @@
.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
+SRCS= if_cx.c cxddk.c csigma.c opt_netgraph.h opt_ng_cronyx.h \
+ device_if.h bus_if.h isa_if.h
-NBPF?= 0
+.if !defined(KERNBUILDDIR)
PROTOS?= -DINET
NG_CRONYX?= 0
NETGRAPH= ${NG_CRONYX}
-
CFLAGS+= ${PROTOS}
-CLEANFILES+= bpf.h sppp.h
+.if ${NETGRAPH} != 0
opt_netgraph.h:
echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h
+.endif
-opt_ng_cronyx.h:
.if ${NG_CRONYX} != 0
+opt_ng_cronyx.h:
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>
OpenPOWER on IntegriCloud