[CRIU] [PATCH] test/rpc: compile test-c
Andrew Vagin
avagin at openvz.org
Mon Aug 10 08:26:58 PDT 2015
Fixes: 94928cf85d81 ("test/rpc: include unistd.h")
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
test/rpc/Makefile | 9 +++++----
test/rpc/{test.c => test-c.c} | 0
2 files changed, 5 insertions(+), 4 deletions(-)
rename test/rpc/{test.c => test-c.c} (100%)
diff --git a/test/rpc/Makefile b/test/rpc/Makefile
index a3a539f..a23d721 100644
--- a/test/rpc/Makefile
+++ b/test/rpc/Makefile
@@ -1,7 +1,8 @@
all: test-c rpc_pb2.py criu
.PHONY: all
-CFLAGS += -g -Werror -Wall
+CFLAGS += -g -Werror -Wall -I.
+LDFLAGS += -lprotobuf-c
run: all
mkdir -p build
@@ -12,9 +13,9 @@ criu:
cp ../../criu $@
chmod u+s $@
-test-c: rpc.pb-c.o test.o
+test-c: rpc.pb-c.o test-c.o
-test.o: test.c
+test-c.o: test-c.c rpc.pb-c.c
rpc_pb2.py: rpc.proto
protoc --proto_path=. --python_out=. rpc.proto
@@ -23,5 +24,5 @@ rpc.pb-c.c: rpc.proto
protoc-c --proto_path=. --c_out=. rpc.proto
clean:
- rm -rf build rpc.pb-c.o test.o test-c rpc.pb-c.c rpc.pb-c.h rpc_pb2.py rpc_pb2.pyc criu
+ rm -rf build rpc.pb-c.o test-c.o test-c rpc.pb-c.c rpc.pb-c.h rpc_pb2.py rpc_pb2.pyc criu
.PHONY: clean
diff --git a/test/rpc/test.c b/test/rpc/test-c.c
similarity index 100%
rename from test/rpc/test.c
rename to test/rpc/test-c.c
--
2.4.3
More information about the CRIU
mailing list