rhubarb-lip-sync/lib/pocketsphinx-rev13216/swig/python/Makefile.am

40 lines
898 B
Makefile

if BUILD_SWIG
SUBDIRS = test
SWIG_FLAGS = -I$(top_srcdir)/include -I@SPHINXBASE_SWIG@
SWIG_DIR = $(top_srcdir)/swig
SWIG_FILES = \
$(SWIG_DIR)/pocketsphinx.i \
$(SWIG_DIR)/ps_decoder.i \
$(SWIG_DIR)/ps_lattice.i
if BUILD_DOXYGEN
SWIG_FLAGS += -DHAS_DOC -I$(top_builddir)/doc
SWIG_FILES += $(top_builddir)/doc/pydoc.i
endif
CLEANFILES = pocketsphinx_wrap.c pocketsphinx.py pocketsphinx.pyc
nodist_pkgpyexec_PYTHON = pocketsphinx.py
pkgpyexec_PYTHON = __init__.py
pkgpyexec_LTLIBRARIES = _pocketsphinx.la
nodist__pocketsphinx_la_SOURCES = pocketsphinx_wrap.c
AM_CFLAGS =\
$(PYTHON_CPPFLAGS) \
-I$(top_srcdir)/include \
-D_DATADIR=\"$(datadir)/@PACKAGE@\"
_pocketsphinx_la_LDFLAGS = -module
_pocketsphinx_la_LIBADD = \
-lsphinxbase \
$(top_builddir)/src/libpocketsphinx/libpocketsphinx.la
pocketsphinx_wrap.c: $(SWIG_FILES)
$(SWIG) $(SWIG_FLAGS) -outdir . -o $@ -python $<
endif