Makefile revision 123120
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 123120 2003-12-03 07:29:38Z imp $ 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 8NOMAN= 9 10NBPF?= 0 11PROTOS?= -DINET 12NG_CRONYX?= 0 13NETGRAPH= ${NG_CRONYX} 14 15 16CFLAGS+= ${PROTOS} 17CLEANFILES+= opt_ng_cronyx.h opt_netgraph.h bpf.h cxddk.c csigma.c sppp.h 18 19opt_netgraph.h: 20 echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h 21 22opt_ng_cronyx.h: 23.if ${NG_CRONYX} != 0 24 echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h 25.else 26 echo "" > opt_ng_cronyx.h 27.endif 28 29sppp.h: 30.if ${NG_CRONYX} == 0 31 echo "#define NSPPP 1" > sppp.h 32.else 33 echo "#define NSPPP 0" > sppp.h 34.endif 35 36bpf.h: 37 echo "#define NBPF ${NBPF}" > bpf.h 38 39.include <bsd.kmod.mk> 40