summaryrefslogtreecommitdiff
path: root/sys/modules/cx/Makefile
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2005-10-14 23:30:17 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2005-10-14 23:30:17 +0000
commit822923447e454b30d310cb46903c9ddeca9f0a7a (patch)
tree40653d874a438a3202bb62dd66566bfd5b1386c1 /sys/modules/cx/Makefile
parent10d645b7e5a073fc2d4c2bd7472966b4381caf7c (diff)
Notes
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 ce9932c1e0c1..0716f9055b93 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>