1# Copyright 2005 Adam Jackson. 2# 3# Permission is hereby granted, free of charge, to any person obtaining a 4# copy of this software and associated documentation files (the "Software"), 5# to deal in the Software without restriction, including without limitation 6# on the rights to use, copy, modify, merge, publish, distribute, sub 7# license, and/or sell copies of the Software, and to permit persons to whom 8# the Software is furnished to do so, subject to the following conditions: 9# 10# The above copyright notice and this permission notice (including the next 11# paragraph) shall be included in all copies or substantial portions of the 12# Software. 13# 14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21# this is obnoxious: 22# -module lets us name the module exactly how we want 23# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 24# _ladir passes a dummy rpath to libtool so the thing will actually link 25# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 26AM_CFLAGS = $(BASE_CFLAGS) $(XORG_CFLAGS) 27nv_drv_la_LTLIBRARIES = nv_drv.la 28nv_drv_la_LDFLAGS = -module -avoid-version 29nv_drv_ladir = @moduledir@/drivers 30 31nv_drv_la_SOURCES = $(nv_sources) $(riva_sources) $(g80_sources) 32 33nv_sources = \ 34 compat-api.h \ 35 pci_ids.h \ 36 nv_const.h \ 37 nv_cursor.c \ 38 nv_dac.c \ 39 nv_dga.c \ 40 nv_dma.h \ 41 nv_driver.c \ 42 nv_hw.c \ 43 nv_include.h \ 44 nv_local.h \ 45 nv_proto.h \ 46 nv_setup.c \ 47 nv_shadow.c \ 48 nv_type.h \ 49 nv_video.c \ 50 nv_xaa.c 51 52riva_sources = \ 53 riva_const.h \ 54 riva_cursor.c \ 55 riva_dac.c \ 56 riva_dga.c \ 57 riva_driver.c \ 58 riva_hw.c \ 59 riva_hw.h \ 60 riva_include.h \ 61 riva_local.h \ 62 riva_proto.h \ 63 riva_setup.c \ 64 riva_shadow.c \ 65 riva_tbl.h \ 66 riva_type.h \ 67 riva_xaa.c 68 69g80_sources = \ 70 g80_cursor.c \ 71 g80_cursor.h \ 72 g80_dac.c \ 73 g80_display.c \ 74 g80_display.h \ 75 g80_dma.c \ 76 g80_dma.h \ 77 g80_driver.c \ 78 g80_exa.c \ 79 g80_exa.h \ 80 g80_output.c \ 81 g80_output.h \ 82 g80_sor.c \ 83 g80_type.h \ 84 g80_xaa.c \ 85 g80_xaa.h 86 87