1#  Copyright 2008 Red Hat, Inc.
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#  THE AUTHORS 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
21
22# this is obnoxious:
23# -module lets us name the module exactly how we want
24# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
25# _ladir passes a dummy rpath to libtool so the thing will actually link
26# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
27
28SUBDIRS = uxa spiceccid
29
30AM_CFLAGS =					\
31	$(SPICE_PROTOCOL_CFLAGS)		\
32	$(XORG_CFLAGS)				\
33	$(PCIACCESS_CFLAGS)			\
34	$(CWARNFLAGS)				\
35	$(DRM_CFLAGS)				\
36	$(LIBUDEV_CFLAGS)
37
38if BUILD_QXL
39qxl_drv_la_LTLIBRARIES = qxl_drv.la
40qxl_drv_la_LDFLAGS = -module -avoid-version
41qxl_drv_ladir = @moduledir@/drivers
42
43qxl_drv_la_LIBADD = uxa/libuxa.la
44if LIBUDEV
45qxl_drv_la_LIBADD += $(LIBUDEV_LIBS)
46endif
47
48
49qxl_drv_la_SOURCES =			\
50	qxl.h				\
51	qxl_driver.c			\
52	qxl_image.c			\
53	qxl_surface.c			\
54	qxl_surface_ums.c		\
55	qxl_surface.h			\
56	qxl_ring.c			\
57	qxl_mem.c			\
58	mspace.c			\
59	mspace.h			\
60	murmurhash3.c			\
61	murmurhash3.h			\
62	qxl_cursor.c			\
63	qxl_option_helpers.c		\
64	qxl_option_helpers.h		\
65	qxl_uxa.c			\
66	qxl_ums_mode.c			\
67	qxl_io.c			\
68	dfps.c				\
69	qxl_kms.c			\
70	qxl_drmmode.c			\
71	qxl_drmmode.h			\
72	compat-api.h
73endif
74
75if BUILD_XSPICE
76spiceqxl_drv_la_LTLIBRARIES = spiceqxl_drv.la
77spiceqxl_drv_la_LDFLAGS = -module -avoid-version $(SPICE_LIBS)
78spiceqxl_drv_ladir = @moduledir@/drivers
79
80spiceqxl_drv_la_CFLAGS = -DXSPICE $(AM_CFLAGS) $(SPICE_CFLAGS)
81
82spiceqxl_drv_la_LIBADD = uxa/libuxa.la $(XORG_LIBS)
83
84spiceqxl_drv_la_SOURCES =		\
85	qxl.h				\
86	qxl_option_helpers.c		\
87	qxl_option_helpers.h		\
88	spiceqxl_util.h			\
89	spiceqxl_util.c			\
90	spiceqxl_spice_server.c		\
91	spiceqxl_spice_server.h		\
92	spiceqxl_io_port.c		\
93	spiceqxl_io_port.h		\
94	spiceqxl_driver.c		\
95	spiceqxl_driver.h		\
96	spiceqxl_main_loop.c		\
97	spiceqxl_main_loop.h		\
98	spiceqxl_display.c		\
99	spiceqxl_display.h		\
100	spiceqxl_vdagent.c		\
101	spiceqxl_vdagent.h		\
102	spiceqxl_uinput.c		\
103	spiceqxl_uinput.h		\
104	spiceqxl_audio.c		\
105	spiceqxl_smartcard.c		\
106	spiceqxl_smartcard.h		\
107	spiceqxl_audio.h		\
108	spiceqxl_inputs.c		\
109	spiceqxl_inputs.h		\
110	qxl_driver.c			\
111	qxl_image.c			\
112	qxl_surface.c			\
113	qxl_surface_ums.c		\
114	qxl_surface.h			\
115	qxl_ring.c			\
116	qxl_mem.c			\
117	mspace.c			\
118	mspace.h			\
119	murmurhash3.c			\
120	murmurhash3.h			\
121	qxl_cursor.c			\
122	dfps.c				\
123	dfps.h				\
124	qxl_uxa.c			\
125	qxl_ums_mode.c			\
126	qxl_io.c			\
127	compat-api.h
128endif
129