Makefile.am revision de2362d3
1de2362d3Smrg# Copyright 2005 Adam Jackson. 2de2362d3Smrg# Copyright 2005 Red Hat, Inc. 3de2362d3Smrg# 4de2362d3Smrg# Permission is hereby granted, free of charge, to any person obtaining a 5de2362d3Smrg# copy of this software and associated documentation files (the "Software"), 6de2362d3Smrg# to deal in the Software without restriction, including without limitation 7de2362d3Smrg# on the rights to use, copy, modify, merge, publish, distribute, sub 8de2362d3Smrg# license, and/or sell copies of the Software, and to permit persons to whom 9de2362d3Smrg# the Software is furnished to do so, subject to the following conditions: 10de2362d3Smrg# 11de2362d3Smrg# The above copyright notice and this permission notice (including the next 12de2362d3Smrg# paragraph) shall be included in all copies or substantial portions of the 13de2362d3Smrg# Software. 14de2362d3Smrg# 15de2362d3Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16de2362d3Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17de2362d3Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 18de2362d3Smrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19de2362d3Smrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20de2362d3Smrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21de2362d3Smrg 22de2362d3Smrg 23de2362d3Smrg# this is obnoxious: 24de2362d3Smrg# -module lets us name the module exactly how we want 25de2362d3Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 26de2362d3Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link 27de2362d3Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 28de2362d3Smrg 29de2362d3Smrgati_drv_la_LIBADD = $(PCIACCESS_LIBS) 30de2362d3Smrgradeon_drv_la_LIBADD = $(LIBDRM_RADEON_LIBS) $(PCIACCESS_LIBS) 31de2362d3Smrg 32de2362d3SmrgRADEON_KMS_SRCS=radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c \ 33de2362d3Smrg radeon_bo_helper.c 34de2362d3Smrg 35de2362d3SmrgRADEON_EXA_SOURCES = radeon_exa.c r600_exa.c r6xx_accel.c r600_textured_videofuncs.c r600_shader.c radeon_exa_shared.c \ 36de2362d3Smrg evergreen_exa.c evergreen_accel.c evergreen_shader.c evergreen_textured_videofuncs.c cayman_accel.c cayman_shader.c 37de2362d3Smrg 38de2362d3SmrgAM_CFLAGS = \ 39de2362d3Smrg @LIBDRM_RADEON_CFLAGS@ \ 40de2362d3Smrg @XORG_CFLAGS@ \ 41de2362d3Smrg @LIBUDEV_CFLAGS@ 42de2362d3Smrg 43de2362d3Smrgif LIBUDEV 44de2362d3Smrgradeon_drv_la_LIBADD += $(LIBUDEV_LIBS) 45de2362d3Smrgendif 46de2362d3Smrg 47de2362d3Smrgati_drv_la_LTLIBRARIES = ati_drv.la 48de2362d3Smrgati_drv_la_LDFLAGS = -module -avoid-version 49de2362d3Smrgati_drv_ladir = @moduledir@/drivers 50de2362d3Smrgati_drv_la_SOURCES = \ 51de2362d3Smrg ati.c atimodule.c 52de2362d3Smrg 53de2362d3Smrgradeon_drv_la_LTLIBRARIES = radeon_drv.la 54de2362d3Smrgradeon_drv_la_LDFLAGS = -module -avoid-version 55de2362d3Smrgradeon_drv_ladir = @moduledir@/drivers 56de2362d3Smrgradeon_drv_la_SOURCES = \ 57de2362d3Smrg radeon_accel.c radeon_video.c \ 58de2362d3Smrg radeon_misc.c radeon_probe.c \ 59de2362d3Smrg radeon_textured_video.c radeon_xvmc.c \ 60de2362d3Smrg $(RADEON_EXA_SOURCES) \ 61de2362d3Smrg $(RADEON_KMS_SRCS) 62de2362d3Smrg 63de2362d3Smrgif GLAMOR 64de2362d3SmrgAM_CFLAGS += @LIBGLAMOR_CFLAGS@ 65de2362d3Smrgradeon_drv_la_LIBADD += @LIBGLAMOR_LIBS@ 66de2362d3Smrgradeon_drv_la_SOURCES += \ 67de2362d3Smrg radeon_glamor.c 68de2362d3Smrgendif 69de2362d3Smrg 70de2362d3SmrgEXTRA_DIST = \ 71de2362d3Smrg radeon_textured_videofuncs.c \ 72de2362d3Smrg r600_reg.h \ 73de2362d3Smrg r600_reg_auto_r6xx.h \ 74de2362d3Smrg r600_reg_r6xx.h \ 75de2362d3Smrg r600_reg_r7xx.h \ 76de2362d3Smrg r600_shader.h \ 77de2362d3Smrg r600_state.h \ 78de2362d3Smrg evergreen_reg.h \ 79de2362d3Smrg evergreen_reg_auto.h \ 80de2362d3Smrg evergreen_shader.h \ 81de2362d3Smrg evergreen_state.h \ 82de2362d3Smrg cayman_reg.h \ 83de2362d3Smrg cayman_reg_auto.h \ 84de2362d3Smrg cayman_shader.h \ 85de2362d3Smrg compat-api.h \ 86de2362d3Smrg ati.h \ 87de2362d3Smrg ativersion.h \ 88de2362d3Smrg bicubic_table.h \ 89de2362d3Smrg bicubic_table.py \ 90de2362d3Smrg radeon_bo_helper.h \ 91de2362d3Smrg radeon_exa_render.c \ 92de2362d3Smrg radeon_exa_funcs.c \ 93de2362d3Smrg radeon_exa_shared.h \ 94de2362d3Smrg radeon_glamor.h \ 95de2362d3Smrg radeon.h \ 96de2362d3Smrg radeon_probe.h \ 97de2362d3Smrg radeon_reg.h \ 98de2362d3Smrg radeon_version.h \ 99de2362d3Smrg radeon_vbo.h \ 100de2362d3Smrg radeon_video.h \ 101de2362d3Smrg simple_list.h \ 102de2362d3Smrg atipciids.h \ 103de2362d3Smrg atipcirename.h \ 104de2362d3Smrg ati_pciids_gen.h \ 105de2362d3Smrg radeon_chipinfo_gen.h \ 106de2362d3Smrg radeon_chipset_gen.h \ 107de2362d3Smrg radeon_pci_chipset_gen.h \ 108de2362d3Smrg radeon_pci_device_match_gen.h \ 109de2362d3Smrg pcidb/ati_pciids.csv \ 110de2362d3Smrg pcidb/parse_pci_ids.pl \ 111de2362d3Smrg radeon_dri2.h \ 112de2362d3Smrg drmmode_display.h 113