diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-09 11:10:16 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-09 11:10:16 -0700 |
commit | 4d9c39b94d498e8a3ad2fb4966833092579ed038 (patch) | |
tree | 3cb44dae55cd4da6ff0f9b6e0644b0d0e9e3e803 /Makefile | |
parent | 9bc15a1e74623753bcce0404e9cbd67f56a5e0e1 (diff) |
Make benchmark run out-of-the-box.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -3,10 +3,11 @@ CC=gcc CXX=g++ CFLAGS=-std=c99 -CPPFLAGS=-O3 -Wall -Wextra -pedantic -g -DUPB_UNALIGNED_READS_OK -fomit-frame-pointer -Idescriptor -Isrc +CPPFLAGS=-O3 -Wall -Wextra -pedantic -g -DUPB_UNALIGNED_READS_OK -fomit-frame-pointer -Idescriptor -Isrc -Itests OBJ=src/upb_parse.o src/upb_table.o src/upb_msg.o src/upb_enum.o src/upb_context.o \ src/upb_string.o descriptor/descriptor.o -ALL=$(OBJ) src/libupb.a tests/test_table tests/tests tools/upbc +SRC=src/*.c src/*.h descriptor/*.c descriptor/*.h tests/*.c tests/*.h tools/*.c tools/*.h +ALL=$(OBJ) src/libupb.a tests/test_table tests/tests tools/upbc benchmark/benchmark all: $(ALL) clean: rm -f $(ALL) deps @@ -15,8 +16,10 @@ 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 -lm +benchmark/benchmark: src/libupb.a benchmark/google_messages.pb.h -lm +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 -include deps -deps: src/*.c src/*.h descriptor/*.c descriptor/*.h tests/*.c tests/*.h tools/*.c tools/*.h - gcc -MM *.c > deps +deps: $(SRC) + gcc -MM $(SRC) > deps |