Makefile.am revision 0974d292
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 57endif 58 59AM_CFLAGS = \ 60 @LIBDRM_RADEON_CFLAGS@ \ 61 @XORG_CFLAGS@ \ 62 @DRI_CFLAGS@ \ 63 @LIBUDEV_CFLAGS@ \ 64 -DDISABLE_EASF \ 65 -DENABLE_ALL_SERVICE_FUNCTIONS \ 66 -DATOM_BIOS \ 67 -DATOM_BIOS_PARSER \ 68 -DDRIVER_PARSER 69 70INCLUDES = -I$(srcdir)/AtomBios/includes 71 72if XSERVER_LIBPCIACCESS 73ati_drv_la_LIBADD = $(PCIACCESS_LIBS) 74radeon_drv_la_LIBADD += $(PCIACCESS_LIBS) 75endif 76 77if LIBUDEV 78radeon_drv_la_LIBADD += $(LIBUDEV_LIBS) 79endif 80 81ati_drv_la_LTLIBRARIES = ati_drv.la 82ati_drv_la_LDFLAGS = -module -avoid-version 83ati_drv_ladir = @moduledir@/drivers 84ati_drv_la_SOURCES = \ 85 ati.c atimodule.c 86 87radeon_drv_la_LTLIBRARIES = radeon_drv.la 88radeon_drv_la_LDFLAGS = -module -avoid-version 89radeon_drv_ladir = @moduledir@/drivers 90radeon_drv_la_SOURCES = \ 91 radeon_accel.c radeon_cursor.c radeon_legacy_memory.c \ 92 radeon_driver.c radeon_video.c radeon_bios.c radeon_mm_i2c.c \ 93 radeon_vip.c radeon_misc.c radeon_probe.c \ 94 legacy_crtc.c legacy_output.c \ 95 radeon_textured_video.c radeon_pm.c \ 96 radeon_crtc.c radeon_output.c radeon_modes.c radeon_tv.c \ 97 $(RADEON_ATOMBIOS_SOURCES) radeon_atombios.c radeon_atomwrapper.c \ 98 $(RADEON_DRI_SRCS) $(RADEON_EXA_SOURCES) atombios_output.c atombios_crtc.c \ 99 $(RADEON_KMS_SRCS) 100 101theatre_detect_drv_la_LTLIBRARIES = theatre_detect_drv.la 102theatre_detect_drv_la_LDFLAGS = -module -avoid-version 103theatre_detect_drv_ladir = @moduledir@/multimedia 104theatre_detect_drv_la_SOURCES = \ 105 theatre_detect.c theatre_detect_module.c 106 107theatre_drv_la_LTLIBRARIES = theatre_drv.la 108theatre_drv_la_LDFLAGS = -module -avoid-version 109theatre_drv_ladir = @moduledir@/multimedia 110 111theatre_drv_la_SOURCES = \ 112 theatre.c theatre_module.c 113 114theatre200_drv_la_LTLIBRARIES = theatre200_drv.la 115theatre200_drv_la_LDFLAGS = -module -avoid-version 116theatre200_drv_ladir = @moduledir@/multimedia 117theatre200_drv_la_CFLAGS = \ 118 $(AM_CFLAGS) -DMICROC_DIR=\"$(theatre200_drv_ladir)\" 119theatre200_drv_la_SOURCES = \ 120 theatre200.c theatre200_module.c 121 122EXTRA_DIST = \ 123 radeon_render.c \ 124 radeon_accelfuncs.c \ 125 radeon_textured_videofuncs.c \ 126 r600_reg.h \ 127 r600_reg_auto_r6xx.h \ 128 r600_reg_r6xx.h \ 129 r600_reg_r7xx.h \ 130 r600_shader.h \ 131 r600_state.h \ 132 ati.h \ 133 ativersion.h \ 134 bicubic_table.h \ 135 generic_bus.h \ 136 radeon_commonfuncs.c \ 137 radeon_dri.h \ 138 radeon_drm.h \ 139 radeon_dummy_bufmgr.h \ 140 radeon_exa_render.c \ 141 radeon_exa_funcs.c \ 142 radeon_exa_shared.h \ 143 radeon.h \ 144 radeon_macros.h \ 145 radeon_probe.h \ 146 radeon_reg.h \ 147 radeon_version.h \ 148 radeon_vbo.h \ 149 radeon_video.h \ 150 radeon_tv.h \ 151 radeon_atomwrapper.h \ 152 simple_list.h \ 153 theatre200.h \ 154 theatre_detect.h \ 155 theatre.h \ 156 theatre_reg.h \ 157 atipciids.h \ 158 atipcirename.h \ 159 ati_pciids_gen.h \ 160 radeon_chipinfo_gen.h \ 161 radeon_chipset_gen.h \ 162 radeon_pci_chipset_gen.h \ 163 radeon_pci_device_match_gen.h \ 164 pcidb/ati_pciids.csv \ 165 pcidb/parse_pci_ids.pl \ 166 radeon_atombios.h \ 167 radeon_dri2.h \ 168 drmmode_display.h 169