Makefile.am revision 6747b715
1INCLUDES = \ 2 @KDRIVE_INCS@ \ 3 @KDRIVE_CFLAGS@ \ 4 @XEPHYR_INCS@ \ 5 @XEPHYR_CFLAGS@ \ 6 @DRIPROTO_CFLAGS@ \ 7 -I$(top_srcdir) \ 8 -I$(top_srcdir)/exa 9 10if XV 11LIBXEPHYR_HOSTXV=libxephyr-hostxv.la 12endif 13 14if DRI 15LIBXEPHYR_HOSTDRI=libxephyr-hostdri.la 16endif 17 18noinst_LTLIBRARIES = libxephyr-hostx.la $(LIBXEPHYR_HOSTXV) $(LIBXEPHYR_HOSTDRI) libxephyr.la 19 20bin_PROGRAMS = Xephyr 21 22HOSTX_SRCS = \ 23 hostx.c \ 24 hostx.h 25 26HOSTVIDEO_SRCS = \ 27 ephyrvideo.c \ 28 ephyrhostvideo.c \ 29 ephyrhostvideo.h 30 31HOSTDRI_SRCS = \ 32 ephyrdriext.c \ 33 ephyrdriext.h \ 34 ephyrdri.c \ 35 ephyrdri.h \ 36 XF86dri.c \ 37 xf86dri.h \ 38 ephyrglxext.c \ 39 ephyrglxext.h \ 40 ephyrhostglx.c \ 41 ephyrhostglx.h 42 43XEPHYR_SRCS = \ 44 ephyr.c \ 45 ephyr.h \ 46 ephyrlog.h \ 47 ephyr_draw.c \ 48 os.c 49 50libxephyr_hostx_la_SOURCES = $(HOSTX_SRCS) 51 52if XV 53libxephyr_hostxv_la_SOURCES = $(HOSTVIDEO_SRCS) 54endif 55 56if DRI 57libxephyr_hostdri_la_SOURCES = $(HOSTDRI_SRCS) 58endif 59 60libxephyr_la_SOURCES = $(XEPHYR_SRCS) 61 62Xephyr_SOURCES = \ 63 ephyrinit.c 64 65Xephyr_LDADD = \ 66 libxephyr.la \ 67 libxephyr-hostx.la \ 68 $(LIBXEPHYR_HOSTXV) \ 69 $(LIBXEPHYR_HOSTDRI) \ 70 $(top_builddir)/exa/libexa.la \ 71 @KDRIVE_LIBS@ \ 72 @XEPHYR_LIBS@ 73 74Xephyr_DEPENDENCIES = \ 75 libxephyr.la \ 76 libxephyr-hostx.la \ 77 $(LIBXEPHYR_HOSTXV) \ 78 $(LIBXEPHYR_HOSTDRI) \ 79 @KDRIVE_LOCAL_LIBS@ 80 81Xephyr_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) 82 83relink: 84 $(AM_V_at)rm -f $(bin_PROGRAMS) && $(MAKE) $(bin_PROGRAMS) 85 86MAN_SRCS = Xephyr.man.pre 87 88appmandir = $(APP_MAN_DIR) 89appman_DATA = Xephyr.$(APP_MAN_SUFFIX) 90 91Xephyr.$(APP_MAN_SUFFIX): Xephyr.man 92 -$(AM_V_at)rm -f Xephyr.$(APP_MAN_SUFFIX) 93 $(AM_V_at)$(LN_S) Xephyr.man Xephyr.$(APP_MAN_SUFFIX) 94 95include $(top_srcdir)/cpprules.in 96 97CLEANFILES = $(appman_DATA) Xephyr.man 98 99EXTRA_DIST = \ 100 $(HOSTVIDEO_SRCS) \ 101 $(HOSTDRI_SRCS) \ 102 $(MAN_SRCS) 103