xref: /freebsd/sys/modules/sound/driver/emu10k1/Makefile (revision 206b17d71186737ca290ab21dc42a17cc73418e9)
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