1#	$NetBSD: Makefile,v 1.7 2014/08/13 22:48:15 macallan 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_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 riva_xaa.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 g80_xaa.c
12MAN=		nv.4
13
14.if ${MACHINE} == "macppc"
15CPPFLAGS+= -DAVOID_VGAHW
16.endif
17
18.if ${MACHINE} == "i386" || ${MACHINE} == "amd64"
19# XXX
20# the test uses pci_device_has_kernel_driver() which, for now at least, only
21# makes sense on x86 ( it just checks if the kernel driver handling the
22# device is vga ) - and even there, genfb and the like don't do anything
23# that would prevent this driver from working. Might need to revisit this once
24# the new DRM2 code has nvidia support
25#CPPFLAGS+= -DNV_TEST_FOR_KERNEL_DRIVER
26.endif
27
28CPPFLAGS+= -DHAVE_XAA_H
29
30.include "../Makefile.xf86-driver"
31