Newer
Older
# libpyzy - The Chinese PinYin and Bopomofo conversion library.
#
# Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
#
# 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.1 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 library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
# @MAINTAINER_MODE_FALSE@skip_gentable=test -f $@ ||
# AM_CFLAGS = \
# @IBUS_CFLAGS@ \
# @SQLITE_CFLAGS@ \
# -DPKGDATADIR=\"$(pkgdatadir)\" \
# $(NULL)
# AM_CXXFLAGS = $(AM_CFLAGS)
# AM_LDADD = \
# @IBUS_LIBS@ \
# @SQLITE_LIBS@ \
# $(NULL)
#
libpyzyincludedir = $(includedir)/pyzy-@PYZY_API_VERSION@
libpyzy_built_c_sources = \
$(NULL)
libpyzy_built_h_sources = \
PyZyBopomofoKeyboard.h \
PyZyPinyinParserTable.h \
PyZySimpTradConverterTable.h \
$(NULL)
libpyzy_c_sources = \
PyZyBopomofoContext.cc \
PyZyDatabase.cc \
PyZyDoublePinyinContext.cc \
PyZyPhoneticContext.cc \
PyZyPhraseEditor.cc \
PyZyPinyinContext.cc \
PyZyPinyinParser.cc \
PyZySimpTradConverter.cc \
PyZySpecialPhraseTable.cc \
$(NULL)
# PyZyTest.cc
libpyzy_h_sources = \
PyZyBopomofo.h \
PyZyBopomofoContext.h \
PyZyConfig.h \
PyZyDatabase.h \
PyZyDoublePinyinContext.h \
PyZyDoublePinyinTable.h \
PyZyPhoneticContext.h \
PyZyPhrase.h \
PyZyPhraseArray.h \
PyZyPhraseEditor.h \
PyZyPinyinArray.h \
PyZyPinyinContext.h \
PyZyPinyinParser.h \
PyZySimpTradConverter.h \
PyZySpecialPhrase.h \
PyZySpecialPhraseTable.h \
PyZyString.h \
PyZyTypes.h \
PyZyUtil.h \
$(libpyzy_c_sources) \
$(libpyzy_h_sources) \
$(libpyzy_built_c_sources) \
$(libpyzy_built_h_sources) \
$(NULL)
libpyzy_1_0_la_LDFLAGS = \
-no-undefined \
-version-info @LT_VERSION_INFO@ \
$(NULL)
@GLIB2_CFLAGS@ \
@SQLITE_CFLAGS@ \
@OPENCC_CFLAGS@ \
-DPKGDATADIR=\"$(pkgdatadir)\" \
$(NULL)
if HAVE_BOOST
@BOOST_CPPFLAGS@ \
$(NULL)
else
-std=c++0x \
$(NULL)
endif
@GLIB2_LIBS@ \
@SQLITE_LIBS@ \
@OPENCC_LIBS@ \
$(NULL)
libpyzy_1_0_la_CXXFLAGS += $(LIBUUID_CFLAGS)
libpyzy_1_0_la_LIBADD += $(LIBUUID_LIBS)
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
endif
BUILT_SOURCES = \
$(libpyzy_built_c_sources) \
$(libpyzy_built_h_sources) \
$(NULL)
pkgdata_DATA = \
phrases.txt \
$(NULL)
EXTRA_DIST = \
phrases.txt \
$(NULL)
CLEANFILES = \
ZhConversion.* \
$(NULL)
PyZyBopomofoKeyboard.h:
$(AM_V_GEN) \
$(PYTHON) $(top_srcdir)/scripts/genbopomofokeyboard.py > $@ || \
( $(RM) $@; exit 1 )
PyZyPinyinParserTable.h:
$(AM_V_GEN) \
$(PYTHON) $(top_srcdir)/scripts/genpytable.py > $@ || \
( $(RM) $@; exit 1 )
PyZySimpTradConverterTable.h:
$(AM_V_GEN) \
$(PYTHON) $(top_srcdir)/scripts/update-simptrad-table.py > $@ || \
( $(RM) $@; exit 1 )
update-simptrad-table:
$(RM) ZhConversion.php ZhConversion.py PyZySimpTradConverterTable.h
$(MAKE) ZhConversion.php
$(MAKE) ZhConversion.py
$(MAKE) PyZySimpTradConverterTable.h
ZhConversion.php:
$(AM_V_GEN) \
svn cat http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/includes/ZhConversion.php > $@ || \
( $(RM) $@; exit 1 )
ZhConversion.py: ZhConversion.php
$(AM_V_GEN) \
php $(top_srcdir)/scripts/php_2_py.php > $@ || \
( $(RM) $@; exit 1 )