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 \
78 bin_PROGRAMS = ibus-daemon
79 ibus_daemon_DEPENDENCIES = \
82 ibus_daemon_SOURCES = \
86 ibus_daemon_CFLAGS = \
99 marshalers.h: marshalers.list
100 $(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=bus_marshal $(srcdir)/marshalers.list --header --internal > $@.tmp && \
103 marshalers.c: marshalers.h marshalers.list
104 $(AM_V_GEN) (echo "#include \"marshalers.h\""; \
105 $(GLIB_GENMARSHAL) --prefix=bus_marshal $(srcdir)/marshalers.list --body --internal) > $@.tmp && \
116 noinst_PROGRAMS = $(TESTS)
118 test_matchrule_DEPENDENCIES = \
121 test_matchrule_SOURCES = \
125 test_matchrule_CFLAGS = \
128 test_matchrule_LDADD = \
132 test_stress_SOURCES = \
137 test_stress_CFLAGS = \
142 test_stress_LDADD = \
149 $(man_one_in_files) \
159 $(MAKE) -C $(top_builddir)/src
163 G_DEBUG=fatal_warnings \
164 $(builddir)/ibus-daemon -v
166 man_one_in_files = ibus-daemon.1.in
167 man_one_files = $(man_one_in_files:.1.in=.1)
168 man_one_DATA =$(man_one_files:.1=.1.gz)
169 man_onedir = $(datadir)/man/man1
172 -e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \
175 $(AM_V_GEN) gzip -c $< > $@.tmp && mv $@.tmp $@
177 -include $(top_srcdir)/git.mk