# $NetBSD: Makefile,v 1.5.4.2 2024/10/04 11:40:54 martin Exp $ .include "../Makefile.inc" .include "../drmkms/Makefile.inc" KMOD= amdgpu IOCONF= amdgpu.ioconf MKLDSCRIPT=yes WARNS= 3 .if ${MACHINE_ARCH} == "x86_64" COPTS.amdgpu_float+= ${${ACTIVE_CC} == "gcc" :? -mhard-float :} -msse -msse2 .elif !empty(MACHINE_ARCH:Maarch64*) COPTS.amdgpu_float+= -march=armv8-a .endif .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ ${MACHINE_CPU} == "arm" || ${MACHINE_CPU} == "aarch64" CPPFLAGS+= -DNACPICA=1 .endif # sed -ne 's,^makeoptions amdgpu "\([^.]*\)\.amdgpu"+="\(.*\)",\1+= \2,gp' # XXX CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}