Makefile revision 50477
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 50477 1999-08-28 01:08:13Z peter $
13
14S	= ${.CURDIR}/../..
15.PATH:  $S/pci
16KMOD	= bktr 
17SRCS	= brooktree848.c bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h
18CLEANFILES	+= bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h
19FLAGS		+= ${DEBUG_FLAGS}
20
21bktr.h:
22	echo "#define NBKTR 1" > bktr.h
23
24pci.h:
25	echo "#define NPCI 1" > pci.h
26
27smbus.h:
28	# Does not use SMBUS/IICBUS. Uses the old i2c code self contained in
29	# the bt848 driver.
30	echo "#define NSMBUS 0" > smbus.h
31
32opt_devfs.h:
33	touch opt_devfs.h
34
35opt_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