forked from AuroraMiddleware/gtk
2dc08ada49
2007-11-22 15:39:40 Tim Janik <timj@imendio.com> * gtk/gtktestutils.c: call g_test_init() from gtk_test_init(). * gtk/tests/testing.c: use g_test_add_func() to register tests and use g_test_run() to run the tests to integrate with the testing framework. * gtk/tests/Makefile.am: removed exemplary testing rules. * Makefile.am, gtk/tests/Makefile.am, gtk/Makefile.am: * gtk/xdgmime/Makefile.am, gtk/theme-bits/Makefile.am: * tests/Makefile.am, docs/reference/gdk-pixbuf/Makefile.am: * docs/reference/gdk/Makefile.am, docs/reference/gtk/Makefile.am: * docs/reference/Makefile.am, docs/tools/Makefile.am: * docs/tutorial/Makefile.am, docs/faq/Makefile.am, docs/Makefile.am: * gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/Makefile.am: * demos/gtk-demo/Makefile.am, demos/Makefile.am: * modules/input/Makefile.am, modules/printbackends/file/Makefile.am: * modules/printbackends/test/Makefile.am, modules/printbackends/Makefile.am: * modules/printbackends/cups/Makefile.am, modules/printbackends/lpr/Makefile.am: * modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: * modules/engines/ms-windows/Theme/Makefile.am: * modules/engines/ms-windows/Makefile.am: * modules/engines/Makefile.am, modules/engines/pixbuf/Makefile.am: * modules/Makefile.am, m4macros/Makefile.am, perf/Makefile.am: * contrib/Makefile.am, contrib/gdk-pixbuf-xlib/Makefile.am: * gdk/directfb/Makefile.am, gdk/linux-fb/Makefile.am: * gdk/quartz/Makefile.am, gdk/win32/rc/Makefile.am: * gdk/win32/Makefile.am, gdk/x11/Makefile.am, gdk/Makefile.am: include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments. svn path=/trunk/; revision=19033
160 lines
4.7 KiB
Makefile
160 lines
4.7 KiB
Makefile
## Makefile.am for gtk+/modules/input
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
if PLATFORM_WIN32
|
|
no_undefined = -no-undefined
|
|
endif
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/gdk \
|
|
-I$(top_builddir)/gdk \
|
|
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
|
-DGDK_DISABLE_DEPRECATED \
|
|
-DGTK_DISABLE_DEPRECATED \
|
|
$(GTK_DEBUG_FLAGS) \
|
|
$(GTK_XIM_FLAGS) \
|
|
$(GTK_DEP_CFLAGS)
|
|
|
|
DEPS = \
|
|
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
|
|
$(top_builddir)/gdk/$(gdktargetlib) \
|
|
$(top_builddir)/gtk/$(gtktargetlib)
|
|
|
|
LDADDS = \
|
|
$(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \
|
|
$(top_builddir)/gdk/$(gdktargetlib) \
|
|
$(top_builddir)/gtk/$(gtktargetlib) \
|
|
$(GTK_DEP_LIBS)
|
|
|
|
moduledir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/immodules
|
|
|
|
im_xim_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
im_xim_la_SOURCES = \
|
|
gtkimcontextxim.c \
|
|
gtkimcontextxim.h \
|
|
imxim.c
|
|
im_xim_la_LIBADD = $(LDADDS)
|
|
if HAVE_X11R6
|
|
IM_XIM_MODULE=im-xim.la
|
|
endif
|
|
|
|
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)
|
|
|
|
im_cedilla_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
im_cedilla_la_SOURCES = imcedilla.c
|
|
im_cedilla_la_LIBADD = $(LDADDS)
|
|
|
|
im_cyrillic_translit_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
im_cyrillic_translit_la_SOURCES = imcyrillic-translit.c
|
|
im_cyrillic_translit_la_LIBADD = $(LDADDS)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
im_viqr_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
im_viqr_la_SOURCES = imviqr.c
|
|
im_viqr_la_LIBADD = $(LDADDS)
|
|
|
|
im_inuktitut_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
im_inuktitut_la_SOURCES = iminuktitut.c
|
|
im_inuktitut_la_LIBADD = $(LDADDS)
|
|
|
|
im_ipa_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
im_ipa_la_SOURCES = imipa.c
|
|
im_ipa_la_LIBADD = $(LDADDS)
|
|
|
|
|
|
im_ime_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
|
|
im_ime_la_SOURCES = \
|
|
gtkimcontextime.c \
|
|
gtkimcontextime.h \
|
|
imime.c \
|
|
imm-extra.h
|
|
im_ime_la_LIBADD = -limm32 $(LDADDS)
|
|
if USE_WIN32
|
|
IM_IME_MODULE=im-ime.la
|
|
endif
|
|
|
|
multipress_defs = -DMULTIPRESS_LOCALEDIR=\""$(mplocaledir)"\" -DMULTIPRESS_CONFDIR=\""$(sysconfdir)/gtk-2.0"\"
|
|
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
|
|
im_multipress_la_LIBADD = $(LDADDS)
|
|
|
|
imconffiledir = $(sysconfdir)/gtk-2.0
|
|
dist_imconffile_DATA = im-multipress.conf
|
|
|
|
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.
|
|
# 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:
|
|
@if $(RUN_QUERY_IMMODULES_TEST) ; then \
|
|
echo $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
|
|
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
|
|
echo "$(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules" ; \
|
|
$(top_builddir)/gtk/gtk-query-immodules-2.0 > $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules ; \
|
|
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 "***" ; \
|
|
fi
|
|
|
|
uninstall-local:
|
|
rm -f $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules
|
|
|
|
module_LTLIBRARIES = \
|
|
$(IM_XIM_MODULE) \
|
|
im-am-et.la \
|
|
im-cedilla.la \
|
|
im-cyrillic-translit.la \
|
|
im-inuktitut.la \
|
|
im-ipa.la \
|
|
im-thai.la \
|
|
im-ti-er.la \
|
|
im-ti-et.la \
|
|
im-viqr.la \
|
|
im-multipress.la \
|
|
$(IM_IME_MODULE)
|
|
|
|
gtk.immodules: Makefile.am $(module_LTLIBRARIES)
|
|
$(top_builddir)/gtk/gtk-query-immodules-2.0 $(module_LTLIBRARIES) > gtk.immodules
|
|
|
|
CLEANFILES = gtk.immodules
|
|
|
|
if CROSS_COMPILING
|
|
else
|
|
all-local: gtk.immodules
|
|
endif
|