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