.m.h:
	awk -f ${SYSDIR}/tools/makeobjops.awk ${.ALLSRC} -h

.m.c:
	awk -f ${SYSDIR}/tools/makeobjops.awk ${.ALLSRC} -c

SRCS=bus_if.h device_if.h pci_if.h ../common/cx88_if.h ../common/cx88_common.h ../common/cx88_regs.h  ../common/cx88_common_ioctl.h cx88_mpeg_regs.h cx88_mpeg_ioctl.h cx88_mpeg.h cx88_mpeg.c
KMOD=cx88mpegcore
CLEANFILES=bus_if.h device_if.h pci_if.h cx88_if.h 

PREFIX ?= /usr/local
IOCTL_HEADER_DIR ?= $(PREFIX)/include

CFLAGS+= -I../common
.if defined(DIAGNOSTIC)
CFLAGS+= -D_DIAGNOSTIC=${DIAGNOSTIC}
.endif

afterinstall:
	mkdir -p $(IOCTL_HEADER_DIR)/cx88
	cp cx88_mpeg_ioctl.h $(IOCTL_HEADER_DIR)/cx88/
	
.include <bsd.kmod.mk>

