176888252Smrg# Copyright 2005 Adam Jackson. 276888252Smrg# 376888252Smrg# Permission is hereby granted, free of charge, to any person obtaining a 476888252Smrg# copy of this software and associated documentation files (the "Software"), 576888252Smrg# to deal in the Software without restriction, including without limitation 676888252Smrg# on the rights to use, copy, modify, merge, publish, distribute, sub 776888252Smrg# license, and/or sell copies of the Software, and to permit persons to whom 876888252Smrg# the Software is furnished to do so, subject to the following conditions: 976888252Smrg# 1076888252Smrg# The above copyright notice and this permission notice (including the next 1176888252Smrg# paragraph) shall be included in all copies or substantial portions of the 1276888252Smrg# Software. 1376888252Smrg# 1476888252Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1576888252Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1676888252Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 1776888252Smrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 1876888252Smrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1976888252Smrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2076888252Smrg 2176888252Smrg# this is obnoxious: 2276888252Smrg# -module lets us name the module exactly how we want 2376888252Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 2476888252Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link 2576888252Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 261ae1b5e8SmrgAM_CFLAGS = @XORG_CFLAGS@ $(CWARNFLAGS) 2776888252Smrg 2876888252Smrgcirrus_drv_la_LTLIBRARIES = cirrus_drv.la 2976888252Smrgcirrus_drv_la_LDFLAGS = -module -avoid-version 3076888252Smrgcirrus_drv_ladir = @moduledir@/drivers 3176888252Smrgcirrus_drv_la_SOURCES = \ 3276888252Smrg cir_dga.c \ 3376888252Smrg cir_driver.c \ 3476888252Smrg cir.h \ 3576888252Smrg CirrusClk.c \ 361ae1b5e8Smrg cir_shadow.c \ 3763847c39Smrg cir_pcirename.h \ 380814a2baSmrg compat-api.h \ 3976888252Smrg alp_driver.c \ 4076888252Smrg alp.h \ 4176888252Smrg alp_hwcurs.c \ 420814a2baSmrg alp_i2c.c \ 4376888252Smrg lg_driver.c \ 4476888252Smrg lg.h \ 4576888252Smrg lg_hwcurs.c \ 469586ba5aSmrg lg_i2c.c 470814a2baSmrg 489586ba5aSmrgif XAA 490814a2baSmrgcirrus_drv_la_SOURCES += \ 500814a2baSmrg alp_xaa.c \ 510814a2baSmrg alp_xaam.c \ 5276888252Smrg lg_xaa.c \ 5376888252Smrg lg_xaa.h 549586ba5aSmrgendif 55