1c06b6b69Smrg#  Copyright 2005 Adam Jackson.
2c06b6b69Smrg#
3c06b6b69Smrg#  Permission is hereby granted, free of charge, to any person obtaining a
4c06b6b69Smrg#  copy of this software and associated documentation files (the "Software"),
5c06b6b69Smrg#  to deal in the Software without restriction, including without limitation
6c06b6b69Smrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
7c06b6b69Smrg#  license, and/or sell copies of the Software, and to permit persons to whom
8c06b6b69Smrg#  the Software is furnished to do so, subject to the following conditions:
9c06b6b69Smrg#
10c06b6b69Smrg#  The above copyright notice and this permission notice (including the next
11c06b6b69Smrg#  paragraph) shall be included in all copies or substantial portions of the
12c06b6b69Smrg#  Software.
13c06b6b69Smrg#
14c06b6b69Smrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15c06b6b69Smrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16c06b6b69Smrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17c06b6b69Smrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18c06b6b69Smrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19c06b6b69Smrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20c06b6b69Smrg
21c06b6b69Smrg# sick hack borrowed from mga.  please, people, don't write code this ugly.
22c06b6b69Smrgnoinst_LTLIBRARIES = libct_accelmm.la libct_accelhi.la
23c06b6b69Smrg
24c06b6b69Smrglibct_accelmm_la_SOURCES = ct_accel.c
25c06b6b69Smrglibct_accelmm_la_CFLAGS = @XORG_CFLAGS@ -DCHIPS_MMIO
26c06b6b69Smrg
27c06b6b69Smrglibct_accelhi_la_SOURCES = ct_accel.c
28c06b6b69Smrglibct_accelhi_la_CFLAGS = @XORG_CFLAGS@ -DCHIPS_MMIO -DCHIPS_HIQV
29c06b6b69Smrg
30c06b6b69Smrg# this is obnoxious:
31c06b6b69Smrg# -module lets us name the module exactly how we want
32c06b6b69Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
33c06b6b69Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link
34c06b6b69Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
3544256261SmrgAM_CFLAGS = $(BASE_CFLAGS) $(XORG_CFLAGS)
36c06b6b69Smrgchips_drv_la_LTLIBRARIES = chips_drv.la
37c06b6b69Smrgchips_drv_la_LDFLAGS = -module -avoid-version
38c06b6b69Smrgchips_drv_ladir = @moduledir@/drivers
39c06b6b69Smrgchips_drv_la_LIBADD = $(noinst_LTLIBRARIES)
40c06b6b69Smrg
41c06b6b69Smrgchips_drv_la_SOURCES = \
42c06b6b69Smrg         ct_accel.c \
43c06b6b69Smrg         ct_bank.c \
44c06b6b69Smrg         ct_BlitMM.h \
45c06b6b69Smrg         ct_Blitter.h \
46c06b6b69Smrg         ct_BltHiQV.h \
47c06b6b69Smrg         ct_cursor.c \
48c06b6b69Smrg         ct_ddc.c \
49c06b6b69Smrg         ct_dga.c \
50c06b6b69Smrg         ct_driver.c \
51c06b6b69Smrg         ct_driver.h \
529f4658d1Smrg	 ct_pcirename.h \
53c06b6b69Smrg         ct_regs.c \
54c06b6b69Smrg         ct_shadow.c \
55a1d73b4bSmrg         ct_video.c \
56a1d73b4bSmrg         compat-api.h
57