[CRIU] [PATCH 1/4] test: rpc: Makefile

Ruslan Kuprieiev kupruser at gmail.com
Fri Sep 20 18:20:10 EDT 2013


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
-------------- next part --------------
diff --git a/test/rpc/Makefile b/test/rpc/Makefile
new file mode 100644
index 0000000..61d1b3c
--- /dev/null
+++ b/test/rpc/Makefile
@@ -0,0 +1,16 @@
+all: test-c rpc_pb2.py
+
+test-c: rpc.pb-c.o test.o
+	gcc $^ -o $@ -lprotobuf-c
+
+test.o: ../test.c
+	gcc -c $< -I ./
+
+rpc_pb2.py: ${PROTODIR}/rpc.proto
+	protoc --proto_path=${PROTODIR} --python_out=. ${PROTODIR}/rpc.proto
+
+rpc.pb-c.c: ${PROTODIR}/rpc.proto
+	protoc-c --proto_path=${PROTODIR} --c_out=. ${PROTODIR}/rpc.proto
+
+clean:
+	rm -rf build




More information about the CRIU mailing list