mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 10:09:57 +00:00
* fix compilation from the test/rpc directory $ make make: *** No rule to make target `/rpc.proto', needed by `rpc.pb-c.c'. Stop. * use absolute path for pidfile $ bash run.sh ************************************************** Shutdown service server ************************************************** cat: pidfile: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] Cc: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
16 lines
329 B
Makefile
16 lines
329 B
Makefile
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: rpc.proto
|
|
protoc --proto_path=. --python_out=. rpc.proto
|
|
|
|
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
|