Home | History | Annotate | Line # | Download | only in xf86-video-glint
      1 #	$NetBSD: Makefile,v 1.16 2025/06/10 13:16:27 macallan Exp $
      2 
      3 DRIVER=		xf86-video-glint
      4 DRIVER_NAME=	glint_drv
      5 
      6 SRCS=		glint_dga.c glint_driver.c glint_shadow.c
      7 SRCS+=		pm2_accel.c pm2_common.c pm2_dac.c pm2_exa.c
      8 SRCS+=		pm2ramdac.c pm2v_dac.c pm2_video.c pm2vramdac.c pm3_accel.c
      9 SRCS+=		pm3_dac.c pm3_exa.c pm3_video.c 
     10 MAN=		glint.4
     11 
     12 # leave in support for only permedia 2, 2v and 3
     13 #SRCS+=		IBMramdac.c pm_accel.c pm_dac.c
     14 #SRCS+=		sx_accel.c TIramdac.c tx_accel.c tx_dac.c
     15 
     16 .if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "sparc"
     17 CPPFLAGS+=	-DSPARC_MMIO_IS_BE
     18 .endif
     19 
     20 .if ${MACHINE_ARCH} == "powerpc"
     21 CPPFLAGS+=	-DPPC_MMIO_IS_BE
     22 .endif
     23 
     24 CPPFLAGS+=	-DPM23_ONLY
     25 
     26 CPPFLAGS+=	-DHAVE_CONFIG_H -I${X11SRCDIR.${DRIVER}}/../include
     27 CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11
     28 CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/libdrm
     29 
     30 COPTS.glint_driver.c=	-Wno-error	# XXX xf86dgastr.h, deprecated
     31 
     32 CWARNFLAGS.clang+=	-Wno-format
     33 
     34 .include "../Makefile.xf86-driver"
     35