Makefile.am revision 68105dcb
1# Copyright 2005 Adam Jackson. 2# Copyright 2005 Red Hat, Inc. 3# 4# Permission is hereby granted, free of charge, to any person obtaining a 5# copy of this software and associated documentation files (the "Software"), 6# to deal in the Software without restriction, including without limitation 7# on the rights to use, copy, modify, merge, publish, distribute, sub 8# license, and/or sell copies of the Software, and to permit persons to whom 9# the Software is furnished to do so, subject to the following conditions: 10# 11# The above copyright notice and this permission notice (including the next 12# paragraph) shall be included in all copies or substantial portions of the 13# Software. 14# 15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 18# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 22 23# this is obnoxious: 24# -module lets us name the module exactly how we want 25# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 26# _ladir passes a dummy rpath to libtool so the thing will actually link 27# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 28 29radeon_drv_la_LIBADD = $(LIBDRM_RADEON_LIBS) 30 31if DRI 32RADEON_DRI_SRCS = radeon_dri.c 33radeon_drv_la_LIBADD += $(DRI_LIBS) 34endif 35 36RADEON_ATOMBIOS_SOURCES = \ 37 AtomBios/CD_Operations.c \ 38 AtomBios/Decoder.c \ 39 AtomBios/hwserv_drv.c \ 40 AtomBios/includes/atombios.h \ 41 AtomBios/includes/CD_binding.h \ 42 AtomBios/includes/CD_Common_Types.h \ 43 AtomBios/includes/CD_Definitions.h \ 44 AtomBios/includes/CD_hw_services.h \ 45 AtomBios/includes/CD_Opcodes.h \ 46 AtomBios/includes/CD_Structs.h \ 47 AtomBios/includes/Decoder.h \ 48 AtomBios/includes/ObjectID.h \ 49 AtomBios/includes/regsdef.h 50 51if XF86DRM_MODE 52RADEON_KMS_SRCS=radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c 53endif 54 55if USE_EXA 56RADEON_EXA_SOURCES = radeon_exa.c r600_exa.c r6xx_accel.c r600_textured_videofuncs.c r600_shader.c radeon_exa_shared.c \ 57 evergreen_exa.c evergreen_accel.c evergreen_shader.c evergreen_textured_videofuncs.c cayman_accel.c cayman_shader.c 58endif 59 60AM_CFLAGS = \ 61 @LIBDRM_RADEON_CFLAGS@ \ 62 @XORG_CFLAGS@ \ 63 @DRI_CFLAGS@ \ 64 @LIBUDEV_CFLAGS@ \ 65 -DDISABLE_EASF \ 66 -DENABLE_ALL_SERVICE_FUNCTIONS \ 67 -DATOM_BIOS \ 68 -DATOM_BIOS_PARSER \ 69 -DDRIVER_PARSER 70 71INCLUDES = -I$(srcdir)/AtomBios/includes 72 73if XSERVER_LIBPCIACCESS 74ati_drv_la_LIBADD = $(PCIACCESS_LIBS) 75radeon_drv_la_LIBADD += $(PCIACCESS_LIBS) 76endif 77 78if LIBUDEV 79radeon_drv_la_LIBADD += $(LIBUDEV_LIBS) 80endif 81 82ati_drv_la_LTLIBRARIES = ati_drv.la 83ati_drv_la_LDFLAGS = -module -avoid-version 84ati_drv_ladir = @moduledir@/drivers 85ati_drv_la_SOURCES = \ 86 ati.c atimodule.c 87 88radeon_drv_la_LTLIBRARIES = radeon_drv.la 89radeon_drv_la_LDFLAGS = -module -avoid-version 90radeon_drv_ladir = @moduledir@/drivers 91radeon_drv_la_SOURCES = \ 92 radeon_accel.c radeon_cursor.c radeon_legacy_memory.c \ 93 radeon_driver.c radeon_video.c radeon_bios.c radeon_mm_i2c.c \ 94 radeon_vip.c radeon_misc.c radeon_probe.c \ 95 legacy_crtc.c legacy_output.c \ 96 radeon_textured_video.c radeon_xvmc.c radeon_pm.c \ 97 radeon_crtc.c radeon_output.c radeon_modes.c radeon_tv.c \ 98 $(RADEON_ATOMBIOS_SOURCES) radeon_atombios.c radeon_atomwrapper.c \ 99 $(RADEON_DRI_SRCS) $(RADEON_EXA_SOURCES) atombios_output.c atombios_crtc.c \ 100 $(RADEON_KMS_SRCS) 101 102theatre_detect_drv_la_LTLIBRARIES = theatre_detect_drv.la 103theatre_detect_drv_la_LDFLAGS = -module -avoid-version 104theatre_detect_drv_ladir = @moduledir@/multimedia 105theatre_detect_drv_la_SOURCES = \ 106 theatre_detect.c theatre_detect_module.c 107 108theatre_drv_la_LTLIBRARIES = theatre_drv.la 109theatre_drv_la_LDFLAGS = -module -avoid-version 110theatre_drv_ladir = @moduledir@/multimedia 111 112theatre_drv_la_SOURCES = \ 113 theatre.c theatre_module.c 114 115theatre200_drv_la_LTLIBRARIES = theatre200_drv.la 116theatre200_drv_la_LDFLAGS = -module -avoid-version 117theatre200_drv_ladir = @moduledir@/multimedia 118theatre200_drv_la_CFLAGS = \ 119 $(AM_CFLAGS) -DMICROC_DIR=\"$(theatre200_drv_ladir)\" 120theatre200_drv_la_SOURCES = \ 121 theatre200.c theatre200_module.c 122 123EXTRA_DIST = \ 124 radeon_render.c \ 125 radeon_accelfuncs.c \ 126 radeon_textured_videofuncs.c \ 127 r600_reg.h \ 128 r600_reg_auto_r6xx.h \ 129 r600_reg_r6xx.h \ 130 r600_reg_r7xx.h \ 131 r600_shader.h \ 132 r600_state.h \ 133 evergreen_reg.h \ 134 evergreen_reg_auto.h \ 135 evergreen_shader.h \ 136 evergreen_state.h \ 137 cayman_reg.h \ 138 cayman_reg_auto.h \ 139 cayman_shader.h \ 140 compat-api.h \ 141 ati.h \ 142 ativersion.h \ 143 bicubic_table.h \ 144 generic_bus.h \ 145 radeon_commonfuncs.c \ 146 radeon_dri.h \ 147 radeon_drm.h \ 148 radeon_dummy_bufmgr.h \ 149 radeon_exa_render.c \ 150 radeon_exa_funcs.c \ 151 radeon_exa_shared.h \ 152 radeon.h \ 153 radeon_macros.h \ 154 radeon_probe.h \ 155 radeon_reg.h \ 156 radeon_version.h \ 157 radeon_vbo.h \ 158 radeon_video.h \ 159 radeon_tv.h \ 160 radeon_atomwrapper.h \ 161 simple_list.h \ 162 theatre200.h \ 163 theatre_detect.h \ 164 theatre.h \ 165 theatre_reg.h \ 166 atipciids.h \ 167 atipcirename.h \ 168 ati_pciids_gen.h \ 169 radeon_chipinfo_gen.h \ 170 radeon_chipset_gen.h \ 171 radeon_pci_chipset_gen.h \ 172 radeon_pci_device_match_gen.h \ 173 pcidb/ati_pciids.csv \ 174 pcidb/parse_pci_ids.pl \ 175 radeon_atombios.h \ 176 radeon_dri2.h \ 177 drmmode_display.h 178