1# Cronyx Id: sys.modules.cx.Makefile,v 1.1.2.2 2003/01/21 15:15:49 rik Exp $
| 1# Cronyx Id: sys.modules.cx.Makefile,v 1.1.2.2 2003/01/21 15:15:49 rik Exp $
|
2# $FreeBSD: head/sys/modules/cx/Makefile 134593 2004-09-01 07:12:24Z ru $
| 2# $FreeBSD: head/sys/modules/cx/Makefile 151350 2005-10-14 23:30:17Z yar $
|
3 4.PATH: ${.CURDIR}/../../dev/cx 5KMOD= if_cx
| 3 4.PATH: ${.CURDIR}/../../dev/cx 5KMOD= if_cx
|
6SRCS= if_cx.c cxddk.c csigma.c opt_netgraph.h opt_ng_cronyx.h bpf.h \ 7 sppp.h device_if.h bus_if.h isa_if.h
| 6SRCS= if_cx.c cxddk.c csigma.c opt_netgraph.h opt_ng_cronyx.h \ 7 device_if.h bus_if.h isa_if.h
|
8
| 8
|
9NBPF?= 0
| 9.if !defined(KERNBUILDDIR)
|
10PROTOS?= -DINET 11NG_CRONYX?= 0 12NETGRAPH= ${NG_CRONYX} 13
| 10PROTOS?= -DINET 11NG_CRONYX?= 0 12NETGRAPH= ${NG_CRONYX} 13
|
14
| |
15CFLAGS+= ${PROTOS}
| 14CFLAGS+= ${PROTOS}
|
16CLEANFILES+= bpf.h sppp.h
| |
17
| 15
|
| 16.if ${NETGRAPH} != 0
|
18opt_netgraph.h: 19 echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h
| 17opt_netgraph.h: 18 echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h
|
| 19.endif
|
20
| 20
|
21opt_ng_cronyx.h:
| |
22.if ${NG_CRONYX} != 0
| 21.if ${NG_CRONYX} != 0
|
| 22opt_ng_cronyx.h:
|
23 echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h
| 23 echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h
|
24.else 25 echo "" > opt_ng_cronyx.h
| |
26.endif
| 24.endif
|
27 28sppp.h: 29.if ${NG_CRONYX} == 0 30 echo "#define NSPPP 1" > sppp.h 31.else 32 echo "#define NSPPP 0" > sppp.h
| |
33.endif 34
| 25.endif 26
|
35bpf.h: 36 echo "#define NBPF ${NBPF}" > bpf.h 37
| |
38.include <bsd.kmod.mk>
| 27.include <bsd.kmod.mk>
|