Makefile.am revision fa225cbc
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 21SUBDIRS = xvmc bios_reader ch7017 ch7xxx ivch sil164 tfp410 reg_dumper render_program 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 29AM_CFLAGS = @WARN_CFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \ 30 @PCIACCESS_CFLAGS@ -I$(top_srcdir)/uxa -I$(top_srcdir)/src/render_program 31 32intel_drv_la_LTLIBRARIES = intel_drv.la 33intel_drv_la_LDFLAGS = -module -avoid-version 34intel_drv_ladir = @moduledir@/drivers 35intel_drv_la_LIBADD = -lm @DRM_LIBS@ -ldrm_intel ../uxa/libuxa.la 36intel_drv_la_LIBADD += @PCIACCESS_LIBS@ 37 38INTEL_DRI_SRCS = \ 39 i810_dri.c \ 40 i810_dri.h \ 41 i830_dri.c \ 42 i810_hwmc.c \ 43 i830_dri.h 44 45INTEL_XVMC_SRCS = \ 46 i830_hwmc.h \ 47 i830_hwmc.c \ 48 i915_hwmc.c \ 49 i915_hwmc.h \ 50 i965_hwmc.c \ 51 i965_hwmc.h 52 53 54intel_drv_la_SOURCES = \ 55 brw_defines.h \ 56 brw_structs.h \ 57 common.h \ 58 i2c_vid.h \ 59 i810_accel.c \ 60 i810_common.h \ 61 i810_cursor.c \ 62 i810_dga.c \ 63 i810_driver.c \ 64 i810.h \ 65 i810_io.c \ 66 i810_memory.c \ 67 i810_reg.h \ 68 i810_ring.h \ 69 i810_video.c \ 70 i810_wmark.c \ 71 i830_3d.c \ 72 i830_accel.c \ 73 i830_bios.c \ 74 i830_bios.h \ 75 i830_batchbuffer.c \ 76 i830_batchbuffer.h \ 77 i830_common.h \ 78 i830_crt.c \ 79 i830_cursor.c \ 80 i830_debug.c \ 81 i830_debug.h \ 82 i830_display.c \ 83 i830_display.h \ 84 i830_quirks.c \ 85 i830_driver.c \ 86 i830_dvo.c \ 87 i830.h \ 88 i830_hdmi.c \ 89 i830_i2c.c \ 90 i830_io.c \ 91 i830_lvds.c \ 92 i830_memory.c \ 93 i830_modes.c \ 94 i830_video.c \ 95 i830_video.h \ 96 i830_reg.h \ 97 i830_ring.h \ 98 i830_sdvo.c \ 99 i830_sdvo.h \ 100 i830_sdvo_regs.h \ 101 i830_tv.c \ 102 i915_3d.c \ 103 i915_3d.h \ 104 i915_reg.h \ 105 i915_video.c \ 106 i965_video.c \ 107 i830_uxa.c \ 108 i830_render.c \ 109 i915_render.c \ 110 i965_render.c \ 111 drmmode_display.c 112 113EXTRA_DIST = \ 114 $(XMODE_SRCS) \ 115 $(INTEL_DRI_SRCS) \ 116 $(INTEL_XVMC_SRCS) 117 118if DRI 119intel_drv_la_SOURCES += \ 120 $(INTEL_DRI_SRCS) 121intel_drv_la_LIBADD += \ 122 $(DRI_LIBS) 123endif 124 125if XVMC 126intel_drv_la_SOURCES += \ 127 $(INTEL_XVMC_SRCS) 128endif 129