From e5fcdfd21f1a7edc7dbdeeb2845d51adcf0cbeca Mon Sep 17 00:00:00 2001 From: handa Date: Sun, 27 Jul 2008 02:28:28 +0000 Subject: [PATCH] (AM_CPPFLAGS): Renambed from AM_CFLAGS. Add flags fro building scim-m17n-setup. (setupmoduedir, setupmodule_LTLIBRARIES) (scim_m17n_setup_la_SOURCES) (scim_m17n_setup_la_LDFLAGS): New variables. --- src/Makefile.am | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index a31079a..d7f3958 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,9 @@ -AM_CFLAGS = @GTK2_CFLAGS@ @M17NLIB_CFLAGS@ -AM_CPPFLAGS = -DGETTEXTDIR=\"@GETTEXTDIR@\" +AM_CPPFLAGS = \ + @GTK2_CFLAGS@ \ + @M17NLIB_CFLAGS@ \ + @SCIM_GTKUTILS_CFLAGS@ \ + @SCIM_CFLAGS@ \ + -DGETTEXTDIR=\"@GETTEXTDIR@\" lib_LTLIBRARIES = libm17n-im-config.la @@ -9,8 +13,26 @@ libm17n_im_config_la_LIBADD = @GTK2_LIBS@ @M17NLIB_LIBS@ include_HEADERS=m17n-im-config.h if ENABLE_PROG + bin_PROGRAMS = m17n-im-config m17n_im_config_SOURCES = m17n-im-config.h main.c m17n_im_config_LDADD = @GTK2_LIBS@ ${top_builddir}/src/libm17n-im-config.la + +endif + +if ENABLE_SCIM_SETUP + +setupmoduledir = @SCIM_MODULEDIR@/SetupUI +setupmodule_LTLIBRARIES = scim-m17n-setup.la + +scim_m17n_setup_la_SOURCES = scim-m17n-setup.cpp +scim_m17n_setup_la_LDFLAGS = -avoid-version \ + -rpath $(setupmoduledir) \ + -module \ + @SCIM_GTKUTILS_LIBS@ \ + @SCIM_LIBS@ \ + @M17NLIB_LIBS@ \ + libm17n-im-config.la + endif -- 1.7.10.4