summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 18b9658f17c3aa1bcaaefd0c10ce7e87c4da87da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# vim:set noet ts=4:
#
# ibus - The Input Bus
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
# 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 program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA  02111-1307  USA

INCLUDES = \
	-I$(top_srcdir) \
	$(NULL)

BUILT_SOURCES = \
	ibusmarshalers.h \
	ibusmarshalers.c \
	$(NULL)

# ibus library
lib_LTLIBRARIES = libibus.la

libibus_la_SOURCES = \
	ibus.h \
	ibusshare.h \
	ibusshare.c \
	ibusdebug.h \
	ibusinternal.h \
	ibusinternal.c \
	ibusobject.c \
	ibusobject.h \
	ibusconnection.c \
	ibusconnection.h \
	ibusserver.c \
	ibusserver.h \
	ibusproxy.c \
	ibusproxy.h \
	ibusservice.c \
	ibusservice.h \
	ibusfactory.c \
	ibusfactory.h \
	ibusengine.c \
	ibusengine.h \
	ibusattribute.c \
	ibusattribute.h \
	ibusproperty.c \
	ibusproperty.h \
	ibuslookuptable.c \
	ibuslookuptable.h \
	ibusinputcontext.c \
	ibusinputcontext.h \
	ibusconfig.c \
	ibusconfig.h \
	ibuserror.c \
	ibuserror.h \
	ibuskeysyms.h \
	ibustypes.h \
	ibusmarshalers.h \
	ibusmarshalers.c \
	ibusbus.c \
	ibusbus.h \
	keynames.h \
	ibuskeynames.c \
	$(NULL)
libibus_la_CFLAGS = \
	@X11_CFLAGS@ \
	@GLIB2_CFLAGS@ \
	@GOBJECT2_CFLAGS@ \
	@GIO2_CFLAGS@ \
	@DBUS_CFLAGS@ \
	-DG_LOG_DOMAIN=\"IBUS\" \
	$(NULL)
libibus_la_LDFLAGS = \
	@X11_LIBS@ \
	@GLIB2_LIBS@ \
	@GOBJECT2_LIBS@ \
	@GIO2_LIBS@ \
	@DBUS_LIBS@ \
	$(NULL)


# test programs

AM_CFLAGS = \
	@X11_CFLAGS@ \
	@DBUS_CFLAGS@ \
	-DG_LOG_DOMAIN=\"IBUS\" \
	$(NULL)
AM_LDFLAGS = \
	libibus.la \
	$(NULL)

TESTS = \
	test-keynames \
	test-bus \
	test-proxy \
	test-attribute \
	test-lookuptable \
	test-server \
	test-engine \
	$(NULL)
noinst_PROGRAMS = $(TESTS)

# gen marshal
ibusmarshalers.h: stamp-ibusmarshalers.h
	@true
stamp-ibusmarshalers.h: ibusmarshalers.list
	$(GLIB_GENMARSHAL) --prefix=ibus_marshal $(srcdir)/ibusmarshalers.list --header >> xgen-gmh \
	&& (cmp -s xgen-gmh ibusmarshalers.h || cp xgen-gmh ibusmarshalers.h) \
	&& rm -f xgen-gmh \
	&& echo timestamp > $(@F)
ibusmarshalers.c: ibusmarshalers.list
	(echo "#include \"ibusmarshalers.h\""; \
	 $(GLIB_GENMARSHAL) --prefix=ibus_marshal $(srcdir)/ibusmarshalers.list --body; \
	 echo ) >> xgen-gmc \
	&& cp xgen-gmc ibusmarshalers.c \
	&& rm -f xgen-gmc

EXTRA_DIST = \
	ibusmarshalers.list \
	$(NULL)

CLEANFILES = $(BUILT_SOURCES) stamp-ibusmarshalers.h