summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2012-11-18 13:44:44 -0500
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2012-11-18 13:44:44 -0500
commitfbe3415e35f7c16177314422a4f4e146bb4d808f (patch)
tree329157675ee02becab5e648173b0e57b5dfa02e5
parent1b8181bf0d6e9137e6b9ccdbe414aec37377a1a9 (diff)
forgotten makefile
-rw-r--r--.gitignore1
-rw-r--r--training/utils/Makefile.am33
2 files changed, 33 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index c6023822..56372ad4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -197,7 +197,6 @@ training/mira/kbest_mira
training/pro/mr_pro_map
training/pro/mr_pro_reduce
training/rampion/rampion_cccp
-training/utils/Makefile.am
training/utils/lbfgs_test
training/utils/optimize_test
training/utils/sentclient
diff --git a/training/utils/Makefile.am b/training/utils/Makefile.am
new file mode 100644
index 00000000..189d9a76
--- /dev/null
+++ b/training/utils/Makefile.am
@@ -0,0 +1,33 @@
+noinst_LIBRARIES = libtraining_utils.a
+
+bin_PROGRAMS = \
+ sentserver \
+ sentclient
+
+noinst_PROGRAMS = \
+ lbfgs_test \
+ optimize_test
+
+sentserver_SOURCES = sentserver.c
+sentserver_LDFLAGS = -pthread
+
+sentclient_SOURCES = sentclient.c
+sentclient_LDFLAGS = -pthread
+
+TESTS = lbfgs_test optimize_test
+
+libtraining_utils_a_SOURCES = \
+ candidate_set.cc \
+ entropy.cc \
+ optimize.cc \
+ online_optimizer.cc \
+ risk.cc
+
+optimize_test_SOURCES = optimize_test.cc
+optimize_test_LDADD = libtraining_utils.a $(top_srcdir)/utils/libutils.a -lz
+
+lbfgs_test_SOURCES = lbfgs_test.cc
+lbfgs_test_LDADD = $(top_srcdir)/utils/libutils.a -lz
+
+AM_CPPFLAGS = -W -Wall -Wno-sign-compare -I$(top_srcdir)/decoder -I$(top_srcdir)/utils -I$(top_srcdir)/mteval -I$(top_srcdir)/klm
+