summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-09 22:09:48 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-09 22:09:48 -0700
commit2abf3428043fdbefdcc611baae5c86a58aacd3a3 (patch)
tree9c655867dad3382ccbdef55f05b850372f87d8b8 /Makefile
parente48f855b06babfa43b1a4f2a53a1f90c9df20067 (diff)
Benchmark now should build out-of-the-box.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a2d3ff2..f04fd4a 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,8 @@ src/libupb.a: $(OBJ)
ar rcs src/libupb.a $(OBJ)
tests/test_table: src/libupb.a
tools/upbc: src/libupb.a
-benchmark/benchmark: src/libupb.a benchmark/google_messages.pb.h benchmark/google_messages.pb.o -lm
+benchmark/benchmark: src/libupb.a benchmark/google_messages.pb.h benchmark/google_messages.pb.o
+ $(CXX) $(CPPFLAGS) -o benchmark/benchmark benchmark/google_messages.pb.o benchmark/benchmark.cc src/libupb.a -lm -lprotobuf -lpthread
benchmark/google_messages.pb.h benchmark/google_messages.pb: benchmark/google_messages.proto
protoc benchmark/google_messages.proto --cpp_out=. -obenchmark/google_messages.proto.pb
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback