17706df26Smrg# Copyright 2005 Adam Jackson. 27706df26Smrg# 37706df26Smrg# Permission is hereby granted, free of charge, to any person obtaining a 47706df26Smrg# copy of this software and associated documentation files (the "Software"), 57706df26Smrg# to deal in the Software without restriction, including without limitation 67706df26Smrg# on the rights to use, copy, modify, merge, publish, distribute, sub 77706df26Smrg# license, and/or sell copies of the Software, and to permit persons to whom 87706df26Smrg# the Software is furnished to do so, subject to the following conditions: 97706df26Smrg# 107706df26Smrg# The above copyright notice and this permission notice (including the next 117706df26Smrg# paragraph) shall be included in all copies or substantial portions of the 127706df26Smrg# Software. 137706df26Smrg# 147706df26Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 157706df26Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 167706df26Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 177706df26Smrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 187706df26Smrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 197706df26Smrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 207706df26Smrg 217706df26Smrg# this is obnoxious: 227706df26Smrg# -module lets us name the module exactly how we want 237706df26Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 247706df26Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link 257706df26Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 267706df26SmrgAM_CFLAGS = @XORG_CFLAGS@ 277706df26Smrgtga_drv_la_LTLIBRARIES = tga_drv.la 287706df26Smrgtga_drv_la_LDFLAGS = -module -avoid-version 297706df26Smrgtga_drv_ladir = @moduledir@/drivers 307706df26Smrg 317706df26Smrgtga_drv_la_SOURCES = \ 327706df26Smrg BT463ramdac.c \ 337706df26Smrg BTramdac.c \ 347706df26Smrg IBM561ramdac.c \ 357706df26Smrg ICS1562.c \ 36b92e825aSmrg compat-api.h \ 377706df26Smrg tga_accel.c \ 387706df26Smrg tga_cursor.c \ 397706df26Smrg tga_dac.c \ 407706df26Smrg tga_driver.c \ 417706df26Smrg tga.h \ 427706df26Smrg tga_line.c \ 437706df26Smrg tga_seg.c \ 44047944f3Smrg tga_regs.h \ 45047944f3Smrg tga_pcirename.h 467706df26Smrg 477706df26Smrgtga_seg.c: $(srcdir)/tga_line.c 487706df26Smrg echo "#define POLYSEGMENT" > tga_seg.c 497706df26Smrg echo "#include \"$(srcdir)/tga_line.c\"" >> tga_seg.c 50