summaryrefslogtreecommitdiff
path: root/fast/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'fast/Makefile')
-rw-r--r--fast/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/fast/Makefile b/fast/Makefile
index 6d05fea..40ce0eb 100644
--- a/fast/Makefile
+++ b/fast/Makefile
@@ -2,17 +2,18 @@ COMPILER=clang
CFLAGS=-std=c++11 -O3
-all: hypergraph.o main.cc
+all: grammar.o hypergraph.o main.cc
$(COMPILER) $(CFLAGS) -std=c++11 -lstdc++ -lm -lmsgpack grammar.o hypergraph.o main.cc -o fast_weaver
-test: test_grammar test_sparse_vector
-hypergraph.o: hypergraph.cc hypergraph.hh grammar.o semiring.hh
+hypergraph.o: hypergraph.cc hypergraph.hh grammar.o semiring.hh sparse_vector.hh weaver.hh
$(COMPILER) $(CFLAGS) -g -c hypergraph.cc
-grammar.o: grammar.cc grammar.hh
+grammar.o: grammar.cc grammar.hh sparse_vector.hh util.hh
$(COMPILER) $(CFLAGS) -g -c grammar.cc
+test: test_grammar test_sparse_vector
+
test_grammar: test_grammar.cc grammar.o
$(COMPILER) $(CFLAGS) -lstdc++ -lm grammar.o test_grammar.cc -o test_grammar