Newer
Older
scim-wnn / honoka / src / Makefile.am
## Makefile.am -- Process this file with automake to produce Makefile.in
## Copyright (C) 2002 James Su
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

MAINTAINERCLEANFILES	= Makefile.in

INCLUDES		= -I$(top_builddir) \
	    		  -I$(top_srcdir) \
			  -I$(top_srcdir)/src \
			  -DSCIM_ICONDIR=\"@SCIM_ICONDIR@\" \
			  -DHONOKA_LOCALEDIR=\"$(datadir)/locale\" \
			  -DHONOKA_DATADIR=\"@SCIM_DATADIR@/honoka\" \
			  -DHONOKA_ICON_FILE=\"@SCIM_ICONDIR@/honoka.png\" \
			  -DHONOKA_PLUGINDIR=\"@SCIM_MODULEDIR@/honoka\"

noinst_HEADERS = honoka_imengine.h wnnproto.h romkan.h romkan_table.h \
						wnnconversion.h honoka_def.h kanainput.h anthyconversion.h 

moduledir		= @SCIM_MODULEDIR@/IMEngine
module_LTLIBRARIES	= honoka.la

honoka_la_SOURCES = honoka_imengine.cpp 

honoka_la_CFLAGS		= @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
honoka_la_CXXFLAGS		= @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@

honoka_la_LDFLAGS = -avoid-version -module -rpath $(moduledir) \
	@LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@
honoka_la_LIBADD = $(top_builddir)/src/libhonoka_plugin.la


if SCIM_BUILD_SETUP
SETUP_MODULE = honoka-imengine-setup.la
endif

setupmoduledir           = @SCIM_MODULEDIR@/SetupUI
setupmodule_LTLIBRARIES  = $(SETUP_MODULE)

honoka_imengine_setup_la_SOURCES = honoka_imengine_setup.cpp

honoka_imengine_setup_la_CFLAGS  = @SCIM_GTKUTILS_CFLAGS@ @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@

honoka_imengine_setup_la_CXXFLAGS= @SCIM_GTKUTILS_CFLAGS@ @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@

honoka_imengine_setup_la_LDFLAGS = -avoid-version \
				   -rpath $(setupmoduledir) \
				   -module \
				   @LIBTOOL_EXPORT_OPTIONS@ \
				   @SCIM_GTKUTILS_LIBS@ \
				   @INTLLIBS@ \
				   @SCIM_LIBS@

libhonokaincludedir = $(includedir)/honoka
libhonokainclude_HEADERS = convertor.h preeditor.h honokapluginbase.h honokakeyeventlist.h

lib_LTLIBRARIES = libhonoka_plugin.la
libhonoka_plugin_la_SOURCES = convertor.cpp honokapluginbase.cpp preeditor.cpp \
	honokakeyeventlist.cpp
libhonoka_plugin_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
libhonoka_plugin_la_CXXFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
libhonoka_plugin_la_LDFLAGS = @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@


if WNNCONVERSION
WNN_PLUGIN = plugin-wnn.la
endif

if ANTHYCONVERSION
ANTHY_PLUGIN = plugin-anthy.la
endif

plugindir           = @SCIM_MODULEDIR@/honoka
plugin_LTLIBRARIES  = $(ANTHY_PLUGIN) $(WNN_PLUGIN) plugin-romkan.la plugin-kanainput.la

plugin_anthy_la_SOURCES = anthyconversion.cpp
plugin_anthy_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_anthy_la_CXXFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_anthy_la_LDFLAGS = -avoid-version -module -rpath $(plugindir) @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@ @ANTHY_LIBS@
plugin_anthy_la_LIBADD = $(top_builddir)/src/libhonoka_plugin.la

plugin_wnn_la_SOURCES = wnnconversion.cpp
plugin_wnn_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_wnn_la_CXXFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_wnn_la_LDFLAGS = -avoid-version -module -rpath $(plugindir) @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@ @WNN_LIBS@
plugin_wnn_la_LIBADD = $(top_builddir)/src/libhonoka_plugin.la

plugin_romkan_la_SOURCES = romkan.cpp
plugin_romkan_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_romkan_la_CXXFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_romkan_la_LDFLAGS = -avoid-version -module -rpath $(plugindir) @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@ 
plugin_romkan_la_LIBADD = $(top_builddir)/src/libhonoka_plugin.la

plugin_kanainput_la_SOURCES = kanainput.cpp
plugin_kanainput_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_kanainput_la_CXXFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
plugin_kanainput_la_LDFLAGS = -avoid-version -module -rpath $(plugindir) @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@
plugin_kanainput_la_LIBADD = $(top_builddir)/src/libhonoka_plugin.la