Benchmark now should build out-of-the-box.

pull/13171/head
Joshua Haberman 16 years ago
parent e48f855b06
commit 2abf342804
  1. 3
      Makefile

@ -16,7 +16,8 @@ src/libupb.a: $(OBJ)
ar rcs src/libupb.a $(OBJ) ar rcs src/libupb.a $(OBJ)
tests/test_table: src/libupb.a tests/test_table: src/libupb.a
tools/upbc: 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 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 protoc benchmark/google_messages.proto --cpp_out=. -obenchmark/google_messages.proto.pb

Loading…
Cancel
Save