1fa225cbcSrjs#  Copyright 2005 Adam Jackson.
2fa225cbcSrjs#
3fa225cbcSrjs#  Permission is hereby granted, free of charge, to any person obtaining a
4fa225cbcSrjs#  copy of this software and associated documentation files (the "Software"),
5fa225cbcSrjs#  to deal in the Software without restriction, including without limitation
6fa225cbcSrjs#  on the rights to use, copy, modify, merge, publish, distribute, sub
7fa225cbcSrjs#  license, and/or sell copies of the Software, and to permit persons to whom
8fa225cbcSrjs#  the Software is furnished to do so, subject to the following conditions:
9fa225cbcSrjs#
10fa225cbcSrjs#  The above copyright notice and this permission notice (including the next
11fa225cbcSrjs#  paragraph) shall be included in all copies or substantial portions of the
12fa225cbcSrjs#  Software.
13fa225cbcSrjs#
14fa225cbcSrjs#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15fa225cbcSrjs#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16fa225cbcSrjs#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17fa225cbcSrjs#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18fa225cbcSrjs#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19fa225cbcSrjs#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20fa225cbcSrjs
21fa225cbcSrjsSUBDIRS = xvmc bios_reader ch7017 ch7xxx ivch sil164 tfp410 reg_dumper render_program
22fa225cbcSrjs
23fa225cbcSrjs# this is obnoxious:
24fa225cbcSrjs# -module lets us name the module exactly how we want
25fa225cbcSrjs# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
26fa225cbcSrjs# _ladir passes a dummy rpath to libtool so the thing will actually link
27fa225cbcSrjs# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
28fa225cbcSrjs
29fa225cbcSrjsAM_CFLAGS = @WARN_CFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
30fa225cbcSrjs	@PCIACCESS_CFLAGS@ -I$(top_srcdir)/uxa -I$(top_srcdir)/src/render_program
31fa225cbcSrjs
32fa225cbcSrjsintel_drv_la_LTLIBRARIES = intel_drv.la
33fa225cbcSrjsintel_drv_la_LDFLAGS = -module -avoid-version
34fa225cbcSrjsintel_drv_ladir = @moduledir@/drivers
35fa225cbcSrjsintel_drv_la_LIBADD = -lm @DRM_LIBS@ -ldrm_intel ../uxa/libuxa.la
36fa225cbcSrjsintel_drv_la_LIBADD += @PCIACCESS_LIBS@
37fa225cbcSrjs
38fa225cbcSrjsINTEL_DRI_SRCS = \
39fa225cbcSrjs         i810_dri.c \
40fa225cbcSrjs         i810_dri.h \
41fa225cbcSrjs         i830_dri.c \
42fa225cbcSrjs         i810_hwmc.c \
43fa225cbcSrjs         i830_dri.h
44fa225cbcSrjs
45fa225cbcSrjsINTEL_XVMC_SRCS = \
46fa225cbcSrjs	 i830_hwmc.h \
47fa225cbcSrjs	 i830_hwmc.c \
48fa225cbcSrjs         i915_hwmc.c \
49fa225cbcSrjs         i915_hwmc.h \
50fa225cbcSrjs         i965_hwmc.c \
51fa225cbcSrjs         i965_hwmc.h
52fa225cbcSrjs
53fa225cbcSrjs
54fa225cbcSrjsintel_drv_la_SOURCES = \
55fa225cbcSrjs         brw_defines.h \
56fa225cbcSrjs         brw_structs.h \
57fa225cbcSrjs         common.h \
58fa225cbcSrjs	 i2c_vid.h \
59fa225cbcSrjs         i810_accel.c \
60fa225cbcSrjs         i810_common.h \
61fa225cbcSrjs         i810_cursor.c \
62fa225cbcSrjs         i810_dga.c \
63fa225cbcSrjs         i810_driver.c \
64fa225cbcSrjs         i810.h \
65fa225cbcSrjs         i810_io.c \
66fa225cbcSrjs         i810_memory.c \
67fa225cbcSrjs         i810_reg.h \
68fa225cbcSrjs         i810_ring.h \
69fa225cbcSrjs         i810_video.c \
70fa225cbcSrjs         i810_wmark.c \
71fa225cbcSrjs	 i830_3d.c \
72fa225cbcSrjs         i830_accel.c \
73fa225cbcSrjs         i830_bios.c \
74fa225cbcSrjs         i830_bios.h \
75fa225cbcSrjs         i830_batchbuffer.c \
76fa225cbcSrjs         i830_batchbuffer.h \
77fa225cbcSrjs         i830_common.h \
78fa225cbcSrjs	 i830_crt.c \
79fa225cbcSrjs         i830_cursor.c \
80fa225cbcSrjs	 i830_debug.c \
81fa225cbcSrjs	 i830_debug.h \
82fa225cbcSrjs	 i830_display.c \
83fa225cbcSrjs	 i830_display.h \
84fa225cbcSrjs         i830_quirks.c \
85fa225cbcSrjs         i830_driver.c \
86fa225cbcSrjs	 i830_dvo.c \
87fa225cbcSrjs         i830.h \
88fa225cbcSrjs	 i830_hdmi.c \
89fa225cbcSrjs         i830_i2c.c \
90fa225cbcSrjs         i830_io.c \
91fa225cbcSrjs	 i830_lvds.c \
92fa225cbcSrjs         i830_memory.c \
93fa225cbcSrjs         i830_modes.c \
94fa225cbcSrjs         i830_video.c \
95fa225cbcSrjs         i830_video.h \
96fa225cbcSrjs	 i830_reg.h \
97fa225cbcSrjs         i830_ring.h \
98fa225cbcSrjs	 i830_sdvo.c \
99fa225cbcSrjs	 i830_sdvo.h \
100fa225cbcSrjs	 i830_sdvo_regs.h \
101fa225cbcSrjs	 i830_tv.c \
102fa225cbcSrjs	 i915_3d.c \
103fa225cbcSrjs	 i915_3d.h \
104fa225cbcSrjs	 i915_reg.h \
105fa225cbcSrjs	 i915_video.c \
106fa225cbcSrjs	 i965_video.c \
107fa225cbcSrjs	 i830_uxa.c \
108fa225cbcSrjs	 i830_render.c \
109fa225cbcSrjs	 i915_render.c \
110fa225cbcSrjs	 i965_render.c \
111fa225cbcSrjs	 drmmode_display.c
112fa225cbcSrjs
113fa225cbcSrjsEXTRA_DIST = 		\
114fa225cbcSrjs	$(XMODE_SRCS)	\
115fa225cbcSrjs	$(INTEL_DRI_SRCS) \
116fa225cbcSrjs	$(INTEL_XVMC_SRCS)
117fa225cbcSrjs
118fa225cbcSrjsif DRI
119fa225cbcSrjsintel_drv_la_SOURCES += \
120fa225cbcSrjs	$(INTEL_DRI_SRCS)
121fa225cbcSrjsintel_drv_la_LIBADD += \
122fa225cbcSrjs	$(DRI_LIBS)
123fa225cbcSrjsendif
124fa225cbcSrjs
125fa225cbcSrjsif XVMC
126fa225cbcSrjsintel_drv_la_SOURCES += \
127fa225cbcSrjs	$(INTEL_XVMC_SRCS)
128fa225cbcSrjsendif
129