# Makefile.am -- example level Makefile for the m17n library.
-# Copyright (C) 2003, 2004
+# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010
# National Institute of Advanced Industrial Science and Technology (AIST)
# Registration Number H15PRO112
bin_PROGRAMS = $(BASICPROGS)
endif
+INCLUDES = -I$(top_srcdir)/src
+
common_ldflags = ${top_builddir}/src/libm17n-core.la ${top_builddir}/src/libm17n.la
common_ldflags_gui = ${common_ldflags} ${top_builddir}/src/libm17n-flt.la ${top_builddir}/src/libm17n-gui.la
AM_CPPFLAGS=@CONFIG_FLAGS@
# External modules used by the above input methods.
-VINFO = -version-info @API_VERSION@
+moduledir = ${libdir}/@M17N_MODULE_DIR@
BASICBUILDS = libmimx-anthy.la
if WITH_GUI
else
BUILD_LIBS = $(BASICBUILDS)
endif
-lib_LTLIBRARIES = $(BUILD_LIBS)
+module_LTLIBRARIES = $(BUILD_LIBS)
libmimx_ispell_la_SOURCES = mimx-ispell.c
libmimx_ispell_la_LIBADD = ${common_ldflags_gui}
-libmimx_ispell_la_LDFLAGS = -module ${VINFO}
+libmimx_ispell_la_LDFLAGS = -avoid-version -module
libmimx_anthy_la_SOURCES = mimx-anthy.c
libmimx_anthy_la_LIBADD = ${common_ldflags} @ANTHY_LD_FLAGS@
-libmimx_anthy_la_LDFLAGS = -module ${VINFO}
+libmimx_anthy_la_LDFLAGS = -avoid-version -module
if MAINTAINER_MODE