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
21AM_CFLAGS = @CWARNFLAGS@ $(XORG_CFLAGS) $(DRM_CFLAGS) $(PCIACCESS_CFLAGS)
22AM_CFLAGS += $(UDEV_CFLAGS) $(DRM_CFLAGS) $(DRMINTEL_CFLAGS)
23AM_CFLAGS += -I$(top_srcdir)/xvmc -I$(top_srcdir)/src -I$(top_srcdir)/src/render_program
24
25noinst_LTLIBRARIES = libuxa.la
26libuxa_la_LIBADD = $(UDEV_LIBS) $(DRMINTEL_LIBS) $(DRM_LIBS)
27libuxa_la_SOURCES = \
28	intel_uxa.h \
29	brw_defines.h \
30	brw_structs.h \
31	common.h \
32	intel.h \
33	intel_batchbuffer.c \
34	intel_batchbuffer.h \
35	intel_display.c \
36	intel_driver.c \
37	intel_memory.c \
38	intel_uxa.c \
39	intel_video.c \
40	intel_video.h \
41	intel_video_overlay.c \
42	intel_video_overlay.h \
43	intel_uxa_video.c \
44	i830_3d.c \
45	i830_render.c \
46	i830_reg.h \
47	i915_3d.h \
48	i915_reg.h \
49	i915_3d.c \
50	i915_render.c \
51	i915_video.c \
52	i965_reg.h \
53	i965_3d.c \
54	i965_video.c \
55	i965_render.c \
56	uxa_module.h \
57	uxa.c \
58	uxa.h \
59	uxa-accel.c \
60	uxa-glyphs.c \
61	uxa-render.c \
62	uxa-priv.h \
63	uxa-unaccel.c
64	$(NULL)
65
66if DRI2
67AM_CFLAGS += $(DRI2_CFLAGS)
68libuxa_la_SOURCES += \
69	intel_dri.c \
70	$(NULL)
71libuxa_la_LIBADD += \
72	$(DRI2_LIBS) \
73	$(CLOCK_GETTIME_LIBS) \
74	$(NULL)
75endif
76
77if DRI3
78libuxa_la_SOURCES += \
79	intel_dri3.c \
80	intel_sync.c \
81	$(NULL)
82endif
83
84if PRESENT
85libuxa_la_SOURCES += \
86	intel_present.c \
87	$(NULL)
88endif
89
90if XVMC
91AM_CFLAGS += -I$(top_srcdir)/xvmc
92libuxa_la_SOURCES += \
93	intel_hwmc.c \
94	$(NULL)
95endif
96