File: Makefile.am

package info (click to toggle)
sphinxbase 0.8%2B5prealpha%2B1-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,672 kB
  • sloc: ansic: 28,813; sh: 11,829; makefile: 699; python: 338; perl: 121; yacc: 93; lex: 50
file content (42 lines) | stat: -rw-r--r-- 992 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if BUILD_SWIG

SWIG_FLAGS = -I$(top_srcdir)/include

SWIG_DIR = $(top_srcdir)/swig

SWIG_FILES = \
	$(SWIG_DIR)/sphinxbase.i \
	$(SWIG_DIR)/cmd_ln.i \
	$(SWIG_DIR)/fe.i \
	$(SWIG_DIR)/feat.i \
	$(SWIG_DIR)/jsgf.i \
	$(SWIG_DIR)/fsg_model.i \
	$(SWIG_DIR)/ngram_model.i \
	$(SWIG_DIR)/iterators.i \
	$(SWIG_DIR)/typemaps.i

if BUILD_DOXYGEN
SWIG_FLAGS += -DHAS_DOC -I$(top_builddir)/doc
SWIG_FILES += $(top_builddir)/doc/pydoc.i
endif

CLEANFILES = sphinxbase_wrap.c sphinxbase.py sphinxbase.pyc

nodist_pkgpyexec_PYTHON = sphinxbase.py
pkgpyexec_PYTHON = __init__.py
pkgpyexec_LTLIBRARIES = _sphinxbase.la
nodist__sphinxbase_la_SOURCES = sphinxbase_wrap.c

_sphinxbase_la_CPPFLAGS = \
	$(PYTHON_CPPFLAGS) \
	-I$(top_srcdir)/include \
	-D_DATADIR=\"$(datadir)/@PACKAGE@\" \
	-Wno-unused-value

_sphinxbase_la_LDFLAGS = -module
_sphinxbase_la_LIBADD = $(top_builddir)/src/libsphinxbase/libsphinxbase.la

sphinxbase_wrap.c: $(SWIG_FILES)
	$(SWIG) $(SWIG_FLAGS) -outdir . -o $@ -python $<

endif