summaryrefslogtreecommitdiff
path: root/fast/Makefile
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-07-20 15:08:12 +0200
committerPatrick Simianer <p@simianer.de>2014-07-20 15:08:12 +0200
commit08e9a6f71c80fc7327d1758312b40bd5ba763dc9 (patch)
tree93a027bbb3e34fd60cc8e5d030a443a7f665389f /fast/Makefile
parentf219bab21c07d02e7e54d557e23387bd93c9ce5f (diff)
a lot
Diffstat (limited to 'fast/Makefile')
-rw-r--r--fast/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/fast/Makefile b/fast/Makefile
index 1d88446..55c4df7 100644
--- a/fast/Makefile
+++ b/fast/Makefile
@@ -1,19 +1,20 @@
+COMPILER=clang
+
all: hypergraph.o main.cc
- clang -std=c++11 -lstdc++ -lm -lmsgpack hypergraph.o main.cc -o fast_weaver
+ $(COMPILER) -std=c++11 -lstdc++ -lm -lmsgpack hypergraph.o main.cc -o fast_weaver
hypergraph.o: hypergraph.cc hypergraph.hh grammar.o semiring.hh
- clang -std=c++11 -lmsgpack -c hypergraph.cc
+ $(COMPILER) -g -std=c++11 -lmsgpack -c hypergraph.cc
grammar.o: grammar.cc grammar.hh
- clang -std=c++11 -c grammar.cc
+ $(COMPILER) -g -std=c++11 -c grammar.cc
make_paks: make_paks.cc
- g++ -std=c++11 -lmsgpack make_paks.cc -o make_paks
+ $(COMPILER) -std=c++11 -lstdc++ -lm -lmsgpack make_paks.cc -o make_paks
read_pak: read_pak.cc
- g++ -std=c++11 -lmsgpack read_pak.cc -o read_pak
-
+ $(COMPILER) -std=c++11 -lmsgpack read_pak.cc -o read_pak
clean:
- rm -f fast_weaver hypergraph.o grammar.o
+ rm -f fast_weaver hypergraph.o grammar.o make_paks read_pak