Makefile revision 47886
1264656Simp# Makefile for the bktr Brooktree Bt848/Bt878 PCI video capture device 2264656Simp# Using the new FreeBSD 4.x device driver API (newbus) the Bt848 driver 3264656Simp# can be loaded dynamically both in the boot loader phase and once 4264656Simp# the system has booted. 5264656Simp# The driver can also be unloaded, recompiled and reloaded. 6264656Simp# 7264656Simp# Use kldload bktr and kldunload bktr to load/unload the driver 8264656Simp# 9264656Simp# Note - as the driver requires contiguous memory, loading the driver once 10264656Simp# memory has filled or become fragmented may fail. 11264656Simp 12264656Simp# $Id: Makefile,v 1.1 1999/06/12 15:00:19 roger Exp $ 13264656Simp 14264656SimpS = ${.CURDIR}/../.. 15264656Simp.PATH: $S/pci 16264656SimpKMOD = bktr 17264656SimpSRCS = brooktree848.c bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h 18264656SimpCLEANFILES += bktr.h opt_devfs.h opt_bktr.h pci.h smbus.h bus_if.h device_if.h pci_if.h 19264656SimpFLAGS += ${DEBUG_FLAGS} 20264656Simp 21264656Simpbktr.h: 22264656Simp echo "#define NBKTR 1" > bktr.h 23264656Simp 24264656Simppci.h: 25264656Simp echo "#define NPCI 1" > pci.h 26264656Simp 27264656Simpsmbus.h: 28264656Simp # Does not use SMBUS/IICBUS. Uses the old i2c code self contained in 29264656Simp # the bt848 driver. 30264656Simp echo "#define NSMBUS 0" > smbus.h 31264656Simp 32264656Simpopt_devfs.h: 33264656Simp touch opt_devfs.h 34264656Simp 35264656Simpopt_bktr.h: 36264656Simp touch opt_bktr.h 37264656Simp 38264656Simpdevice_if.h: $S/kern/makedevops.pl $S/kern/device_if.m 39264656Simp perl $S/kern/makedevops.pl -h $S/kern/device_if.m 40264656Simp 41264656Simpbus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m 42264656Simp perl $S/kern/makedevops.pl -h $S/kern/bus_if.m 43264656Simp 44264656Simppci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m 45264656Simp perl $S/kern/makedevops.pl -h $S/pci/pci_if.m 46264656Simp 47264656Simp.include <bsd.kmod.mk> 48264656Simp