1 # $NetBSD: Makefile,v 1.2 2012/11/18 08:24:02 apb Exp $
6 SRCS
= init.c vb_ext.c vb_i2c.c vb_setmode.c xgi_accel.c
8 SRCS
+= xgi_cursor.c xgi_dac.c xgi_dga.c xgi_driver.c xgi_opt.c
9 SRCS
+= xgi_setup.c xgi_vb.c xgi_vga.c xgi_video.c xgi_videohw.c
13 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/X11
14 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/X11
/dri
15 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/libdrm
16 # for now, I'd like to see this thing work first
17 CPPFLAGS
+= -DHAVE_UNISTD_H
-Wno-deprecated-declarations
19 # vb_struct.h contains this declaration:
21 # typedef struct _XGI_CRT1TableStruct
24 # } XGI_CRT1TableStruct;
26 # but code in init.c and vb_setmode.c reads elements beyond the end of
27 # the array and writes the result into hardware registers. It's not
28 # clear how to fix this, so just disable the -Warray-bounds warning to
29 # allow the build to complete.
31 COPTS.init.c
= -Wno-array-bounds
32 COPTS.vb_setmode.c
= -Wno-array-bounds
34 .
include "../Makefile.xf86-driver"