xref: /freebsd/sys/modules/sound/driver/emu10k1/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../../../../dev/sound/pci \
4       ${.CURDIR}/../../../../gnu/dev/sound/pci
5
6KMOD=	snd_emu10k1
7SRCS=	device_if.h bus_if.h pci_if.h emu10k1-alsa%diked.h
8SRCS+= mpufoi_if.h
9SRCS+=	emu10k1.c
10
11CLEANFILES+= emu10k1-alsa%diked.h
12
13emu10k1-alsa%diked.h: emu10k1-alsa.h
14	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
15	    | awk -F"[ 	(]" '/define/ \
16	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
17	    >${.TARGET}
18
19.include <bsd.kmod.mk>
20