1*4882a593Smuzhiyun# Copyright © 2013 Intel Corporation 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Permission is hereby granted, free of charge, to any person obtaining a 4*4882a593Smuzhiyun# copy of this software and associated documentation files (the "Software"), 5*4882a593Smuzhiyun# to deal in the Software without restriction, including without limitation 6*4882a593Smuzhiyun# the rights to use, copy, modify, merge, publish, distribute, sublicense, 7*4882a593Smuzhiyun# and/or sell copies of the Software, and to permit persons to whom the 8*4882a593Smuzhiyun# Software is furnished to do so, subject to the following conditions: 9*4882a593Smuzhiyun# 10*4882a593Smuzhiyun# The above copyright notice and this permission notice (including the next 11*4882a593Smuzhiyun# paragraph) shall be included in all copies or substantial portions of the 12*4882a593Smuzhiyun# Software. 13*4882a593Smuzhiyun# 14*4882a593Smuzhiyun# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15*4882a593Smuzhiyun# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16*4882a593Smuzhiyun# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17*4882a593Smuzhiyun# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18*4882a593Smuzhiyun# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19*4882a593Smuzhiyun# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 20*4882a593Smuzhiyun# IN THE SOFTWARE. 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunSUBDIRS = man 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunAM_CPPFLAGS = \ 25*4882a593Smuzhiyun @KDRIVE_INCS@ \ 26*4882a593Smuzhiyun @KDRIVE_CFLAGS@ \ 27*4882a593Smuzhiyun @XEPHYR_INCS@ \ 28*4882a593Smuzhiyun @XEPHYR_CFLAGS@ \ 29*4882a593Smuzhiyun -DHAVE_DIX_CONFIG_H \ 30*4882a593Smuzhiyun -I$(top_srcdir) \ 31*4882a593Smuzhiyun -I$(top_srcdir)/glamor \ 32*4882a593Smuzhiyun -I$(top_srcdir)/exa 33*4882a593Smuzhiyun 34*4882a593Smuzhiyunif XV 35*4882a593SmuzhiyunXV_SRCS = ephyrvideo.c 36*4882a593Smuzhiyunendif 37*4882a593Smuzhiyun 38*4882a593Smuzhiyunif GLAMOR 39*4882a593Smuzhiyunif XV 40*4882a593SmuzhiyunGLAMOR_XV_SRCS = ephyr_glamor_xv.c 41*4882a593Smuzhiyunendif 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunGLAMOR_SRCS = \ 44*4882a593Smuzhiyun ephyr_glamor_glx.c \ 45*4882a593Smuzhiyun ephyr_glamor_glx.h \ 46*4882a593Smuzhiyun $(GLAMOR_XV_SRCS) \ 47*4882a593Smuzhiyun $() 48*4882a593Smuzhiyunendif 49*4882a593Smuzhiyun 50*4882a593Smuzhiyunbin_PROGRAMS = Xephyr 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunXephyr_SOURCES = \ 53*4882a593Smuzhiyun ephyr.c \ 54*4882a593Smuzhiyun ephyr.h \ 55*4882a593Smuzhiyun ephyrlog.h \ 56*4882a593Smuzhiyun ephyr_draw.c \ 57*4882a593Smuzhiyun ephyrinit.c \ 58*4882a593Smuzhiyun ephyrcursor.c \ 59*4882a593Smuzhiyun hostx.c \ 60*4882a593Smuzhiyun hostx.h \ 61*4882a593Smuzhiyun $(XV_SRCS) \ 62*4882a593Smuzhiyun $(GLAMOR_SRCS) \ 63*4882a593Smuzhiyun $() 64*4882a593Smuzhiyun 65*4882a593Smuzhiyunif GLAMOR 66*4882a593SmuzhiyunAM_CPPFLAGS += $(XLIB_CFLAGS) 67*4882a593SmuzhiyunXEPHYR_GLAMOR_LIB = \ 68*4882a593Smuzhiyun $(top_builddir)/glamor/libglamor.la \ 69*4882a593Smuzhiyun $(top_builddir)/glamor/libglamor_egl_stubs.la \ 70*4882a593Smuzhiyun $() 71*4882a593Smuzhiyunendif 72*4882a593Smuzhiyun 73*4882a593SmuzhiyunXephyr_LDADD = \ 74*4882a593Smuzhiyun $(top_builddir)/exa/libexa.la \ 75*4882a593Smuzhiyun $(XEPHYR_GLAMOR_LIB) \ 76*4882a593Smuzhiyun @KDRIVE_LIBS@ \ 77*4882a593Smuzhiyun @XEPHYR_LIBS@ 78*4882a593Smuzhiyun 79*4882a593SmuzhiyunXephyr_DEPENDENCIES = @KDRIVE_LOCAL_LIBS@ $(XEPHYR_GLAMOR_LIB) 80*4882a593Smuzhiyun 81*4882a593SmuzhiyunXephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) 82*4882a593Smuzhiyun 83*4882a593Smuzhiyunrelink: 84*4882a593Smuzhiyun $(AM_V_at)rm -f $(bin_PROGRAMS) && $(MAKE) $(bin_PROGRAMS) 85