Makefile.am revision 35c4bbdf
1# Copyright © 2013 Intel Corporation
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# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7# and/or sell copies of the Software, and to permit persons to whom the
8# 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 NONINFRINGEMENT.  IN NO EVENT SHALL
17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20# IN THE SOFTWARE.
21
22SUBDIRS = man
23
24AM_CPPFLAGS = 			\
25	@KDRIVE_INCS@		\
26	@KDRIVE_CFLAGS@		\
27	@XEPHYR_INCS@		\
28	@XEPHYR_CFLAGS@		\
29	-I$(top_srcdir)		\
30	-I$(top_srcdir)/glamor	\
31	-I$(top_srcdir)/exa
32
33if XV
34XV_SRCS = ephyrvideo.c
35endif
36
37if GLAMOR
38if XV
39GLAMOR_XV_SRCS = ephyr_glamor_xv.c
40endif
41
42GLAMOR_SRCS = \
43	ephyr_glamor_glx.c \
44	ephyr_glamor_glx.h \
45	$(GLAMOR_XV_SRCS)  \
46	$()
47endif
48
49if DRI
50DRI_SRCS =			\
51	ephyrdriext.c		\
52	ephyrdriext.h		\
53	ephyrdri.c		\
54	ephyrdri.h		\
55	ephyrglxext.c		\
56	ephyrglxext.h		\
57	ephyrhostglx.c		\
58	ephyrhostglx.h		\
59	$()
60endif
61
62bin_PROGRAMS = Xephyr
63
64Xephyr_SOURCES = \
65	ephyr.c \
66	ephyr.h \
67	ephyrlog.h \
68	ephyr_draw.c \
69	os.c \
70	ephyrinit.c \
71	ephyrcursor.c \
72	hostx.c \
73	hostx.h \
74	$(XV_SRCS) \
75	$(DRI_SRCS) \
76	$(GLAMOR_SRCS) \
77	$()
78
79if GLAMOR
80AM_CPPFLAGS += $(XLIB_CFLAGS)
81XEPHYR_GLAMOR_LIB = \
82	$(top_builddir)/glamor/libglamor.la \
83	$(top_builddir)/glamor/libglamor_egl_stubs.la \
84	$()
85endif
86
87Xephyr_LDADD = 						\
88	$(top_builddir)/exa/libexa.la			\
89	$(XEPHYR_GLAMOR_LIB)				\
90	@KDRIVE_LIBS@					\
91	@XEPHYR_LIBS@
92
93Xephyr_DEPENDENCIES = @KDRIVE_LOCAL_LIBS@ $(XEPHYR_GLAMOR_LIB)
94
95Xephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
96
97relink:
98	$(AM_V_at)rm -f $(bin_PROGRAMS) && $(MAKE) $(bin_PROGRAMS)
99