summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-14 13:20:21 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-14 13:20:21 -0800
commite252432a4176b6524e8c064673459e947ba11cb7 (patch)
tree3dcf06bae83f1bdb25541d87342d371ee7766147 /Makefile
parent33a68acb14759cb6fcf796b41ad001c93de4b8e4 (diff)
Refactoring: split defs into their own file, move private parsing funcs out of .h file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9eefe3e..bbc2ce2 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,7 @@ clean:
# The core library (src/libupb.a)
SRC=src/upb.c src/upb_parse.c src/upb_table.c src/upb_msg.c src/upb_mm.c \
- src/upb_enum.c src/upb_context.c src/upb_string.c src/upb_text.c \
+ src/upb_def.c src/upb_context.c src/upb_string.c src/upb_text.c \
descriptor/descriptor.c
#src/upb_serialize.c descriptor/descriptor.c
STATICOBJ=$(patsubst %.c,%.o,$(SRC))
@@ -78,14 +78,16 @@ tests: tests/tests \
tests/t.test_vs_proto2.googlemessage1 \
tests/t.test_vs_proto2.googlemessage2
+#VALGRIND=valgrind --leak-check=full --error-exitcode=1
+VALGRIND=
test: tests
@echo Running all tests under valgrind.
- valgrind --leak-check=full --error-exitcode=1 ./tests/tests
+ $(VALGRIND) ./tests/tests
# Needs to be rewritten to separate the benchmark.
# valgrind --error-exitcode=1 ./tests/test_table
@for test in tests/t.* ; do \
- echo valgrind --leak-check=full --error-exitcode=1 ./$$test; \
- valgrind --leak-check=full --error-exitcode=1 ./$$test; \
+ echo $(VALGRIND) ./$$test; \
+ $(VALGRIND) ./$$test; \
done;
tests/t.test_vs_proto2.googlemessage1 \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback