2001-11-02 22:56:59 +00:00
|
|
|
## Makefile.am for gtk+/modules/input
|
|
|
|
|
|
|
|
if PLATFORM_WIN32
|
|
|
|
no_undefined = -no-undefined
|
|
|
|
endif
|
2000-11-12 03:40:47 +00:00
|
|
|
|
2003-05-06 21:55:41 +00:00
|
|
|
INCLUDES = \
|
2000-11-12 03:40:47 +00:00
|
|
|
-I$(top_srcdir) \
|
2000-11-14 16:38:04 +00:00
|
|
|
-I$(top_srcdir)/gdk \
|
2000-11-12 03:40:47 +00:00
|
|
|
-I$(top_builddir)/gdk \
|
2002-10-13 20:44:18 +00:00
|
|
|
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
|
|
|
-DGDK_DISABLE_DEPRECATED \
|
|
|
|
-DGTK_DISABLE_DEPRECATED \
|
2003-05-06 21:55:41 +00:00
|
|
|
$(GTK_DEBUG_FLAGS) \
|
|
|
|
$(GTK_XIM_FLAGS) \
|
|
|
|
$(GTK_DEP_CFLAGS)
|
2000-11-12 03:40:47 +00:00
|
|
|
|
|
|
|
DEPS = \
|
2002-03-05 21:04:09 +00:00
|
|
|
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
|
2003-05-06 21:55:41 +00:00
|
|
|
$(top_builddir)/gdk/$(gdktargetlib) \
|
|
|
|
$(top_builddir)/gtk/$(gtktargetlib)
|
2000-11-12 03:40:47 +00:00
|
|
|
|
2003-05-06 21:55:41 +00:00
|
|
|
LDADDS = \
|
2002-03-05 21:04:09 +00:00
|
|
|
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
|
2003-05-06 21:55:41 +00:00
|
|
|
$(top_builddir)/gdk/$(gdktargetlib) \
|
|
|
|
$(top_builddir)/gtk/$(gtktargetlib) \
|
|
|
|
$(GTK_DEP_LIBS)
|
2000-11-12 03:40:47 +00:00
|
|
|
|
2002-03-03 16:07:53 +00:00
|
|
|
moduledir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/immodules
|
2000-11-28 18:46:11 +00:00
|
|
|
|
2001-11-02 22:56:59 +00:00
|
|
|
im_xim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
2000-11-28 18:46:11 +00:00
|
|
|
im_xim_la_SOURCES = \
|
|
|
|
gtkimcontextxim.c \
|
|
|
|
gtkimcontextxim.h \
|
|
|
|
imxim.c
|
2001-05-16 18:51:28 +00:00
|
|
|
im_xim_la_LIBADD = $(LDADDS)
|
2003-04-18 20:53:37 +00:00
|
|
|
if HAVE_X11R6
|
2000-11-28 18:46:11 +00:00
|
|
|
IM_XIM_MODULE=im-xim.la
|
|
|
|
endif
|
2000-11-12 03:40:47 +00:00
|
|
|
|
2002-02-10 17:46:08 +00:00
|
|
|
im_am_et_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
|
|
im_am_et_la_SOURCES = imam-et.c
|
|
|
|
im_am_et_la_LIBADD = $(LDADDS)
|
|
|
|
|
2003-08-15 21:30:44 +00:00
|
|
|
im_cedilla_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
|
|
im_cedilla_la_SOURCES = imcedilla.c
|
|
|
|
im_cedilla_la_LIBADD = $(LDADDS)
|
|
|
|
|
2001-11-02 22:56:59 +00:00
|
|
|
im_cyrillic_translit_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
2000-11-12 03:40:47 +00:00
|
|
|
im_cyrillic_translit_la_SOURCES = imcyrillic-translit.c
|
2001-05-16 18:51:28 +00:00
|
|
|
im_cyrillic_translit_la_LIBADD = $(LDADDS)
|
2000-11-12 03:40:47 +00:00
|
|
|
|
2002-02-10 17:46:08 +00:00
|
|
|
im_ti_er_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
|
|
im_ti_er_la_SOURCES = imti-er.c
|
|
|
|
im_ti_er_la_LIBADD = $(LDADDS)
|
|
|
|
|
|
|
|
im_ti_et_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
|
|
im_ti_et_la_SOURCES = imti-et.c
|
|
|
|
im_ti_et_la_LIBADD = $(LDADDS)
|
|
|
|
|
2006-11-29 01:14:04 +00:00
|
|
|
im_thai_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
|
|
im_thai_la_SOURCES = \
|
|
|
|
thai-charprop.c \
|
|
|
|
thai-charprop.h \
|
|
|
|
gtkimcontextthai.c \
|
|
|
|
gtkimcontextthai.h \
|
|
|
|
imthai.c
|
|
|
|
im_thai_la_LIBADD = $(LDADDS)
|
2000-11-12 22:59:39 +00:00
|
|
|
|
2001-11-02 22:56:59 +00:00
|
|
|
im_viqr_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
2000-11-12 22:59:39 +00:00
|
|
|
im_viqr_la_SOURCES = imviqr.c
|
2001-05-16 18:51:28 +00:00
|
|
|
im_viqr_la_LIBADD = $(LDADDS)
|
2000-11-12 22:59:39 +00:00
|
|
|
|
2001-11-02 22:56:59 +00:00
|
|
|
im_inuktitut_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
2000-11-15 02:45:55 +00:00
|
|
|
im_inuktitut_la_SOURCES = iminuktitut.c
|
2001-05-16 18:51:28 +00:00
|
|
|
im_inuktitut_la_LIBADD = $(LDADDS)
|
2000-11-15 02:45:55 +00:00
|
|
|
|
2001-11-02 22:56:59 +00:00
|
|
|
im_ipa_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
2001-03-03 19:57:54 +00:00
|
|
|
im_ipa_la_SOURCES = imipa.c
|
2001-05-16 18:51:28 +00:00
|
|
|
im_ipa_la_LIBADD = $(LDADDS)
|
2001-03-03 19:57:54 +00:00
|
|
|
|
2004-08-26 14:29:25 +00:00
|
|
|
|
|
|
|
im_ime_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
|
|
im_ime_la_SOURCES = \
|
|
|
|
gtkimcontextime.c \
|
|
|
|
gtkimcontextime.h \
|
|
|
|
imime.c \
|
|
|
|
imm-extra.h
|
2004-08-30 04:53:23 +00:00
|
|
|
im_ime_la_LIBADD = -limm32 $(LDADDS)
|
2005-06-04 22:08:50 +00:00
|
|
|
if USE_WIN32
|
2004-08-26 14:29:25 +00:00
|
|
|
IM_IME_MODULE=im-ime.la
|
|
|
|
endif
|
|
|
|
|
2007-05-24 19:43:05 +00:00
|
|
|
multipress_defs = -DMULTIPRESS_LOCALEDIR=\""$(mplocaledir)"\" -DMULTIPRESS_CONFDIR=\""$(sysconfdir)/gtk-2.0"\"
|
2007-03-18 05:34:24 +00:00
|
|
|
im_multipress_la_CPPFLAGS = $(multipress_defs)
|
|
|
|
im_multipress_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
|
|
im_multipress_la_SOURCES = \
|
|
|
|
gtkimcontextmultipress.c \
|
|
|
|
gtkimcontextmultipress.h \
|
|
|
|
immultipress.c
|
2007-03-27 22:11:38 +00:00
|
|
|
im_multipress_la_LIBADD = $(LDADDS)
|
2007-03-18 05:34:24 +00:00
|
|
|
|
2007-05-24 19:43:05 +00:00
|
|
|
imconffiledir = $(sysconfdir)/gtk-2.0
|
2007-03-18 05:34:24 +00:00
|
|
|
dist_imconffile_DATA = im-multipress.conf
|
|
|
|
|
2002-09-27 22:10:55 +00:00
|
|
|
if CROSS_COMPILING
|
|
|
|
RUN_QUERY_IMMODULES_TEST=false
|
|
|
|
else
|
|
|
|
RUN_QUERY_IMMODULES_TEST=test -z "$(DESTDIR)"
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Running this if cross compiling or if DESTDIR is set is going to
|
|
|
|
# not work at all, so skip it.
|
2003-11-18 00:26:51 +00:00
|
|
|
# We use install-data-hook here to workaround a bug in automake and/or libtool
|
|
|
|
# that makes the install target for the loader libraries a dependency on
|
|
|
|
# install-data-am, and not install-exec-am. We need to ensure this gets run
|
|
|
|
# after the libraries are installed in their final locations.
|
|
|
|
install-data-hook:
|
2002-09-27 22:10:55 +00:00
|
|
|
@if $(RUN_QUERY_IMMODULES_TEST) ; then \
|
|
|
|
echo $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
|
2001-09-04 16:07:05 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
|
2002-09-27 22:10:55 +00:00
|
|
|
echo "$(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules" ; \
|
2001-09-04 16:07:05 +00:00
|
|
|
$(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules ; \
|
2002-09-27 22:10:55 +00:00
|
|
|
else \
|
|
|
|
echo "***" ; \
|
|
|
|
echo "*** Warning: gtk.immodules not built" ; \
|
|
|
|
echo "***" ; \
|
|
|
|
echo "*** Generate this file manually on host" ; \
|
|
|
|
echo "*** system using gtk-query-immodules-2.0" ; \
|
|
|
|
echo "***" ; \
|
2001-09-04 16:07:05 +00:00
|
|
|
fi
|
2001-04-03 18:48:46 +00:00
|
|
|
|
2003-05-06 21:55:41 +00:00
|
|
|
uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules
|
|
|
|
|
2002-02-10 17:46:08 +00:00
|
|
|
module_LTLIBRARIES = \
|
|
|
|
$(IM_XIM_MODULE) \
|
|
|
|
im-am-et.la \
|
2003-08-15 21:30:44 +00:00
|
|
|
im-cedilla.la \
|
2002-02-10 17:46:08 +00:00
|
|
|
im-cyrillic-translit.la \
|
|
|
|
im-inuktitut.la \
|
|
|
|
im-ipa.la \
|
2006-11-29 01:14:04 +00:00
|
|
|
im-thai.la \
|
2002-02-10 17:46:08 +00:00
|
|
|
im-ti-er.la \
|
|
|
|
im-ti-et.la \
|
2004-08-26 14:29:25 +00:00
|
|
|
im-viqr.la \
|
2007-03-18 05:34:24 +00:00
|
|
|
im-multipress.la \
|
2004-08-26 14:29:25 +00:00
|
|
|
$(IM_IME_MODULE)
|
2001-04-03 18:48:46 +00:00
|
|
|
|
|
|
|
gtk.immodules: Makefile.am $(module_LTLIBRARIES)
|
2004-02-17 15:24:25 +00:00
|
|
|
$(top_builddir)/gtk/gtk-query-immodules-2.0 $(module_LTLIBRARIES) > gtk.immodules
|
2001-04-03 18:48:46 +00:00
|
|
|
|
2003-05-06 21:55:41 +00:00
|
|
|
CLEANFILES = gtk.immodules
|
|
|
|
|
2002-09-27 22:10:55 +00:00
|
|
|
if CROSS_COMPILING
|
|
|
|
else
|
2001-04-03 18:48:46 +00:00
|
|
|
all-local: gtk.immodules
|
2002-09-27 22:10:55 +00:00
|
|
|
endif
|