1340e3fbdSmrg# Copyright 2005 Adam Jackson. 2340e3fbdSmrg# 3340e3fbdSmrg# Permission is hereby granted, free of charge, to any person obtaining a 4340e3fbdSmrg# copy of this software and associated documentation files (the "Software"), 5340e3fbdSmrg# to deal in the Software without restriction, including without limitation 6340e3fbdSmrg# on the rights to use, copy, modify, merge, publish, distribute, sub 7340e3fbdSmrg# license, and/or sell copies of the Software, and to permit persons to whom 8340e3fbdSmrg# the Software is furnished to do so, subject to the following conditions: 9340e3fbdSmrg# 10340e3fbdSmrg# The above copyright notice and this permission notice (including the next 11340e3fbdSmrg# paragraph) shall be included in all copies or substantial portions of the 12340e3fbdSmrg# Software. 13340e3fbdSmrg# 14340e3fbdSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15340e3fbdSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16340e3fbdSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17340e3fbdSmrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18340e3fbdSmrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19340e3fbdSmrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20340e3fbdSmrg 21340e3fbdSmrg# this is obnoxious: 22340e3fbdSmrg# -module lets us name the module exactly how we want 23340e3fbdSmrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 24340e3fbdSmrg# _ladir passes a dummy rpath to libtool so the thing will actually link 25340e3fbdSmrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 26340e3fbdSmrgAM_CFLAGS = @XORG_CFLAGS@ 27340e3fbdSmrgs3_drv_la_LTLIBRARIES = s3_drv.la 28340e3fbdSmrgs3_drv_la_LDFLAGS = -module -avoid-version 29340e3fbdSmrgs3_drv_ladir = @moduledir@/drivers 30340e3fbdSmrg 31340e3fbdSmrgs3_drv_la_SOURCES = \ 32b27e1915Smrg compat-api.h \ 33340e3fbdSmrg newmmio.h \ 34340e3fbdSmrg s3_bios.c \ 35340e3fbdSmrg s3_cursor.c \ 36340e3fbdSmrg s3_dga.c \ 37340e3fbdSmrg s3_driver.c \ 38340e3fbdSmrg s3.h \ 39340e3fbdSmrg s3_IBMRGB.c \ 40bd35f0dbSahoka s3_pcirename.h \ 41340e3fbdSmrg s3_reg.h \ 42340e3fbdSmrg s3_Ti.c \ 434178061cSmrg s3_Trio64DAC.c \ 444178061cSmrg s3_shadow.c 45340e3fbdSmrg 46340e3fbdSmrgnoinst_LTLIBRARIES = libs3_accel_newmmio.la libs3_accel_pio.la 47340e3fbdSmrgs3_drv_la_LIBADD = libs3_accel_newmmio.la libs3_accel_pio.la 48340e3fbdSmrg 49bd35f0dbSahokalibs3_accel_newmmio_la_SOURCES = s3_accel.c s3_video.c 50340e3fbdSmrglibs3_accel_newmmio_la_CFLAGS = $(AM_CFLAGS) -DS3_NEWMMIO=1 51340e3fbdSmrg 52340e3fbdSmrglibs3_accel_pio_la_SOURCES = s3_accel.c 53340e3fbdSmrglibs3_accel_pio_la_CFLAGS = $(AM_CFLAGS) 54