Commit 80866756 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

test/rpc: compile test-c

Fixes: 94928cf8 ("test/rpc: include unistd.h")
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 61d00a14
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment