summaryrefslogtreecommitdiff
path: root/fast/Makefile
blob: 55c4df7e40191db7511320f7c419e0fa458a37b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
COMPILER=clang

all: hypergraph.o main.cc
	$(COMPILER) -std=c++11 -lstdc++ -lm -lmsgpack hypergraph.o main.cc -o fast_weaver

hypergraph.o: hypergraph.cc hypergraph.hh grammar.o semiring.hh
	$(COMPILER) -g -std=c++11 -lmsgpack -c hypergraph.cc

grammar.o: grammar.cc grammar.hh
	$(COMPILER) -g -std=c++11 -c grammar.cc

make_paks: make_paks.cc
	$(COMPILER) -std=c++11 -lstdc++ -lm -lmsgpack make_paks.cc -o make_paks

read_pak: read_pak.cc
	$(COMPILER) -std=c++11 -lmsgpack read_pak.cc -o read_pak

clean:
	rm -f fast_weaver hypergraph.o grammar.o make_paks read_pak