Description: link dynamically against libcapnp and friends
Author: Sascha Steinbiss <satta@debian.org>
--- a/Makefile.in
+++ b/Makefile.in
@@ -34,8 +34,8 @@ OBJECTS=$(SOURCES:.cpp=.o) src/mash/capn
 
 all : mash libmash.a
 
-mash : libmash.a
-	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o mash libmash.a @capnp@/lib/libcapnp.a @capnp@/lib/libkj.a @mathlib@ -lstdc++ -lz -lm -lpthread $(LDFLAGS)
+mash : $(OBJECTS)
+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o mash $(OBJECTS) -lkj -lcapnp @mathlib@ -lstdc++ -lz -lm -lpthread $(LDFLAGS)
 
 libmash.a : $(OBJECTS)
 	ar -cr libmash.a $(OBJECTS)
