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