-
Notifications
You must be signed in to change notification settings - Fork 122
/
Makefile.am
119 lines (104 loc) · 5.53 KB
/
Makefile.am
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = -I .autoconf/m4
EXTRA_DIST= \
$(srcdir)/LICENSE \
$(srcdir)/README.md \
$(srcdir)/docs/doxygen.cfg \
$(srcdir)/docs/mainpage.dox \
$(srcdir)/src/3rdparty/rnnlm/COPYRIGHT.txt \
$(srcdir)/src/3rdparty/utfcpp/utf8/checked.h \
$(srcdir)/src/3rdparty/utfcpp/utf8/core.h \
$(srcdir)/src/3rdparty/utfcpp/utf8/unchecked.h \
$(srcdir)/src/3rdparty/utfcpp/utf8.h \
$(srcdir)/src/configure \
$(srcdir)/src/lib/feature-reader.cc \
$(srcdir)/src/include/RnnLMPy.h \
$(srcdir)/python/phonetisaurus-module.py \
$(srcdir)/python/script/phoneticize.py \
$(srcdir)/python/script/demo.html \
$(srcdir)/python/script/words.list \
$(srcdir)/python/script/g2pserver.py \
$(srcdir)/python/phonetisaurus/__init__.py \
$(srcdir)/python/pybindgen/__init__.py \
$(srcdir)/python/pybindgen/cppclass_typehandlers.py \
$(srcdir)/python/pybindgen/cppexception.py \
$(srcdir)/python/pybindgen/cppmethod.py \
$(srcdir)/python/pybindgen/enum.py \
$(srcdir)/python/pybindgen/wscript \
$(srcdir)/python/pybindgen/cppclass.py \
$(srcdir)/python/pybindgen/cppclass_container.py \
$(srcdir)/python/pybindgen/settings.py \
$(srcdir)/python/pybindgen/function.py \
$(srcdir)/python/pybindgen/utils.py \
$(srcdir)/python/pybindgen/module.py \
$(srcdir)/python/pybindgen/typehandlers/__init__.py \
$(srcdir)/python/pybindgen/typehandlers/codesink.py \
$(srcdir)/python/pybindgen/typehandlers/ctypeparser/__init__.py \
$(srcdir)/python/pybindgen/typehandlers/ctypeparser/tokenizer.py \
$(srcdir)/python/pybindgen/typehandlers/stringtype.py \
$(srcdir)/python/pybindgen/typehandlers/pyobjecttype.py \
$(srcdir)/python/pybindgen/typehandlers/inttype.py \
$(srcdir)/python/pybindgen/typehandlers/doubletype.py \
$(srcdir)/python/pybindgen/typehandlers/voidtype.py \
$(srcdir)/python/pybindgen/typehandlers/floattype.py \
$(srcdir)/python/pybindgen/typehandlers/base.py \
$(srcdir)/python/pybindgen/typehandlers/booltype.py \
$(srcdir)/python/pybindgen/cppattribute.py \
$(srcdir)/python/pybindgen/gccxmlparser.py \
$(srcdir)/python/pybindgen/overloading.py \
$(srcdir)/python/pybindgen/pytypeobject.py \
$(srcdir)/python/pybindgen/container.py \
$(srcdir)/python/pybindgen/converter_functions.py \
$(srcdir)/python/pybindgen/version.py \
$(srcdir)/python/pybindgen/wrapper_registry.py \
$(srcdir)/python/setup.py \
$(srcdir)/test/g014b2b/g014b2b.ref \
$(srcdir)/test/g014b2b/g014b2b.train \
$(srcdir)/test/g014b2b/g014b2b.words \
$(srcdir)/test/check-nbest-wer.py
dist_bin_SCRIPTS = \
src/scripts/phonetisaurus-apply \
src/scripts/phonetisaurus-train
bin_PROGRAMS = \
phonetisaurus-align \
phonetisaurus-arpa2wfst \
phonetisaurus-g2pfst \
phonetisaurus-g2prnn \
rnnlm
AM_CPPFLAGS = -I$(top_srcdir)/src -DGIT_REVISION=\"$(GIT_REVISION)\" -std=c++0x -Wall -Wno-sign-compare -Wno-unused-local-typedefs
phonetisaurus_align_SOURCES = src/bin/phonetisaurus-align.cc src/include/PhonetisaurusRex.h src/lib/util.cc src/include/util.h src/lib/LatticePruner.cc src/include/LatticePruner.h src/lib/M2MFstAligner.cc src/include/M2MFstAligner.h
phonetisaurus_align_CXXFLAGS = $(OPENFST_CXXFLAGS) $(UTFCPP_CXXFLAGS)
phonetisaurus_align_LDADD = $(OPENFST_LDFLAGS)
phonetisaurus_arpa2wfst_SOURCES = src/bin/phonetisaurus-arpa2wfst.cc src/include/ARPA2WFST.h src/lib/util.cc src/include/util.h
phonetisaurus_arpa2wfst_CXXFLAGS = $(OPENFST_CXXFLAGS) $(UTFCPP_CXXFLAGS)
phonetisaurus_arpa2wfst_LDADD = $(OPENFST_LDFLAGS)
phonetisaurus_g2pfst_SOURCES = src/bin/phonetisaurus-g2pfst.cc src/include/PhonetisaurusScript.h src/include/PhonetisaurusRex.h src/lib/util.cc src/include/util.h
phonetisaurus_g2pfst_CXXFLAGS = $(OPENFST_CXXFLAGS) $(UTFCPP_CXXFLAGS) -funroll-loops -ffast-math
phonetisaurus_g2pfst_LDADD = $(OPENFST_LDFLAGS)
phonetisaurus_g2prnn_SOURCES = src/bin/phonetisaurus-g2prnn.cc src/include/LegacyRnnLMHash.h src/include/LegacyRnnLMDecodable.h src/include/LegacyRnnLMReader.h src/include/RnnLMDecoder.h src/lib/util.cc src/include/util.h src/3rdparty/rnnlm/rnnlmlib.cpp src/3rdparty/rnnlm/rnnlmlib.h
phonetisaurus_g2prnn_CXXFLAGS = $(OPENFST_CXXFLAGS) $(UTFCPP_CXXFLAGS) -I$(top_srcdir)/src/3rdparty/rnnlm -funroll-loops -ffast-math
phonetisaurus_g2prnn_LDADD = $(OPENFST_LDFLAGS)
if WANT_OPENMP
if OPENMP
phonetisaurus_g2prnn_CXXFLAGS += $(OPENMP_CXXFLAGS)
phonetisaurus_g2prnn_LDADD += $(OPENMP_LDFLAGS)
endif
endif
rnnlm_SOURCES = src/bin/rnnlm.cc src/3rdparty/rnnlm/rnnlmlib.cpp src/3rdparty/rnnlm/rnnlmlib.h
rnnlm_CXXFLAGS = $(OPENFST_CXXFLAGS) -I$(top_srcdir)/src/3rdparty/rnnlm -funroll-loops -ffast-math
rnnlm_LDADD = $(OPENFST_LDFLAGS)
if WANT_PYTHON
if HAVE_PYTHON
python/Phonetisaurus-binding.cc: $(top_srcdir)/python/phonetisaurus-module.py
mkdir -p python
$(PYTHON) -B $(top_srcdir)/python/phonetisaurus-module.py > python/Phonetisaurus-binding.cc
CLEANFILES = python/Phonetisaurus-binding.cc
if HAVE_PYTHON_DEV
pyexec_LTLIBRARIES = Phonetisaurus.la
nodist_Phonetisaurus_la_SOURCES = python/Phonetisaurus-binding.cc src/lib/util.cc src/include/util.h
Phonetisaurus_la_CXXFLAGS = $(OPENFST_CXXFLAGS) $(PYTHON_CPPFLAGS) $(UTFCPP_CXXFLAGS) -funroll-loops -ffast-math
Phonetisaurus_la_LIBADD = $(OPENFST_LDFLAGS) $(PYTHON_LIBS)
Phonetisaurus_la_LDFLAGS = -avoid-version -module
endif
endif
endif