1# $NetBSD: Makefile,v 1.14 2018/12/31 12:13:50 mrg Exp $ 2 3DRIVER= xf86-video-nv 4DRIVER_NAME= nv_drv 5 6SRCS= nv_cursor.c nv_dac.c nv_dga.c nv_driver.c nv_exa.c nv_hw.c 7SRCS+= nv_setup.c nv_shadow.c nv_video.c nv_xaa.c riva_cursor.c 8SRCS+= riva_dac.c riva_dga.c riva_driver.c riva_hw.c 9SRCS+= riva_setup.c riva_shadow.c g80_cursor.c 10SRCS+= g80_dac.c g80_display.c g80_dma.c g80_driver.c g80_exa.c 11SRCS+= g80_output.c g80_sor.c 12MAN= nv.4 13 14# XAA files have generic functions as well 15#.if ${XORG_SERVER_SUBDIR} == "xorg-server.old" 16SRCS+= riva_xaa.c g80_xaa.c 17#.endif 18 19.if ${MACHINE} == "macppc" 20CPPFLAGS+= -DAVOID_VGAHW 21.endif 22 23.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" 24# XXX 25# the test uses pci_device_has_kernel_driver() which, for now at least, only 26# makes sense on x86 ( it just checks if the kernel driver handling the 27# device is vga ) - and even there, genfb and the like don't do anything 28# that would prevent this driver from working. Might need to revisit this once 29# the new DRM2 code has nvidia support 30#CPPFLAGS+= -DNV_TEST_FOR_KERNEL_DRIVER 31.endif 32 33# XXX 34COPTS+= ${${ACTIVE_CC} == "gcc":? -Wno-error=cpp :} 35COPTS+= ${${ACTIVE_CC} == "clang":? -Wno-error=\#warnings :} 36 37COPTS.g80_dac.c+= -Wno-error # XXX deprecated 38 39.include "../Makefile.xf86-driver" 40