Makefile revision 59951
1# Makefile for the bktr Brooktree Bt848/Bt878 PCI video capture device
2# Using the new FreeBSD 4.x device driver API (newbus) the Bt848 driver
3# can be loaded dynamically both in the boot loader phase and once
4# the system has booted.
5# The driver can also be unloaded, recompiled and reloaded.
6#
7# Use kldload bktr   and kldunload bktr  to load/unload the driver
8#
9# Note - as the driver requires contiguous memory, loading the driver once
10# memory has filled or become fragmented may fail.
11
12# $FreeBSD: head/sys/modules/bktr/Makefile 59951 2000-05-04 12:08:52Z peter $
13
14.PATH:  ${.CURDIR}/../../dev/bktr
15KMOD=	bktr 
16SRCS=	bktr_core.c bktr_os.c bktr_audio.c bktr_tuner.c bktr_card.c \
17	bktr.h opt_devfs.h opt_bktr.h smbus.h bus_if.h device_if.h \
18	pci_if.h vnode_if.h
19CLEANFILES= bktr.h smbus.h
20
21bktr.h:
22	echo "#define NBKTR 1" > bktr.h
23
24# Does not use SMBUS/IICBUS. Uses the old i2c code self contained in
25# the bt848 driver.
26smbus.h:
27	echo "#define NSMBUS 0" > smbus.h
28
29.include "${.CURDIR}/../../conf/kmod.mk"
30