102be438aSmrg#  Copyright 2005 Adam Jackson.
202be438aSmrg#
302be438aSmrg#  Permission is hereby granted, free of charge, to any person obtaining a
402be438aSmrg#  copy of this software and associated documentation files (the "Software"),
502be438aSmrg#  to deal in the Software without restriction, including without limitation
602be438aSmrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
702be438aSmrg#  license, and/or sell copies of the Software, and to permit persons to whom
802be438aSmrg#  the Software is furnished to do so, subject to the following conditions:
902be438aSmrg#
1002be438aSmrg#  The above copyright notice and this permission notice (including the next
1102be438aSmrg#  paragraph) shall be included in all copies or substantial portions of the
1202be438aSmrg#  Software.
1302be438aSmrg#
1402be438aSmrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1502be438aSmrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1602be438aSmrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
1702be438aSmrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1802be438aSmrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1902be438aSmrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2002be438aSmrg
2102be438aSmrg# this is obnoxious:
2202be438aSmrg# -module lets us name the module exactly how we want
2302be438aSmrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
2402be438aSmrg# _ladir passes a dummy rpath to libtool so the thing will actually link
2502be438aSmrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
2602be438aSmrgAM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@
2702be438aSmrgtdfx_drv_la_LTLIBRARIES = tdfx_drv.la
2802be438aSmrgtdfx_drv_la_LDFLAGS = -module -avoid-version
2902be438aSmrgtdfx_drv_ladir = @moduledir@/drivers
3002be438aSmrg
3102be438aSmrgtdfx_drv_la_SOURCES = \
32909209eeSmrg         compat-api.h \
3302be438aSmrg         tdfx_accel.c \
3402be438aSmrg         tdfxdefs.h \
3502be438aSmrg         tdfx_dga.c \
3602be438aSmrg         tdfx_driver.c \
3702be438aSmrg         tdfx.h \
3802be438aSmrg         tdfx_hwcurs.c \
3902be438aSmrg         tdfx_io.c \
4002be438aSmrg         tdfx_priv.c \
4102be438aSmrg         tdfx_priv.h \
4202be438aSmrg         tdfx_sli.c \
4302be438aSmrg         tdfx_video.c
4402be438aSmrg
4502be438aSmrgif DRI
4602be438aSmrgtdfx_drv_la_SOURCES += \
4702be438aSmrg         tdfx_dri.c \
4802be438aSmrg         tdfx_dri.h \
4902be438aSmrg         tdfx_dripriv.h
5002be438aSmrgendif
51