1# $NetBSD: Makefile,v 1.10 2019/03/05 09:08:51 mrg Exp $ 2 3DRIVER= xf86-video-nouveau 4DRIVER_NAME= nouveau_drv 5 6SRCS= nouveau_copy.c \ 7 nouveau_copy85b5.c \ 8 nouveau_copy90b5.c \ 9 nouveau_copya0b5.c \ 10 nouveau_exa.c \ 11 nouveau_xv.c \ 12 nouveau_dri2.c \ 13 nouveau_present.c \ 14 nouveau_sync.c \ 15 nouveau_wfb.c \ 16 nv_accel_common.c \ 17 nv_driver.c \ 18 nv_shadow.c \ 19 nv04_exa.c \ 20 nv04_xv_ovl.c \ 21 nv04_xv_blit.c \ 22 nv10_exa.c \ 23 nv10_xv_ovl.c \ 24 nv30_exa.c \ 25 nv30_xv_tex.c \ 26 nv40_exa.c \ 27 nv40_xv_tex.c \ 28 nv50_accel.c \ 29 nv50_exa.c \ 30 nv50_xv.c \ 31 nvc0_accel.c \ 32 nvc0_exa.c \ 33 nvc0_xv.c \ 34 drmmode_display.c \ 35 vl_hwmc.c 36 37LIBDPLIBS+= drm_nouveau ${.CURDIR}/../../../lib/libdrm_nouveau 38 39MAN= nouveau.4 40 41CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm 42CPPFLAGS+= -DNV_DRIVER_DATE=${DRIVER_DATE} 43 44.include "../Makefile.xf86-driver" 45 46# XXX 47COPTS.nouveau_xv.c+= ${${ACTIVE_CC} == "clang":? -Wno-error=incompatible-pointer-types-discards-qualifiers :} 48 49.if ${XORG_SERVER_SUBDIR} != "xorg-server.old" 50CPPFLAGS+= -DHAVE_XORG_LIST 51CPPFLAGS+= -DHAVE_XF86_CURSOR_RESET_CURSOR 52.endif 53 54# from pkgsrc/x11/xf86-video-nouveau/patches/patch-configure 55DRIVER_DATE!=awk '/^Date:/{print "\"" $0 "\"";exit}' ${X11SRCDIR.${DRIVER}}/ChangeLog 56