CXXFLAGS=-std=gnu++11 -O2 -g -Wall
LDLIBS=-lmtbl -lfarmhash -lprotobuf
PROTOC=protoc
+CC=g++
all: binloader binlookup binmerger
binloader.o: binloader.cpp count.pb.h
binmerger.o: binmerger.cpp merge_count.h count.pb.h
binlookup.o: binlookup.cpp merge_count.h count.pb.h
+merge_count.o: merge_count.cpp merge_count.h count.pb.h
%.pb.cc %.pb.h : %.proto
$(PROTOC) --cpp_out=. $<