summaryrefslogtreecommitdiff
path: root/hw/kdrive/ephyr/Makefile.am
blob: 805b3b7d646f15f1dce9e89022746dbe60533dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
SUBDIRS = man

AM_CPPFLAGS = 			\
	@KDRIVE_INCS@		\
	@KDRIVE_CFLAGS@		\
	@XEPHYR_INCS@		\
	@XEPHYR_CFLAGS@		\
	-I$(top_srcdir)		\
	-I$(top_srcdir)/exa

if XV
LIBXEPHYR_HOSTXV=libxephyr-hostxv.la
endif

if DRI
LIBXEPHYR_HOSTDRI=libxephyr-hostdri.la
endif

noinst_LTLIBRARIES = libxephyr-hostx.la $(LIBXEPHYR_HOSTXV) $(LIBXEPHYR_HOSTDRI) libxephyr.la

bin_PROGRAMS = Xephyr

HOSTX_SRCS =			\
	hostx.c			\
	hostx.h

HOSTVIDEO_SRCS =		\
	ephyrvideo.c

HOSTDRI_SRCS =			\
	ephyrdriext.c		\
	ephyrdriext.h		\
	ephyrdri.c		\
	ephyrdri.h		\
	ephyrglxext.c		\
	ephyrglxext.h		\
	ephyrhostglx.c		\
	ephyrhostglx.h

XEPHYR_SRCS =			\
	ephyr.c			\
	ephyr.h			\
	ephyrlog.h		\
	ephyr_draw.c		\
	os.c

libxephyr_hostx_la_SOURCES = $(HOSTX_SRCS)

if XV
libxephyr_hostxv_la_SOURCES = $(HOSTVIDEO_SRCS)
endif

if DRI
libxephyr_hostdri_la_SOURCES = $(HOSTDRI_SRCS)
endif

libxephyr_la_SOURCES = $(XEPHYR_SRCS)

Xephyr_SOURCES = \
	ephyrinit.c

Xephyr_LDADD = 						\
	libxephyr.la					\
	libxephyr-hostx.la				\
	$(LIBXEPHYR_HOSTXV)				\
	$(LIBXEPHYR_HOSTDRI)				\
	$(top_builddir)/exa/libexa.la			\
	@KDRIVE_LIBS@					\
	@XEPHYR_LIBS@

Xephyr_DEPENDENCIES =	\
	libxephyr.la					\
	libxephyr-hostx.la				\
	$(LIBXEPHYR_HOSTXV)				\
	$(LIBXEPHYR_HOSTDRI)				\
	@KDRIVE_LOCAL_LIBS@

Xephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)

relink:
	$(AM_V_at)rm -f $(bin_PROGRAMS) && $(MAKE) $(bin_PROGRAMS)

EXTRA_DIST = \
	$(HOSTVIDEO_SRCS) \
	$(HOSTDRI_SRCS)