1c582b7e3Smrg#  Copyright 2005 Adam Jackson.
2c582b7e3Smrg#  Copyright 2005 Red Hat, Inc.
3c582b7e3Smrg#
4c582b7e3Smrg#  Permission is hereby granted, free of charge, to any person obtaining a
5c582b7e3Smrg#  copy of this software and associated documentation files (the "Software"),
6c582b7e3Smrg#  to deal in the Software without restriction, including without limitation
7c582b7e3Smrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
8c582b7e3Smrg#  license, and/or sell copies of the Software, and to permit persons to whom
9c582b7e3Smrg#  the Software is furnished to do so, subject to the following conditions:
10c582b7e3Smrg#
11c582b7e3Smrg#  The above copyright notice and this permission notice (including the next
12c582b7e3Smrg#  paragraph) shall be included in all copies or substantial portions of the
13c582b7e3Smrg#  Software.
14c582b7e3Smrg#
15c582b7e3Smrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16c582b7e3Smrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17c582b7e3Smrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
18c582b7e3Smrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19c582b7e3Smrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20c582b7e3Smrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21c582b7e3Smrg
22c582b7e3Smrg
23c582b7e3Smrg# this is obnoxious:
24c582b7e3Smrg# -module lets us name the module exactly how we want
25c582b7e3Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
26c582b7e3Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link
27c582b7e3Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
28c582b7e3Smrg
29c582b7e3Smrgif DRI
30c582b7e3SmrgR128_DRI_SRCS = r128_dri.c
31c582b7e3Smrgendif
32c582b7e3Smrg
3342a55b46Smrgif USE_EXA
34cd241713SmrgR128_EXA_SRCS = \
35cd241713Smrg	r128_exa.c \
36cd241713Smrg	r128_exa_render.c
3742a55b46Smrgendif
3842a55b46Smrg
39c582b7e3SmrgAM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@
40c582b7e3Smrg
41c582b7e3Smrgr128_drv_la_LTLIBRARIES = r128_drv.la
42c582b7e3Smrgr128_drv_la_LDFLAGS = -module -avoid-version
43c582b7e3Smrgr128_drv_ladir = @moduledir@/drivers
44c582b7e3Smrgr128_drv_la_SOURCES = \
45cd241713Smrg	r128_accel.c \
46cd241713Smrg	r128_crtc.c \
47cd241713Smrg	r128_cursor.c \
48cd241713Smrg	r128_driver.c \
49cd241713Smrg	r128_misc.c \
50cd241713Smrg	r128_output.c \
51cd241713Smrg	r128_probe.c \
52cd241713Smrg	r128_video.c \
53cd241713Smrg	$(R128_EXA_SRCS) \
54cd241713Smrg	$(R128_DRI_SRCS)
55c582b7e3Smrg
56c582b7e3SmrgEXTRA_DIST = \
57cd241713Smrg	compat-api.h \
58cd241713Smrg	r128.h \
59c582b7e3Smrg	r128_common.h \
60c582b7e3Smrg	r128_dri.h \
61c582b7e3Smrg	r128_dripriv.h \
62c582b7e3Smrg	r128_probe.h \
63c582b7e3Smrg	r128_reg.h \
64cd241713Smrg	r128_rop.h \
65c582b7e3Smrg	r128_sarea.h \
66c582b7e3Smrg	r128_version.h \
67c582b7e3Smrg	atipcirename.h
68