Makefile.am revision b7e1c893
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 = 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 USE_EXA 69RADEON_EXA_SOURCES = radeon_exa.c r600_exa.c r6xx_accel.c r600_textured_videofuncs.c r600_shader.c 70endif 71 72AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ @XMODES_CFLAGS@ -DDISABLE_EASF -DENABLE_ALL_SERVICE_FUNCTIONS -DATOM_BIOS -DATOM_BIOS_PARSER -DDRIVER_PARSER 73 74INCLUDES = -I$(srcdir)/AtomBios/includes 75 76if XSERVER_LIBPCIACCESS 77ati_drv_la_LIBADD = $(PCIACCESS_LIBS) 78radeon_drv_la_LIBADD += $(PCIACCESS_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_dga.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 \ 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 100if XMODES 101radeon_drv_la_SOURCES += \ 102 $(XMODE_SRCS) 103endif 104 105theatre_detect_drv_la_LTLIBRARIES = theatre_detect_drv.la 106theatre_detect_drv_la_LDFLAGS = -module -avoid-version 107theatre_detect_drv_ladir = @moduledir@/multimedia 108theatre_detect_drv_la_SOURCES = \ 109 theatre_detect.c theatre_detect_module.c 110 111theatre_drv_la_LTLIBRARIES = theatre_drv.la 112theatre_drv_la_LDFLAGS = -module -avoid-version 113theatre_drv_ladir = @moduledir@/multimedia 114 115theatre_drv_la_SOURCES = \ 116 theatre.c theatre_module.c 117 118theatre200_drv_la_LTLIBRARIES = theatre200_drv.la 119theatre200_drv_la_LDFLAGS = -module -avoid-version 120theatre200_drv_ladir = @moduledir@/multimedia 121theatre200_drv_la_CFLAGS = \ 122 $(AM_CFLAGS) -DMICROC_DIR=\"$(theatre200_drv_ladir)\" 123theatre200_drv_la_SOURCES = \ 124 theatre200.c theatre200_module.c 125 126EXTRA_DIST = \ 127 $(XMODE_SRCS) \ 128 radeon_render.c \ 129 radeon_accelfuncs.c \ 130 radeon_textured_videofuncs.c \ 131 r600_reg.h \ 132 r600_reg_auto_r6xx.h \ 133 r600_reg_r6xx.h \ 134 r600_reg_r7xx.h \ 135 r600_shader.h \ 136 r600_state.h \ 137 ati.h \ 138 ativersion.h \ 139 bicubic_table.h \ 140 generic_bus.h \ 141 radeon_commonfuncs.c \ 142 radeon_dri.h \ 143 radeon_drm.h \ 144 radeon_exa_render.c \ 145 radeon_exa_funcs.c \ 146 radeon.h \ 147 radeon_macros.h \ 148 radeon_probe.h \ 149 radeon_reg.h \ 150 radeon_version.h \ 151 radeon_video.h \ 152 radeon_tv.h \ 153 radeon_atomwrapper.h \ 154 theatre200.h \ 155 theatre_detect.h \ 156 theatre.h \ 157 theatre_reg.h \ 158 atipciids.h \ 159 atipcirename.h \ 160 ati_pciids_gen.h \ 161 radeon_chipinfo_gen.h \ 162 radeon_chipset_gen.h \ 163 radeon_pci_chipset_gen.h \ 164 radeon_pci_device_match_gen.h \ 165 pcidb/ati_pciids.csv \ 166 pcidb/parse_pci_ids.pl \ 167 radeon_atombios.h 168