From 2abf3428043fdbefdcc611baae5c86a58aacd3a3 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 9 Jul 2009 22:09:48 -0700 Subject: [PATCH] Benchmark now should build out-of-the-box. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a2d3ff2a29..f04fd4ac53 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