From 4b7b2693e829166ccec8707b59fb2bc26179551b Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 22 Jul 2014 00:34:01 +0200 Subject: simple sparse vector type --- fast/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'fast/Makefile') diff --git a/fast/Makefile b/fast/Makefile index 16bc48c..b2b697f 100644 --- a/fast/Makefile +++ b/fast/Makefile @@ -1,16 +1,22 @@ COMPILER=clang -CFLAGS=-O3 +CFLAGS=-std=c++11 -O3 all: hypergraph.o main.cc - $(COMPILER) $(CFLAGS) -std=c++11 -lstdc++ -lm -lmsgpack hypergraph.o main.cc -o fast_weaver + $(COMPILER) $(CFLAGS) -std=c++11 -lstdc++ -lm -lmsgpack grammar.o hypergraph.o main.cc -o fast_weaver hypergraph.o: hypergraph.cc hypergraph.hh grammar.o semiring.hh - $(COMPILER) $(CFLAGS) -g -std=c++11 -c hypergraph.cc + $(COMPILER) $(CFLAGS) -g -c hypergraph.cc grammar.o: grammar.cc grammar.hh - $(COMPILER) $(CFLAGS) -g -std=c++11 -c grammar.cc + $(COMPILER) $(CFLAGS) -g -c grammar.cc + +test_grammar: test_grammar.cc grammar.o + $(COMPILER) $(CFLAGS) -lstdc++ -lm grammar.o test_grammar.cc -o test_grammar + +test_sparse_vector: test_sparse_vector.cc sparse_vector.hh + $(COMPILER) $(CFLAGS) -lstdc++ -lm test_sparse_vector.cc -o test_sparse_vector clean: - rm -f fast_weaver hypergraph.o grammar.o + rm -f fast_weaver hypergraph.o grammar.o test_grammar test_sparse_vector -- cgit v1.2.3