Makefile.am revision 03b705cf
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	brw_defines.h \
29	brw_structs.h \
30	common.h \
31	intel.h \
32	intel_batchbuffer.c \
33	intel_batchbuffer.h \
34	intel_display.c \
35	intel_driver.c \
36	intel_glamor.h \
37	intel_memory.c \
38	intel_uxa.c \
39	intel_video.c \
40	intel_video.h \
41	i830_3d.c \
42	i830_render.c \
43	i830_reg.h \
44	i915_3d.h \
45	i915_reg.h \
46	i915_3d.c \
47	i915_render.c \
48	i915_video.c \
49	i965_reg.h \
50	i965_3d.c \
51	i965_video.c \
52	i965_render.c \
53	uxa_module.h \
54	uxa.c \
55	uxa.h \
56	uxa-accel.c \
57	uxa-glamor.h \
58	uxa-glyphs.c \
59	uxa-render.c \
60	uxa-priv.h \
61	uxa-unaccel.c
62	$(NULL)
63
64if GLAMOR
65AM_CFLAGS += @LIBGLAMOR_CFLAGS@
66libuxa_la_LIBADD += @LIBGLAMOR_LIBS@
67libuxa_la_SOURCES += \
68	 intel_glamor.c \
69	 $(NULL)
70endif
71
72if DRI2
73AM_CFLAGS += @DRI2_CFLAGS@
74libuxa_la_SOURCES += \
75	intel_dri.c \
76	$(NULL)
77libuxa_la_LIBADD += \
78	$(DRI2_LIBS) \
79	@CLOCK_GETTIME_LIBS@ \
80	$(NULL)
81endif
82
83if XVMC
84AM_CFLAGS += -I$(top_srcdir)/xvmc
85libuxa_la_SOURCES += \
86	intel_hwmc.c \
87	$(NULL)
88endif
89