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