Sync nv with FreeBSD and update the binary driver to 1.0-0310.
[dragonfly.git] / sys / dev / netif / nv / Makefile
1 # $DragonFly: src/sys/dev/netif/nv/Attic/Makefile,v 1.4 2006/01/29 22:10:11 corecode Exp $
2
3 CONTRIBDIR=     ${.CURDIR}/../../../contrib/dev/nv
4
5 KMOD=   if_nv
6 SRCS=   if_nv.c miibus_if.h device_if.h bus_if.h pci_if.h opt_polling.h
7 SRCS+=  adapter.h.patch basetype.h.patch os.h.patch phy.h.patch drvinfo.h.patch
8 OBJS+=  nvenetlib.o
9 CLEANFILES+= nvenetlib.o
10 KMODDEPS = miibus
11
12 CFLAGS+= -I${.OBJDIR} -I${.CURDIR} -I${CONTRIBDIR}
13
14 .ifndef BUILDING_WITH_KERNEL
15 opt_polling.h:
16         echo '#define DEVICE_POLLING 1' > ${.OBJDIR}/${.TARGET}
17 .endif
18
19 nvenetlib.o: ${CONTRIBDIR}/${MACHINE_ARCH}/nvenetlib.o.uu
20         uudecode < ${.ALLSRC:M*.uu}
21
22 .include <bsd.kmod.mk>