1706f2543SmrgSUBDIRS = man
2706f2543Smrg
3706f2543SmrgINCLUDES = 			\
4706f2543Smrg	@KDRIVE_INCS@		\
5706f2543Smrg	@KDRIVE_CFLAGS@		\
6706f2543Smrg	@XEPHYR_INCS@		\
7706f2543Smrg	@XEPHYR_CFLAGS@		\
8706f2543Smrg	@DRIPROTO_CFLAGS@	\
9706f2543Smrg	-I$(top_srcdir)		\
10706f2543Smrg	-I$(top_srcdir)/exa
11706f2543Smrg
12706f2543Smrgif XV
13706f2543SmrgLIBXEPHYR_HOSTXV=libxephyr-hostxv.la
14706f2543Smrgendif
15706f2543Smrg
16706f2543Smrgif DRI
17706f2543SmrgLIBXEPHYR_HOSTDRI=libxephyr-hostdri.la
18706f2543Smrgendif
19706f2543Smrg
20706f2543Smrgnoinst_LTLIBRARIES = libxephyr-hostx.la $(LIBXEPHYR_HOSTXV) $(LIBXEPHYR_HOSTDRI) libxephyr.la
21706f2543Smrg
22706f2543Smrgbin_PROGRAMS = Xephyr
23706f2543Smrg
24706f2543SmrgHOSTX_SRCS =			\
25706f2543Smrg	hostx.c			\
26706f2543Smrg	hostx.h
27706f2543Smrg
28706f2543SmrgHOSTVIDEO_SRCS =		\
29706f2543Smrg	ephyrvideo.c		\
30706f2543Smrg	ephyrhostvideo.c	\
31706f2543Smrg	ephyrhostvideo.h
32706f2543Smrg
33706f2543SmrgHOSTDRI_SRCS =			\
34706f2543Smrg	ephyrdriext.c		\
35706f2543Smrg	ephyrdriext.h		\
36706f2543Smrg	ephyrdri.c		\
37706f2543Smrg	ephyrdri.h		\
38706f2543Smrg	XF86dri.c		\
39706f2543Smrg	xf86dri.h		\
40706f2543Smrg	ephyrglxext.c		\
41706f2543Smrg	ephyrglxext.h		\
42706f2543Smrg	ephyrhostglx.c		\
43706f2543Smrg	ephyrhostglx.h
44706f2543Smrg
45706f2543SmrgXEPHYR_SRCS =			\
46706f2543Smrg	ephyr.c			\
47706f2543Smrg	ephyr.h			\
48706f2543Smrg	ephyrlog.h		\
49706f2543Smrg	ephyr_draw.c		\
50706f2543Smrg	os.c
51706f2543Smrg
52706f2543Smrglibxephyr_hostx_la_SOURCES = $(HOSTX_SRCS)
53706f2543Smrg
54706f2543Smrgif XV
55706f2543Smrglibxephyr_hostxv_la_SOURCES = $(HOSTVIDEO_SRCS)
56706f2543Smrgendif
57706f2543Smrg
58706f2543Smrgif DRI
59706f2543Smrglibxephyr_hostdri_la_SOURCES = $(HOSTDRI_SRCS)
60706f2543Smrgendif
61706f2543Smrg
62706f2543Smrglibxephyr_la_SOURCES = $(XEPHYR_SRCS)
63706f2543Smrg
64706f2543SmrgXephyr_SOURCES = \
65706f2543Smrg	ephyrinit.c
66706f2543Smrg
67706f2543SmrgXephyr_LDADD = 						\
68706f2543Smrg	libxephyr.la					\
69706f2543Smrg	libxephyr-hostx.la				\
70706f2543Smrg	$(LIBXEPHYR_HOSTXV)				\
71706f2543Smrg	$(LIBXEPHYR_HOSTDRI)				\
72706f2543Smrg	$(top_builddir)/exa/libexa.la			\
73706f2543Smrg	@KDRIVE_LIBS@					\
74706f2543Smrg	@XEPHYR_LIBS@
75706f2543Smrg
76706f2543SmrgXephyr_DEPENDENCIES =	\
77706f2543Smrg	libxephyr.la					\
78706f2543Smrg	libxephyr-hostx.la				\
79706f2543Smrg	$(LIBXEPHYR_HOSTXV)				\
80706f2543Smrg	$(LIBXEPHYR_HOSTDRI)				\
81706f2543Smrg	@KDRIVE_LOCAL_LIBS@
82706f2543Smrg
83706f2543SmrgXephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
84706f2543Smrg
85706f2543Smrgrelink:
86706f2543Smrg	$(AM_V_at)rm -f $(bin_PROGRAMS) && $(MAKE) $(bin_PROGRAMS)
87706f2543Smrg
88706f2543SmrgEXTRA_DIST = \
89706f2543Smrg	$(HOSTVIDEO_SRCS) \
90706f2543Smrg	$(HOSTDRI_SRCS)
91