forked from freebsd/drm-kmod
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (25 loc) · 751 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SRCDIR= ${.CURDIR:H}/drivers/dma-buf
.PATH: ${SRCDIR}
.include "../kconfig.mk"
KMOD= dmabuf
SRCS= dma-buf-kmod.c \
dma-buf.c \
dma-fence-array.c \
dma-fence-chain.c \
dma-fence.c \
dma-resv.c \
sync_file.c
SRCS+= device_if.h \
bus_if.h \
vnode_if.h
CLEANFILES+= ${KMOD}.ko.full ${KMOD}.ko.debug
CFLAGS+= -I${.CURDIR:H}/linuxkpi/gplv2/include
CFLAGS+= -I${.CURDIR:H}/linuxkpi/bsd/include
CFLAGS+= -I${SYSDIR}/compat/linuxkpi/common/include
CFLAGS+= -I${.CURDIR:H}/linuxkpi/dummy/include # fallback to dummy
CFLAGS+= -I${SYSDIR}/compat/linuxkpi/dummy/include
CFLAGS+= '-DKBUILD_MODNAME="${KMOD}"'
CFLAGS+= -DLINUXKPI_VERSION=51600
CFLAGS+= ${KCONFIG:C/(.*)/-DCONFIG_\1/}
CWARNFLAGS.dma-buf.c+= -Wno-pointer-arith
.include <bsd.kmod.mk>