Makefile revision 51541
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 51541 1999-09-22 08:31:05Z roger $
13
14S	= ${.CURDIR}/../..
15.PATH:  $S/dev/bktr
16KMOD	= bktr 
17SRCS	= bktr_core.c bktr.h opt_devfs.h opt_bktr.h smbus.h bus_if.h device_if.h pci_if.h vnode_if.h
18CLEANFILES	+= bktr.h opt_devfs.h opt_bktr.h smbus.h bus_if.h device_if.h pci_if.h vnode_if.h
19FLAGS		+= ${DEBUG_FLAGS}
20
21bktr.h:
22	echo "#define NBKTR 1" > bktr.h
23
24smbus.h:
25	# Does not use SMBUS/IICBUS. Uses the old i2c code self contained in
26	# the bt848 driver.
27	echo "#define NSMBUS 0" > smbus.h
28
29opt_devfs.h:
30	touch opt_devfs.h
31
32opt_bktr.h:
33	touch opt_bktr.h
34
35device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
36	perl $S/kern/makedevops.pl -h $S/kern/device_if.m
37
38bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
39	perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
40
41pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
42	perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
43
44.include <bsd.kmod.mk>
45