Merge branch 'define-symbol' of git://github.com/ueno/ibus-hangul
[platform/upstream/ibus-hangul.git] / src / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus-hangul - The Hangul engine for IBus
4 #
5 # Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License along
18 # with this program; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21 AM_CFLAGS = \
22         @IBUS_CFLAGS@ \
23         @HANGUL_CFLAGS@ \
24         -DPKGDATADIR=\"$(pkgdatadir)\" \
25         $(NULL)
26 AM_LDFLAGS = \
27         @IBUS_LIBS@ \
28         @HANGUL_LIBS@ \
29         $(NULL)
30
31 check_PROGRAMS = \
32         $(NULL)
33
34 TESTS = \
35         $(check_PROGRAMS) \
36         $(NULL)
37
38 libexec_PROGRAMS = ibus-engine-hangul
39
40 ibus_engine_hangul_SOURCES = \
41         main.c \
42         engine.c \
43         engine.h \
44         ustring.c \
45         ustring.h \
46         i18n.h \
47         $(NULL)
48
49 ibus_engine_hangul_CFLAGS = \
50         @IBUS_CFLAGS@ \
51         @HANGUL_CFLAGS@ \
52         -DPKGDATADIR=\"$(pkgdatadir)\" \
53         -DLOCALEDIR=\"$(localedir)\" \
54         -DLIBEXECDIR=\"$(libexecdir)\" \
55         -DIBUSHANGUL_DATADIR=\"$(datadir)/ibus-hangul\" \
56         $(NULL)
57
58 ibus_engine_hangul_LDADD = \
59         @IBUS_LIBS@ \
60         @HANGUL_LIBS@ \
61         $(NULL)
62
63 component_DATA = \
64         hangul.xml \
65         $(NULL)
66 componentdir = @datadir@/ibus/component
67
68 EXTRA_DIST = \
69         $(NULL)
70
71 CLEANFILES = \
72         hangul.xml \
73         $(NULL)
74
75 hangul.xml: hangul.xml.in
76         ( \
77                 libexecdir=${libexecdir}; \
78                 pkgdatadir=${pkgdatadir}; \
79                 s=`cat $<`; \
80                 eval "echo \"$${s}\""; \
81         ) > $@
82
83 test: ibus-engine-hangul
84         $(builddir)/ibus-engine-hangul