1 # $NetBSD: Makefile,v 1.15 2021/06/03 15:59:04 nia Exp $ 2 3 .include "../Makefile.inc" 4 5 .PATH: ${S}/external/bsd/drm/dist/bsd-core 6 .PATH: ${S}/external/bsd/drm/dist/shared-core 7 8 KMOD= radeondrm 9 IOCONF= radeondrm.ioconf 10 11 SRCS= radeon_drv.c 12 SRCS+= r300_cmdbuf.c 13 SRCS+= r600_cp.c 14 SRCS+= r600_blit.c 15 SRCS+= radeon_cp.c 16 SRCS+= radeon_cs.c 17 SRCS+= radeon_irq.c 18 SRCS+= radeon_mem.c 19 SRCS+= radeon_state.c 20 21 # Code imported from Linux - expects signed overflow to be OK. 22 COPTS+= -fwrapv 23 24 CPPFLAGS+= -I${S}/external/bsd/drm/dist/bsd-core \ 25 -I${S}/external/bsd/drm/dist/shared-core 26 27 WARNS= 3 28 29 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" 30 COPTS.radeon_cs.c+= -Wno-error=implicit-fallthrough 31 .endif 32 33 CWARNFLAGS.clang+= -Wno-error=bool-operation 34 35 .include <bsd.kmodule.mk> 36