Makefile revision 50695
184865Sobrien# Makefile for the bktr Brooktree Bt848/Bt878 PCI video capture device
2218822Sdim# Using the new FreeBSD 4.x device driver API (newbus) the Bt848 driver
384865Sobrien# can be loaded dynamically both in the boot loader phase and once
484865Sobrien# the system has booted.
584865Sobrien# The driver can also be unloaded, recompiled and reloaded.
684865Sobrien#
784865Sobrien# Use kldload bktr   and kldunload bktr  to load/unload the driver
884865Sobrien#
984865Sobrien# Note - as the driver requires contiguous memory, loading the driver once
1084865Sobrien# memory has filled or become fragmented may fail.
1184865Sobrien
1284865Sobrien# $FreeBSD: head/sys/modules/bktr/Makefile 50695 1999-08-31 11:13:47Z roger $
1384865Sobrien
1484865SobrienS	= ${.CURDIR}/../..
1584865Sobrien.PATH:  $S/pci
1684865SobrienKMOD	= bktr 
1784865SobrienSRCS	= brooktree848.c bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h vnode_if.h
1884865SobrienCLEANFILES	+= bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h vnode_if.h
19218822SdimFLAGS		+= ${DEBUG_FLAGS}
2084865Sobrien
21218822Sdimbktr.h:
2284865Sobrien	echo "#define NBKTR 1" > bktr.h
2384865Sobrien
2484865Sobrienpci.h:
2584865Sobrien	echo "#define NPCI 1" > pci.h
2684865Sobrien
2784865Sobriensmbus.h:
2884865Sobrien	# Does not use SMBUS/IICBUS. Uses the old i2c code self contained in
29130561Sobrien	# the bt848 driver.
3084865Sobrien	echo "#define NSMBUS 0" > smbus.h
3184865Sobrien
3284865Sobrienopt_devfs.h:
3384865Sobrien	touch opt_devfs.h
3484865Sobrien
3584865Sobrienopt_bktr.h:
36	touch opt_bktr.h
37
38device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
39	perl $S/kern/makedevops.pl -h $S/kern/device_if.m
40
41bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
42	perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
43
44pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
45	perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
46
47.include <bsd.kmod.mk>
48