[CRIU] [PATCH urgent] make: Fix build bug introduced in 726a1180
Cyrill Gorcunov
gorcunov at openvz.org
Sun Sep 2 11:48:41 EDT 2012
In 726a1180 we made protobuf library to depend
on *.ch which is good thing but a bit incomplete.
We need a rule to generate headers if they are
missed.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
protobuf/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/protobuf/Makefile b/protobuf/Makefile
index f2a57ca..5be3539 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -45,11 +45,11 @@ PROTO_OBJS := $(patsubst %.c,%.o,$(PROTO_SRCS))
.DEFAULT_GOAL := protobuf
-%.pb-c.c: %.proto
+%.pb-c.c %.pb-c.h: %.proto
$(E) " PROTOBUF "$@
$(Q) protoc-c --c_out=./ $<
-%.o: %.c
+%.o: %.c %.h
$(E) " CC "$@
$(Q) $(CC) -c $(CFLAGS) $< -o $@
--
1.7.7.6
More information about the CRIU
mailing list