NetBSD/sys/modules/radeondrm/Makefile

33 lines
703 B
Makefile

# $NetBSD: Makefile,v 1.14 2019/11/11 22:45:27 joerg Exp $
.include "../Makefile.inc"
.PATH: ${S}/external/bsd/drm/dist/bsd-core
.PATH: ${S}/external/bsd/drm/dist/shared-core
KMOD= radeondrm
IOCONF= radeondrm.ioconf
SRCS= radeon_drv.c
SRCS+= r300_cmdbuf.c
SRCS+= r600_cp.c
SRCS+= r600_blit.c
SRCS+= radeon_cp.c
SRCS+= radeon_cs.c
SRCS+= radeon_irq.c
SRCS+= radeon_mem.c
SRCS+= radeon_state.c
CPPFLAGS+= -I${S}/external/bsd/drm/dist/bsd-core \
-I${S}/external/bsd/drm/dist/shared-core
WARNS= 3
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
COPTS.radeon_cs.c+= -Wno-error=implicit-fallthrough
.endif
CWARNFLAGS.clang+= -Wno-error=bool-operation
.include <bsd.kmodule.mk>