]> Pileus Git - ~andy/gtk/blob - modules/input/Makefile.am
Remove the broken Thai input method and add a functional Thai and Lao
[~andy/gtk] / modules / input / Makefile.am
1 ## Makefile.am for gtk+/modules/input
2
3 if PLATFORM_WIN32
4 no_undefined = -no-undefined
5 endif
6
7 INCLUDES = \
8         -I$(top_srcdir)                                 \
9         -I$(top_srcdir)/gdk                             \
10         -I$(top_builddir)/gdk                           \
11         -DGDK_PIXBUF_DISABLE_DEPRECATED                 \
12         -DGDK_DISABLE_DEPRECATED                        \
13         -DGTK_DISABLE_DEPRECATED                        \
14         $(GTK_DEBUG_FLAGS)                              \
15         $(GTK_XIM_FLAGS)                                \
16         $(GTK_DEP_CFLAGS)
17
18 DEPS = \
19         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
20         $(top_builddir)/gdk/$(gdktargetlib)                             \
21         $(top_builddir)/gtk/$(gtktargetlib)
22
23 LDADDS = \
24         $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la  \
25         $(top_builddir)/gdk/$(gdktargetlib)                             \
26         $(top_builddir)/gtk/$(gtktargetlib)                             \
27         $(GTK_DEP_LIBS)
28
29 moduledir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/immodules
30
31 im_xim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
32 im_xim_la_SOURCES =             \
33         gtkimcontextxim.c       \
34         gtkimcontextxim.h       \
35         imxim.c
36 im_xim_la_LIBADD = $(LDADDS)
37 if HAVE_X11R6
38 IM_XIM_MODULE=im-xim.la 
39 endif
40
41 im_am_et_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
42 im_am_et_la_SOURCES = imam-et.c
43 im_am_et_la_LIBADD = $(LDADDS)
44
45 im_cedilla_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
46 im_cedilla_la_SOURCES = imcedilla.c
47 im_cedilla_la_LIBADD = $(LDADDS)
48
49 im_cyrillic_translit_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
50 im_cyrillic_translit_la_SOURCES = imcyrillic-translit.c
51 im_cyrillic_translit_la_LIBADD = $(LDADDS)
52
53 im_ti_er_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
54 im_ti_er_la_SOURCES = imti-er.c
55 im_ti_er_la_LIBADD = $(LDADDS)
56
57 im_ti_et_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
58 im_ti_et_la_SOURCES = imti-et.c
59 im_ti_et_la_LIBADD = $(LDADDS)
60
61 im_thai_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
62 im_thai_la_SOURCES =            \
63         thai-charprop.c         \
64         thai-charprop.h         \
65         gtkimcontextthai.c      \
66         gtkimcontextthai.h      \
67         imthai.c
68 im_thai_la_LIBADD = $(LDADDS)
69
70 im_viqr_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
71 im_viqr_la_SOURCES = imviqr.c
72 im_viqr_la_LIBADD = $(LDADDS)
73
74 im_inuktitut_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
75 im_inuktitut_la_SOURCES = iminuktitut.c
76 im_inuktitut_la_LIBADD = $(LDADDS)
77
78 im_ipa_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
79 im_ipa_la_SOURCES = imipa.c
80 im_ipa_la_LIBADD = $(LDADDS)
81
82
83 im_ime_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
84 im_ime_la_SOURCES = \
85         gtkimcontextime.c \
86         gtkimcontextime.h \
87         imime.c           \
88         imm-extra.h
89 im_ime_la_LIBADD = -limm32 $(LDADDS)
90 if USE_WIN32
91 IM_IME_MODULE=im-ime.la 
92 endif
93
94 if CROSS_COMPILING
95 RUN_QUERY_IMMODULES_TEST=false
96 else
97 RUN_QUERY_IMMODULES_TEST=test -z "$(DESTDIR)"
98 endif
99
100 # Running this if cross compiling or if DESTDIR is set is going to
101 # not work at all, so skip it.
102 # We use install-data-hook here to workaround a bug in automake and/or libtool
103 # that makes the install target for the loader libraries a dependency on
104 # install-data-am, and not install-exec-am. We need to ensure this gets run
105 # after the libraries are installed in their final locations.
106 install-data-hook:
107         @if $(RUN_QUERY_IMMODULES_TEST) ; then \
108           echo $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
109           $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
110           echo "$(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules" ; \
111           $(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules ; \
112         else \
113           echo "***" ; \
114           echo "*** Warning: gtk.immodules not built" ; \
115           echo "***" ; \
116           echo "*** Generate this file manually on host" ; \
117           echo "*** system using gtk-query-immodules-2.0" ; \
118           echo "***" ; \
119         fi
120
121 uninstall-local:
122         rm -f $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules
123
124 module_LTLIBRARIES =                            \
125         $(IM_XIM_MODULE)                        \
126         im-am-et.la                             \
127         im-cedilla.la                           \
128         im-cyrillic-translit.la                 \
129         im-inuktitut.la                         \
130         im-ipa.la                               \
131         im-thai.la                              \
132         im-ti-er.la                             \
133         im-ti-et.la                             \
134         im-viqr.la                              \
135         $(IM_IME_MODULE)
136
137 gtk.immodules: Makefile.am $(module_LTLIBRARIES)
138         $(top_builddir)/gtk/gtk-query-immodules-2.0 $(module_LTLIBRARIES) > gtk.immodules
139
140 CLEANFILES = gtk.immodules
141
142 if CROSS_COMPILING
143 else
144 all-local: gtk.immodules
145 endif