1d514b0f3Smrg#  Copyright 2008 Red Hat, Inc.
2d514b0f3Smrg#
3d514b0f3Smrg#  Permission is hereby granted, free of charge, to any person obtaining a
4d514b0f3Smrg#  copy of this software and associated documentation files (the "Software"),
5d514b0f3Smrg#  to deal in the Software without restriction, including without limitation
6d514b0f3Smrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
7d514b0f3Smrg#  license, and/or sell copies of the Software, and to permit persons to whom
8d514b0f3Smrg#  the Software is furnished to do so, subject to the following conditions:
9d514b0f3Smrg#
10d514b0f3Smrg#  The above copyright notice and this permission notice (including the next
11d514b0f3Smrg#  paragraph) shall be included in all copies or substantial portions of the
12d514b0f3Smrg#  Software.
13d514b0f3Smrg#
14d514b0f3Smrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15d514b0f3Smrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16d514b0f3Smrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17d514b0f3Smrg#  THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18d514b0f3Smrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19d514b0f3Smrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20d514b0f3Smrg
21d514b0f3Smrg
22d514b0f3Smrg# this is obnoxious:
23d514b0f3Smrg# -module lets us name the module exactly how we want
24d514b0f3Smrg# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
25d514b0f3Smrg# _ladir passes a dummy rpath to libtool so the thing will actually link
26d514b0f3Smrg# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
27d514b0f3Smrg
28d514b0f3SmrgSUBDIRS = uxa spiceccid
29d514b0f3Smrg
30d514b0f3SmrgAM_CFLAGS =					\
31d514b0f3Smrg	$(SPICE_PROTOCOL_CFLAGS)		\
32d514b0f3Smrg	$(XORG_CFLAGS)				\
33d514b0f3Smrg	$(PCIACCESS_CFLAGS)			\
34d514b0f3Smrg	$(CWARNFLAGS)				\
35d514b0f3Smrg	$(DRM_CFLAGS)				\
36d514b0f3Smrg	$(LIBUDEV_CFLAGS)
37d514b0f3Smrg
38d514b0f3Smrgif BUILD_QXL
39d514b0f3Smrgqxl_drv_la_LTLIBRARIES = qxl_drv.la
40d514b0f3Smrgqxl_drv_la_LDFLAGS = -module -avoid-version
41d514b0f3Smrgqxl_drv_ladir = @moduledir@/drivers
42d514b0f3Smrg
43d514b0f3Smrgqxl_drv_la_LIBADD = uxa/libuxa.la
44d514b0f3Smrgif LIBUDEV
45d514b0f3Smrgqxl_drv_la_LIBADD += $(LIBUDEV_LIBS)
46d514b0f3Smrgendif
47d514b0f3Smrg
48d514b0f3Smrg
49d514b0f3Smrgqxl_drv_la_SOURCES =			\
50d514b0f3Smrg	qxl.h				\
51d514b0f3Smrg	qxl_driver.c			\
52d514b0f3Smrg	qxl_image.c			\
53d514b0f3Smrg	qxl_surface.c			\
54d514b0f3Smrg	qxl_surface_ums.c		\
55d514b0f3Smrg	qxl_surface.h			\
56d514b0f3Smrg	qxl_ring.c			\
57d514b0f3Smrg	qxl_mem.c			\
58d514b0f3Smrg	mspace.c			\
59d514b0f3Smrg	mspace.h			\
60d514b0f3Smrg	murmurhash3.c			\
61d514b0f3Smrg	murmurhash3.h			\
62d514b0f3Smrg	qxl_cursor.c			\
63d514b0f3Smrg	qxl_option_helpers.c		\
64d514b0f3Smrg	qxl_option_helpers.h		\
65d514b0f3Smrg	qxl_uxa.c			\
66d514b0f3Smrg	qxl_ums_mode.c			\
67d514b0f3Smrg	qxl_io.c			\
68d514b0f3Smrg	dfps.c				\
69d514b0f3Smrg	qxl_kms.c			\
70d514b0f3Smrg	qxl_drmmode.c			\
71d514b0f3Smrg	qxl_drmmode.h			\
72d514b0f3Smrg	compat-api.h
73d514b0f3Smrgendif
74d514b0f3Smrg
75d514b0f3Smrgif BUILD_XSPICE
76d514b0f3Smrgspiceqxl_drv_la_LTLIBRARIES = spiceqxl_drv.la
77d514b0f3Smrgspiceqxl_drv_la_LDFLAGS = -module -avoid-version $(SPICE_LIBS)
78d514b0f3Smrgspiceqxl_drv_ladir = @moduledir@/drivers
79d514b0f3Smrg
80d514b0f3Smrgspiceqxl_drv_la_CFLAGS = -DXSPICE $(AM_CFLAGS) $(SPICE_CFLAGS)
81d514b0f3Smrg
82d514b0f3Smrgspiceqxl_drv_la_LIBADD = uxa/libuxa.la $(XORG_LIBS)
83d514b0f3Smrg
84d514b0f3Smrgspiceqxl_drv_la_SOURCES =		\
85d514b0f3Smrg	qxl.h				\
86d514b0f3Smrg	qxl_option_helpers.c		\
87d514b0f3Smrg	qxl_option_helpers.h		\
88d514b0f3Smrg	spiceqxl_util.h			\
89d514b0f3Smrg	spiceqxl_util.c			\
90d514b0f3Smrg	spiceqxl_spice_server.c		\
91d514b0f3Smrg	spiceqxl_spice_server.h		\
92d514b0f3Smrg	spiceqxl_io_port.c		\
93d514b0f3Smrg	spiceqxl_io_port.h		\
94d514b0f3Smrg	spiceqxl_driver.c		\
95d514b0f3Smrg	spiceqxl_driver.h		\
96d514b0f3Smrg	spiceqxl_main_loop.c		\
97d514b0f3Smrg	spiceqxl_main_loop.h		\
98d514b0f3Smrg	spiceqxl_display.c		\
99d514b0f3Smrg	spiceqxl_display.h		\
100d514b0f3Smrg	spiceqxl_vdagent.c		\
101d514b0f3Smrg	spiceqxl_vdagent.h		\
102d514b0f3Smrg	spiceqxl_uinput.c		\
103d514b0f3Smrg	spiceqxl_uinput.h		\
104d514b0f3Smrg	spiceqxl_audio.c		\
105d514b0f3Smrg	spiceqxl_smartcard.c		\
106d514b0f3Smrg	spiceqxl_smartcard.h		\
107d514b0f3Smrg	spiceqxl_audio.h		\
108d514b0f3Smrg	spiceqxl_inputs.c		\
109d514b0f3Smrg	spiceqxl_inputs.h		\
110d514b0f3Smrg	qxl_driver.c			\
111d514b0f3Smrg	qxl_image.c			\
112d514b0f3Smrg	qxl_surface.c			\
113d514b0f3Smrg	qxl_surface_ums.c		\
114d514b0f3Smrg	qxl_surface.h			\
115d514b0f3Smrg	qxl_ring.c			\
116d514b0f3Smrg	qxl_mem.c			\
117d514b0f3Smrg	mspace.c			\
118d514b0f3Smrg	mspace.h			\
119d514b0f3Smrg	murmurhash3.c			\
120d514b0f3Smrg	murmurhash3.h			\
121d514b0f3Smrg	qxl_cursor.c			\
122d514b0f3Smrg	dfps.c				\
123d514b0f3Smrg	dfps.h				\
124d514b0f3Smrg	qxl_uxa.c			\
125d514b0f3Smrg	qxl_ums_mode.c			\
126d514b0f3Smrg	qxl_io.c			\
127d514b0f3Smrg	compat-api.h
128d514b0f3Smrgendif
129