diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-18 18:17:06 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-18 18:17:06 -0800 |
commit | 61e5d367ff180a4fcd48dd06b9918a9d37edc766 (patch) | |
tree | db9b726919615984bc2bc4750340b90f58777cb2 /Makefile | |
parent | ff23340fe2983b1f034b0e156807b328417d2310 (diff) |
Change the API for getting the bootstrapped defs.
The symtab that contains them is now hidden, and
you can look them up by name but there is no access
to the symtab itself, so there is no risk of
mutating it (by extending it, adding other defs
to it, etc).
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -179,22 +179,28 @@ tests/test.proto.pb: tests/test.proto @# TODO: replace with upbc protoc tests/test.proto -otests/test.proto.pb -TESTS= \ +SIMPLE_TESTS= \ tests/test_string \ - tests/test_table \ tests/test_def \ tests/test_stream \ + tests/tests +# tests/test_decoder \ + +SIMPLE_CXX_TESTS= \ + tests/test_table + +VARIADIC_TESTS= \ tests/t.test_vs_proto2.googlemessage1 \ tests/t.test_vs_proto2.googlemessage2 \ - tests/test.proto.pb \ - tests/tests -# tests/test_decoder \ +TESTS=$(SIMPLE_TESTS) $(SIMPLE_CXX_TESTS) $(VARIADIC_TESTS) + tests: $(TESTS) $(TESTS): $(LIBUPB) +tests/tests: tests/test.proto.pb -% : %.c +$(SIMPLE_TESTS): % : %.c $(E) CC $< $(Q) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< @@ -237,9 +243,6 @@ tests/test_table: tests/test_table.cc tests/tests: src/libupb.a -# Tools -tools: src/upbc -src/upbc: $(LIBUPB) # Benchmarks. ################################################################## |