Home | History | Annotate | Line # | Download | only in xf86-video-s3
      1 #	$NetBSD: Makefile,v 1.16 2016/09/02 04:49:48 jakllsch Exp $
      2 
      3 DRIVER=		xf86-video-s3
      4 DRIVER_NAME=	s3_drv
      5 DRIVER_VERSION= 0.6.3
      6 
      7 SRCS=		s3_bios.c s3_cursor.c s3_dga.c s3_driver.c s3_IBMRGB.c \
      8 		s3_Ti.c s3_Trio64DAC.c s3_video.c s3_accel.c \
      9 		s3_accel_newmmio.c s3_shadow.c
     10 SRCS+=		s3_GENDAC.c
     11 MAN=		s3.4
     12 
     13 # PLEASE NOTE: s3_accel.c is compiled two times with different
     14 # cpp macros for PIO and NEWMMIO support. Check Makefile.am
     15 # before upgrading the driver.
     16 #
     17 BUILDSYMLINKS=	s3_accel.c s3_accel_newmmio.c
     18 CPPFLAGS.s3_accel_newmmio.c+=	-DS3_NEWMMIO=1 \
     19 				-I${X11SRCDIR.xf86-video-s3}/src
     20 CPPFLAGS.s3_video.c+=		-DS3_NEWMMIO=1 \
     21 
     22 CPPFLAGS+=	-DPACKAGE_VERSION=\"${PACKAGE_VERSION}\"
     23 
     24 # XXX xf86PciInfo.h
     25 COPTS+=		${${ACTIVE_CC} == "gcc":? -Wno-error=cpp :}
     26 COPTS+=		${${ACTIVE_CC} == "clang":? -Wno-error=\#warnings :}
     27 
     28 CWARNFLAGS.clang+=	-Wno-parentheses
     29 
     30 .include "../Makefile.xf86-driver"
     31