5 # Copyright (c) 2007-2013 Peng Huang <shawn.p.huang@gmail.com>
6 # Copyright (c) 2007-2013 Red Hat, Inc.
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this program; if not, write to the
20 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21 # Boston, MA 02111-1307 USA
25 libibus = $(top_builddir)/src/libibus-@IBUS_API_VERSION@.la
29 -I$(top_builddir)/src \
36 -DG_LOG_DOMAIN=\"IBUS\" \
37 -DPKGDATADIR=\"$(pkgdatadir)\" \
38 -DLIBEXECDIR=\"$(libexecdir)\" \
39 -DBINDIR=\"@bindir@\" \
40 -DIBUS_DISABLE_DEPRECATED \
81 bin_PROGRAMS = ibus-daemon
82 ibus_daemon_DEPENDENCIES = \
85 ibus_daemon_SOURCES = \
89 ibus_daemon_CFLAGS = \
102 marshalers.h: marshalers.list
103 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=bus_marshal $(srcdir)/marshalers.list --header --internal > $@.tmp && \
106 marshalers.c: marshalers.h marshalers.list
107 $(AM_V_GEN) (echo "#include \"marshalers.h\""; \
108 $(GLIB_GENMARSHAL) --prefix=bus_marshal $(srcdir)/marshalers.list --body --internal) > $@.tmp && \
120 noinst_PROGRAMS = $(TESTS)
122 test_registry_SOURCES = \
126 test_registry_CFLAGS = \
129 test_registry_LDADD = \
133 test_matchrule_DEPENDENCIES = \
136 test_matchrule_SOURCES = \
140 test_matchrule_CFLAGS = \
143 test_matchrule_LDADD = \
147 test_stress_SOURCES = \
152 test_stress_CFLAGS = \
157 test_stress_LDADD = \
164 $(man_one_in_files) \
174 $(MAKE) -C $(top_builddir)/src
178 G_DEBUG=fatal_warnings \
179 $(builddir)/ibus-daemon -v
181 man_one_in_files = ibus-daemon.1.in
182 man_one_files = $(man_one_in_files:.1.in=.1)
183 man_one_DATA =$(man_one_files:.1=.1.gz)
184 man_onedir = $(datadir)/man/man1
187 -e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \
190 $(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@
192 -include $(top_srcdir)/git.mk