Makefile revision 130977
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 130977 2004-06-23 14:22:14Z rik $ 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 8 9NBPF?= 0 10PROTOS?= -DINET 11NG_CRONYX?= 0 12NETGRAPH= ${NG_CRONYX} 13 14 15CFLAGS+= ${PROTOS} 16CLEANFILES+= opt_ng_cronyx.h opt_netgraph.h bpf.h sppp.h 17 18opt_netgraph.h: 19 echo "#define NETGRAPH $(NETGRAPH)" > opt_netgraph.h 20 21opt_ng_cronyx.h: 22.if ${NG_CRONYX} != 0 23 echo "#define NETGRAPH_CRONYX 1" > opt_ng_cronyx.h 24.else 25 echo "" > opt_ng_cronyx.h 26.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 35bpf.h: 36 echo "#define NBPF ${NBPF}" > bpf.h 37 38.include <bsd.kmod.mk> 39