Makefile.am revision 8c7da7f0
1# Copyright 2005 Adam Jackson. 2# 3# Permission is hereby granted, free of charge, to any person obtaining a 4# copy of this software and associated documentation files (the "Software"), 5# to deal in the Software without restriction, including without limitation 6# on the rights to use, copy, modify, merge, publish, distribute, sub 7# license, and/or sell copies of the Software, and to permit persons to whom 8# the Software is furnished to do so, subject to the following conditions: 9# 10# The above copyright notice and this permission notice (including the next 11# paragraph) shall be included in all copies or substantial portions of the 12# Software. 13# 14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21if LIBPCIACCESS 22REGDUMPER = reg_dumper 23endif 24 25SUBDIRS = xvmc bios_reader ch7017 ch7xxx ivch sil164 tfp410 $(REGDUMPER) 26 27# this is obnoxious: 28# -module lets us name the module exactly how we want 29# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 30# _ladir passes a dummy rpath to libtool so the thing will actually link 31# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 32 33AM_CFLAGS = @WARN_CFLAGS@ @XORG_CFLAGS@ @DRI_CFLAGS@ @PCIACCESS_CFLAGS@ \ 34 @XMODES_CFLAGS@ -DI830_XV -DI830_USE_XAA -DI830_USE_EXA 35 36intel_drv_la_LTLIBRARIES = intel_drv.la 37intel_drv_la_LDFLAGS = -module -avoid-version 38intel_drv_ladir = @moduledir@/drivers 39intel_drv_la_LIBADD = 40if XSERVER_LIBPCIACCESS 41intel_drv_la_LIBADD += @PCIACCESS_LIBS@ 42endif 43 44XMODE_SRCS=\ 45 local_xf86Rename.h \ 46 parser/xf86Parser.h \ 47 parser/xf86Optrec.h \ 48 modes/xf86Modes.h \ 49 modes/xf86Modes.c \ 50 modes/xf86cvt.c \ 51 modes/xf86Crtc.h \ 52 modes/xf86Crtc.c \ 53 modes/xf86Cursors.c \ 54 modes/xf86EdidModes.c \ 55 modes/xf86RandR12.c \ 56 modes/xf86RandR12.h \ 57 modes/xf86Rename.h \ 58 modes/xf86Rotate.c \ 59 modes/xf86DiDGA.c 60 61INTEL_DRI_SRCS = \ 62 i810_dri.c \ 63 i810_dri.h \ 64 i830_dri.c \ 65 i810_hwmc.c \ 66 i830_dri.h 67 68INTEL_XVMC_SRCS = \ 69 i830_hwmc.h \ 70 i830_hwmc.c \ 71 i915_hwmc.c \ 72 i915_hwmc.h 73 74 75intel_drv_la_SOURCES = \ 76 brw_defines.h \ 77 brw_structs.h \ 78 common.h \ 79 i2c_vid.h \ 80 i810_accel.c \ 81 i810_common.h \ 82 i810_cursor.c \ 83 i810_dga.c \ 84 i810_driver.c \ 85 i810.h \ 86 i810_io.c \ 87 i810_memory.c \ 88 i810_reg.h \ 89 i810_ring.h \ 90 i810_video.c \ 91 i810_wmark.c \ 92 i830_3d.c \ 93 i830_accel.c \ 94 i830_bios.c \ 95 i830_bios.h \ 96 i830_common.h \ 97 i830_crt.c \ 98 i830_cursor.c \ 99 i830_debug.c \ 100 i830_debug.h \ 101 i830_display.c \ 102 i830_display.h \ 103 i830_quirks.c \ 104 i830_driver.c \ 105 i830_dvo.c \ 106 i830.h \ 107 i830_hdmi.c \ 108 i830_i2c.c \ 109 i830_io.c \ 110 i830_lvds.c \ 111 i830_memory.c \ 112 i830_modes.c \ 113 i830_video.c \ 114 i830_video.h \ 115 i830_reg.h \ 116 i830_ring.h \ 117 i830_sdvo.c \ 118 i830_sdvo.h \ 119 i830_sdvo_regs.h \ 120 i830_tv.c \ 121 i915_3d.c \ 122 i915_3d.h \ 123 i915_reg.h \ 124 i915_video.c \ 125 i965_video.c \ 126 i830_exa.c \ 127 i830_xaa.c \ 128 i830_render.c \ 129 i915_render.c \ 130 i965_render.c 131 132INTEL_G4A = \ 133 packed_yuv_sf.g4a \ 134 packed_yuv_wm.g4a \ 135 exa_sf.g4a \ 136 exa_sf_mask.g4a \ 137 exa_wm_src_affine.g4a \ 138 exa_wm_src_projective.g4a \ 139 exa_wm_src_sample_argb.g4a \ 140 exa_wm_src_sample_a.g4a \ 141 exa_wm_src_sample_planar.g4a \ 142 exa_wm_mask_affine.g4a \ 143 exa_wm_mask_projective.g4a \ 144 exa_wm_mask_sample_argb.g4a \ 145 exa_wm_mask_sample_a.g4a \ 146 exa_wm_noca.g4a \ 147 exa_wm_ca.g4a \ 148 exa_wm_ca_srcalpha.g4a \ 149 exa_wm_write.g4a \ 150 exa_wm_yuv_rgb.g4a \ 151 exa_wm_xy.g4a 152 153INTEL_G4I = \ 154 exa_wm.g4i \ 155 exa_wm_affine.g4i \ 156 exa_wm_projective.g4i 157 158 159INTEL_G4B = \ 160 packed_yuv_sf.g4b \ 161 packed_yuv_wm.g4b \ 162 exa_sf.g4b \ 163 exa_sf_mask.g4b \ 164 exa_wm_src_affine.g4b \ 165 exa_wm_src_projective.g4b \ 166 exa_wm_src_sample_argb.g4b \ 167 exa_wm_src_sample_a.g4b \ 168 exa_wm_src_sample_planar.g4b \ 169 exa_wm_mask_affine.g4b \ 170 exa_wm_mask_projective.g4b \ 171 exa_wm_mask_sample_argb.g4b \ 172 exa_wm_mask_sample_a.g4b \ 173 exa_wm_noca.g4b \ 174 exa_wm_ca.g4b \ 175 exa_wm_ca_srcalpha.g4b \ 176 exa_wm_write.g4b \ 177 exa_wm_yuv_rgb.g4b \ 178 exa_wm_xy.g4b 179 180EXTRA_DIST = \ 181 $(XMODE_SRCS) \ 182 $(INTEL_G4A) \ 183 $(INTEL_G4I) \ 184 $(INTEL_G4B) \ 185 $(INTEL_DRI_SRCS) \ 186 $(INTEL_XVMC_SRCS) 187 188if HAVE_GEN4ASM 189 190SUFFIXES = .g4a .g4b 191.g4a.g4b: 192 m4 -I$(srcdir) -s $< > $*.g4m && intel-gen4asm -o $@ $*.g4m && rm $*.g4m 193 194$(INTEL_G4B): $(INTEL_G4I) 195 196BUILT_SOURCES= $(INTEL_G4B) 197 198clean-local: 199 -rm -f $(INTEL_G4B) 200endif 201 202if XMODES 203intel_drv_la_SOURCES += \ 204 $(XMODE_SRCS) 205endif 206 207if DRI 208intel_drv_la_SOURCES += \ 209 $(INTEL_DRI_SRCS) 210intel_drv_la_LIBADD += \ 211 $(DRI_LIBS) 212endif 213 214if XVMC 215intel_drv_la_SOURCES += \ 216 $(INTEL_XVMC_SRCS) 217endif 218 219install-data-local: install-intel_drv_laLTLIBRARIES 220 (cd $(DESTDIR)$(intel_drv_ladir) && rm -f i810_drv.so && ln -s intel_drv.so i810_drv.so) 221 222uninstall-local: 223 (cd $(DESTDIR)$(intel_drv_ladir) && rm -f i810_drv.so) 224