mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-24 02:29:23 +00:00
We only need a rpc.pb-c.h header. Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
26 lines
416 B
Makefile
26 lines
416 B
Makefile
TESTS += test_sub
|
|
TESTS += test_self
|
|
TESTS += test_notify
|
|
TESTS += test_iters
|
|
TESTS += test_errno
|
|
|
|
all: $(TESTS)
|
|
|
|
run: all
|
|
./run.sh
|
|
|
|
define genb
|
|
$(1): $(1).o lib.o
|
|
gcc $$^ -L ../../lib -L ../../protobuf -lcriu -o $$@
|
|
endef
|
|
|
|
$(foreach t, $(TESTS), $(eval $(call genb, $(t))))
|
|
|
|
%.o: %.c
|
|
gcc -c $^ -I../../lib/ -I../../protobuf -o $@ -Werror
|
|
|
|
clean:
|
|
rm -rf $(TESTS) $(TESTS:%=%.o) lib.o
|
|
|
|
.PHONY: clean
|
|
.PHONY: all
|