summaryrefslogtreecommitdiff
path: root/decoder/Makefile.am
blob: f791b3ccfa5d77216826fa90520a610883cf417b (plain)
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
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
bin_PROGRAMS = cdec

noinst_PROGRAMS = \
  trule_test \
  hg_test \
  parser_test \
  t2s_test \
  grammar_test

TESTS = trule_test parser_test grammar_test hg_test
t2s_test_SOURCES = t2s_test.cc
t2s_test_LDADD = $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) libcdec.a ../mteval/libmteval.a ../utils/libutils.a
parser_test_SOURCES = parser_test.cc
parser_test_LDADD = $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) libcdec.a ../mteval/libmteval.a ../utils/libutils.a
grammar_test_SOURCES = grammar_test.cc
grammar_test_LDADD = $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) libcdec.a ../mteval/libmteval.a ../utils/libutils.a
hg_test_SOURCES = hg_test.cc
hg_test_LDADD = $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) libcdec.a ../mteval/libmteval.a ../utils/libutils.a
trule_test_SOURCES = trule_test.cc
trule_test_LDADD = $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) libcdec.a ../mteval/libmteval.a ../utils/libutils.a

cdec_SOURCES = cdec.cc
cdec_LDFLAGS= -rdynamic $(STATIC_FLAGS)
cdec_LDADD = libcdec.a ../mteval/libmteval.a ../utils/libutils.a ../klm/search/libksearch.a ../klm/lm/libklm.a ../klm/util/libklm_util.a ../klm/util/double-conversion/libklm_util_double.a

AM_CPPFLAGS = -DTEST_DATA=\"$(top_srcdir)/decoder/test_data\" -DBOOST_TEST_DYN_LINK -W -Wno-sign-compare -I$(top_srcdir) -I$(top_srcdir)/mteval -I$(top_srcdir)/utils -I$(top_srcdir)/klm

rule_lexer.cc: rule_lexer.ll
	$(LEX) -s -CF -8 -o$@ $<

noinst_LIBRARIES = libcdec.a

EXTRA_DIST = test_data rule_lexer.ll

libcdec_a_SOURCES = \
  JSON_parser.h \
  aligner.h \
  apply_models.h \
  bottom_up_parser.h \
  csplit.h \
  decoder.h \
  earley_composer.h \
  factored_lexicon_helper.h \
  ff.h \
  ff_basic.h \
  ff_bleu.h \
  ff_charset.h \
  ff_const_reorder_common.h \
  ff_const_reorder.h \
  ff_context.h \
  ff_csplit.h \
  ff_external.h \
  ff_factory.h \
  ff_klm.h \
	ff_lexical.h \
  ff_lm.h \
  ff_ngrams.h \
  ff_parse_match.h \
  ff_register.h \
  ff_rules.h \
  ff_ruleshape.h \
  ff_sample_fsa.h \
  ff_soft_syntax.h \
  ff_soft_syntax_mindist.h \
  ff_source_path.h \
  ff_source_syntax.h \
  ff_source_syntax2.h \
  ff_spans.h \
  ff_tagger.h \
  ff_wordalign.h \
  ff_wordset.h \
  ffset.h \
  forest_writer.h \
  freqdict.h \
  grammar.h \
  hg.h \
  hg_intersect.h \
  hg_io.h \
  hg_remove_eps.h \
  hg_sampler.h \
  hg_test.h \
  hg_union.h \
  incremental.h \
  inside_outside.h \
  json_parse.h \
  kbest.h \
  lattice.h \
  lexalign.h \
  lextrans.h \
  nt_span.h \
  oracle_bleu.h \
  phrasebased_translator.h \
  phrasetable_fst.h \
  program_options.h \
  rule_lexer.h \
  sentence_metadata.h \
  sentences.h \
  tagger.h \
  translator.h \
  trule.h \
  viterbi.h \
  aligner.cc \
  apply_models.cc \
  bottom_up_parser.cc \
  cdec.cc \
  cdec_ff.cc \
  csplit.cc \
  decoder.cc \
  earley_composer.cc \
  factored_lexicon_helper.cc \
  ff.cc \
  ff_basic.cc \
  ff_bleu.cc \
  ff_charset.cc \
  ff_context.cc \
  ff_const_reorder.cc \
  ff_csplit.cc \
  ff_external.cc \
  ff_factory.cc \
  ff_klm.cc \
  ff_lm.cc \
  ff_ngrams.cc \
  ff_parse_match.cc \
  ff_rules.cc \
  ff_ruleshape.cc \
  ff_soft_syntax.cc \
  ff_soft_syntax_mindist.cc \
  ff_source_path.cc \
  ff_source_syntax.cc \
  ff_source_syntax2.cc \
  ff_spans.cc \
  ff_tagger.cc \
  ff_wordalign.cc \
  ff_wordset.cc \
  ffset.cc \
  forest_writer.cc \
  fst_translator.cc \
  tree2string_translator.cc \
  grammar.cc \
  hg.cc \
  hg_intersect.cc \
  hg_io.cc \
  hg_remove_eps.cc \
  hg_sampler.cc \
  hg_union.cc \
  incremental.cc \
  json_parse.cc \
  lattice.cc \
  lexalign.cc \
  lextrans.cc \
  node_state_hash.h \
  tree_fragment.cc \
  tree_fragment.h \
  maxtrans_blunsom.cc \
  phrasebased_translator.cc \
  phrasetable_fst.cc \
  rescore_translator.cc \
  rule_lexer.cc \
  scfg_translator.cc \
  tagger.cc \
  translator.cc \
  trule.cc \
  viterbi.cc \
  JSON_parser.c