kernel: Use ${.TARGET} in module Makefiles.
[dragonfly.git] / sys / dev / video / bktr / bktr / Makefile
1 # Makefile for the bktr Brooktree Bt848/Bt878 PCI video capture device
2
3 # $FreeBSD: src/sys/modules/bktr/bktr/Makefile,v 1.1.2.3 2001/07/24 09:51:06 dd Exp $
4
5 .PATH:  ${.CURDIR}/..
6 KMOD=   bktr 
7 SRCS=   bktr_core.c bktr_os.c bktr_audio.c bktr_tuner.c bktr_card.c \
8         use_bktr.h opt_bktr.h use_smbus.h bus_if.h device_if.h \
9         pci_if.h
10 CLEANFILES= use_bktr.h use_smbus.h
11
12 use_bktr.h:
13         echo "#define NBKTR 1" > use_bktr.h
14         echo "#define BKTR_FREEBSD_MODULE 1" >> use_bktr.h
15
16 # Does not use SMBUS/IICBUS. Uses the old i2c code self contained in
17 # the bt848 driver.
18 use_smbus.h:
19         echo "#define NSMBUS 0" > ${.TARGET}
20
21 .include <bsd.kmod.mk>