# Copyright (C) 2010-2011 Daiki Ueno # Copyright (C) 2010-2011 Red Hat, Inc. # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 USA if ENABLE_EEKBOARD bin_PROGRAMS = \ eekboard-desktop-client \ eekboard-client \ eekboard-server \ eekboard-xml noinst_LTLIBRARIES = libxklutil.la eekboard_desktop_client_CFLAGS = \ -I$(top_srcdir) \ $(GIO2_CFLAGS) \ $(GTK_CFLAGS) \ $(GCONF2_CFLAGS) \ $(XKB_CFLAGS) \ $(LIBXKLAVIER_CFLAGS) eekboard_desktop_client_LDADD = \ $(builddir)/libxklutil.la \ $(top_builddir)/eekboard/libeekboard.la \ $(top_builddir)/eek/libeek.la \ $(top_builddir)/eek/libeek-xkl.la \ $(GIO2_LIBS) \ $(GTK_LIBS) \ $(GCONF2_LIBS) \ $(XKB_LIBS) \ $(LIBXKLAVIER_LIBS) if ENABLE_FAKEKEY eekboard_desktop_client_CFLAGS += \ $(FAKEKEY_CFLAGS) eekboard_desktop_client_LDADD += \ $(FAKEKEY_LIBS) endif if ENABLE_CSPI eekboard_desktop_client_CFLAGS += \ $(CSPI_CFLAGS) eekboard_desktop_client_LDADD += \ $(CSPI_LIBS) endif eekboard_desktop_client_headers = desktop-client.h eekboard_desktop_client_SOURCES = desktop-client.c desktop-client-main.c eekboard_server_CFLAGS = \ -I$(top_srcdir) \ $(GIO2_CFLAGS) \ $(GTK_CFLAGS) eekboard_server_LDADD = \ $(top_builddir)/eekboard/libeekboard.la \ $(top_builddir)/eek/libeek.la \ $(top_builddir)/eek/libeek-gtk.la \ $(GIO2_LIBS) \ $(GTK_LIBS) eekboard_server_headers = server-server.h server-context.h eekboard_server_SOURCES = server-server.c server-context.c server-main.c if ENABLE_CLUTTER eekboard_server_CFLAGS += $(CLUTTER_CFLAGS) $(CLUTTER_GTK_CFLAGS) eekboard_server_LDADD += $(CLUTTER_LIBS) $(top_builddir)/eek/libeek-clutter.la $(CLUTTER_GTK_LIBS) endif eekboard_client_CFLAGS = \ -I$(top_srcdir) \ $(GIO2_CFLAGS) eekboard_client_LDADD = \ $(top_builddir)/eekboard/libeekboard.la \ $(top_builddir)/eek/libeek.la \ $(GIO2_LIBS) eekboard_client_SOURCES = client-main.c eekboard_xml_CFLAGS = \ -I$(top_srcdir) \ $(GIO2_CFLAGS) \ $(GTK_CFLAGS) \ $(LIBXKLAVIER_CFLAGS) eekboard_xml_LDADD = \ $(builddir)/libxklutil.la \ $(top_builddir)/eek/libeek.la \ $(top_builddir)/eek/libeek-xkl.la \ $(top_builddir)/eek/libeek-gtk.la \ $(GIO2_LIBS) \ $(GTK_LIBS) \ $(LIBXKLAVIER_LIBS) eekboard_xml_SOURCES = xml-main.c libxklutil_la_headers = xklutil.h libxklutil_la_SOURCES = xklutil.c libxklutil_la_CFLAGS = $(LIBXKLAVIER_CFLAGS) libxklutil_la_LIBADD = $(LIBXKLAVIER_LIBS) eekboarddir = $(includedir)/eekboard-$(EEK_API_VERSION)/eekboard eekboard_HEADERS = \ $(libeekboard_headers) noinst_HEADERS = \ $(eekboard_desktop_client_headers) \ $(eekboard_client_headers) \ $(eekboard_server_headers) \ $(eekboard_xml_headers) \ $(libxklutil_la_headers) EXTRA_DIST = $(service_in_files) DISTCLEANFILES = $(service_DATA) servicedir = $(datadir)/dbus-1/services service_in_files = eekboard-server.service.in service_DATA = $(service_in_files:.service.in=.service) $(service_DATA): $(service_in_files) Makefile $(AM_V_GEN) sed -e "s|\@bindir\@|$(bindir)|" $< > $@ endif