172b676d7Smrg#  Copyright 2005 Adam Jackson.
272b676d7Smrg#
372b676d7Smrg#  Permission is hereby granted, free of charge, to any person obtaining a
472b676d7Smrg#  copy of this software and associated documentation files (the "Software"),
572b676d7Smrg#  to deal in the Software without restriction, including without limitation
672b676d7Smrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
772b676d7Smrg#  license, and/or sell copies of the Software, and to permit persons to whom
872b676d7Smrg#  the Software is furnished to do so, subject to the following conditions:
972b676d7Smrg#
1072b676d7Smrg#  The above copyright notice and this permission notice (including the next
1172b676d7Smrg#  paragraph) shall be included in all copies or substantial portions of the
1272b676d7Smrg#  Software.
1372b676d7Smrg#
1472b676d7Smrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1572b676d7Smrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1672b676d7Smrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
1772b676d7Smrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1872b676d7Smrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1972b676d7Smrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2072b676d7Smrg
2172b676d7Smrg# this is obnoxious:
2272b676d7Smrg# -module lets us name the module exactly how we want
2372b676d7Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
2472b676d7Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link
2572b676d7Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
2672b676d7SmrgAM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@
2772b676d7Smrgsis_drv_la_LTLIBRARIES = sis_drv.la
2872b676d7Smrgsis_drv_la_LDFLAGS = -module -avoid-version
2972b676d7Smrgsis_drv_ladir = @moduledir@/drivers
3072b676d7Smrg
3172b676d7Smrgsis_drv_la_SOURCES = \
3272b676d7Smrg         300vtbl.h \
3372b676d7Smrg         310vtbl.h \
3474c14cd6Smrg         compat-api.h \
3574fcc364Smrg         init.c \
3674fcc364Smrg         init.h \
3772b676d7Smrg         init301.c \
3872b676d7Smrg         init301.h \
3972b676d7Smrg         initdef.h \
4072b676d7Smrg         initextx.c \
4172b676d7Smrg         initextx.h \
4272b676d7Smrg         oem300.h \
4372b676d7Smrg         oem310.h \
4472b676d7Smrg         osdef.h \
4574fcc364Smrg         sis.h \
4672b676d7Smrg         sis300_accel.c \
4772b676d7Smrg         sis300_accel.h \
4872b676d7Smrg         sis310_accel.c \
4972b676d7Smrg         sis310_accel.h \
5072b676d7Smrg         sis6326_video.c \
511fd23544Smrg	 sispcirename.h \
5272b676d7Smrg         sis_accel.c \
5372b676d7Smrg         sis_accel.h \
5472b676d7Smrg         sis_common.h \
5572b676d7Smrg         sis_cursor.c \
5672b676d7Smrg         sis_cursor.h \
5772b676d7Smrg         sis_dac.c \
5872b676d7Smrg         sis_dac.h \
5972b676d7Smrg         sis_dga.c \
6072b676d7Smrg         sis_driver.c \
6172b676d7Smrg         sis_driver.h \
6272b676d7Smrg         sis_memcpy.c \
6372b676d7Smrg         sis_opt.c \
6472b676d7Smrg         sis_regs.h \
6572b676d7Smrg         sis_setup.c \
6672b676d7Smrg         sis_shadow.c \
6772b676d7Smrg         sis_utility.c \
6872b676d7Smrg         sis_vb.c \
6972b676d7Smrg         sis_vga.c \
7072b676d7Smrg         sis_video.c \
7172b676d7Smrg         sis_video.h \
7272b676d7Smrg         sis_videostr.h \
7372b676d7Smrg         vgatypes.h \
7472b676d7Smrg         vstruct.h
7572b676d7Smrg
7672b676d7Smrgif DRI
7772b676d7Smrgsis_drv_la_SOURCES += \
7872b676d7Smrg         sis_dri.c \
7972b676d7Smrg         sis_dri.h 
8072b676d7Smrgendif
81