summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 3810c95f..e4c67c59 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -11,6 +11,9 @@ all: breakpoints $(TESTS) run_unittests
clean:
rm -f $(TESTS) person.pb* alltypes.pb* *.o *.gcda *.gcno
+%.pb.o: %.pb.c %.pb.h
+ $(CC) $(CFLAGS) $(CFLAGS_CORE) -c -o $@ $<
+
%.o: %.c
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $<