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 -DHAVE_DIX_CONFIG_H \ 30 -I$(top_srcdir) \ 31 -I$(top_srcdir)/glamor \ 32 -I$(top_srcdir)/exa 33 34if XV 35XV_SRCS = ephyrvideo.c 36endif 37 38if GLAMOR 39if XV 40GLAMOR_XV_SRCS = ephyr_glamor_xv.c 41endif 42 43GLAMOR_SRCS = \ 44 ephyr_glamor_glx.c \ 45 ephyr_glamor_glx.h \ 46 $(GLAMOR_XV_SRCS) \ 47 $() 48endif 49 50bin_PROGRAMS = Xephyr 51 52Xephyr_SOURCES = \ 53 ephyr.c \ 54 ephyr.h \ 55 ephyrlog.h \ 56 ephyr_draw.c \ 57 ephyrinit.c \ 58 ephyrcursor.c \ 59 hostx.c \ 60 hostx.h \ 61 $(XV_SRCS) \ 62 $(GLAMOR_SRCS) \ 63 $() 64 65if GLAMOR 66AM_CPPFLAGS += $(XLIB_CFLAGS) 67XEPHYR_GLAMOR_LIB = \ 68 $(top_builddir)/glamor/libglamor.la \ 69 $(top_builddir)/glamor/libglamor_egl_stubs.la \ 70 $() 71endif 72 73Xephyr_LDADD = \ 74 $(top_builddir)/exa/libexa.la \ 75 $(XEPHYR_GLAMOR_LIB) \ 76 @KDRIVE_LIBS@ \ 77 @XEPHYR_LIBS@ 78 79Xephyr_DEPENDENCIES = @KDRIVE_LOCAL_LIBS@ $(XEPHYR_GLAMOR_LIB) 80 81Xephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) 82 83relink: 84 $(AM_V_at)rm -f $(bin_PROGRAMS) && $(MAKE) $(bin_PROGRAMS) 85