# Makefile for the bktr Brooktree Bt848/Bt878 PCI video capture device

# $FreeBSD: stable/4/sys/modules/bktr/bktr/Makefile 80268 2001-07-24 09:51:06Z dd $

.PATH:  ${.CURDIR}/../../../dev/bktr
KMOD=	bktr 
SRCS=	bktr_core.c bktr_os.c bktr_audio.c bktr_tuner.c bktr_card.c \
	bktr.h opt_bktr.h smbus.h bus_if.h device_if.h \
	pci_if.h vnode_if.h
CLEANFILES= bktr.h smbus.h

bktr.h:
	echo "#define NBKTR 1" > bktr.h
	echo "#define BKTR_FREEBSD_MODULE 1" >> bktr.h

# Does not use SMBUS/IICBUS. Uses the old i2c code self contained in
# the bt848 driver.
smbus.h:
	echo "#define NSMBUS 0" > smbus.h

.include <bsd.kmod.mk>
