(AM_CPPFLAGS): Renambed from AM_CFLAGS. Add
authorhanda <handa>
Sun, 27 Jul 2008 02:28:28 +0000 (02:28 +0000)
committerhanda <handa>
Sun, 27 Jul 2008 02:28:28 +0000 (02:28 +0000)
flags fro building scim-m17n-setup.
(setupmoduedir, setupmodule_LTLIBRARIES)
(scim_m17n_setup_la_SOURCES)
(scim_m17n_setup_la_LDFLAGS): New variables.

src/Makefile.am

index a31079a..d7f3958 100644 (file)
@@ -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