xref: /freebsd/sys/modules/sound/driver/emu10k1/Makefile (revision 21f1e37cbd9d0ac955d43f6ad8dff5a0e1c67eac)
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+=	emu10k1.c
9
10CLEANFILES+= emu10k1-alsa%diked.h
11
12emu10k1-alsa%diked.h: emu10k1-alsa.h
13	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
14	    | awk -F"[ 	(]" '/define/ \
15	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
16	    >${.TARGET}
17
18.include <bsd.kmod.mk>
19