# vim:set noet ts=4: # # scim-python # # Copyright (c) 2007-2008 Huang Peng # # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library 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 Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307 USA # # $Id: $ # pyexec_PYTHON = scim.pth pymoduledir = @pyexecdir@/scim-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@/scim pymodule_LTLIBRARIES = _scim.la _scim_la_SOURCES = \ scim-python.cpp \ scim-python-event.cpp \ scim-python-config.cpp \ scim-python-attribute.cpp \ scim-python-engine.cpp \ scim-python-factory.cpp \ scim-python-helper.cpp \ scim-python-property.cpp \ scim-python-lookup-table.cpp\ $(NULL) _scim_la_CXXFLAGS = \ @SCIM_CFLAGS@ \ @GTK2_CFLAGS@ \ @PYGTK2_CFLAGS@ \ -DSCIM_PYTHON_DATADIR=\"$(pkgdatadir)\" \ -DSCIM_PYTHON_LOCALEDIR=\"$(localedir)\"\ @PYTHON_CFLAGS@ \ $(NULL) _scim_la_LDFLAGS = \ -rpath $(pymoduledir) \ -Wl,--version-script=$(srcdir)/scim.version-script \ -avoid-version \ -module \ -export-dynamic \ -Wl,-export-dynamic \ @SCIM_LIBS@ \ @GTK2_LIBS@ \ @PYGTK2_LIBS@ \ @PYTHON_LIBS@ \ $(NULL) noinst_HEADERS = \ scim-python.h \ scim-python-event.h \ scim-python-config.h \ scim-python-engine.h \ scim-python-factory.h \ scim-python-helper.h \ scim-python-property.h \ scim-python-attribute.h \ scim-python-lookup-table.h \ $(NULL) EXTRA_DIST = scim.version-script SUBDIRS = # setupui install-data-hook: mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/ ln -sf $(pymoduledir)/_scim.so \ $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/python.so mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/ ln -sf $(pymoduledir)/_scim.so \ $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/python.so mkdir -p $(DESTDIR)@SCIM_MODULEDIR@/Helper/ ln -sf $(pymoduledir)/_scim.so \ $(DESTDIR)@SCIM_MODULEDIR@/Helper/python.so uninstall-hook: rm $(DESTDIR)@SCIM_MODULEDIR@/IMEngine/python.so rm $(DESTDIR)@SCIM_MODULEDIR@/SetupUI/python.so rm $(DESTDIR)@SCIM_MODULEDIR@/Helper/python.so