mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
test/libcriu: fix relative paths in Makefile
The previous relative paths assume the CRIU project is in a directory named "criu", which is not always the case and results in build errors. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
fc1867c44d
commit
bca291477d
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
include ../../../../criu/Makefile.versions
|
||||
include ../../../Makefile.versions
|
||||
|
||||
TESTS += test_sub
|
||||
TESTS += test_self
|
||||
|
|
@ -20,13 +20,13 @@ run: all
|
|||
|
||||
define genb
|
||||
$(1): $(1).o lib.o
|
||||
gcc $$^ -L ../../../../criu/lib/c/ -L ../../../../criu/images/ -lcriu -o $$@
|
||||
gcc $$^ -L ../../../lib/c/ -L ../../../images/ -lcriu -o $$@
|
||||
endef
|
||||
|
||||
$(foreach t, $(TESTS), $(eval $(call genb, $(t))))
|
||||
|
||||
%.o: %.c
|
||||
gcc -c $^ -iquote ../../../../criu/criu/include -I../../../../criu/lib/c/ -I../../../../criu/images/ -o $@ -Werror
|
||||
gcc -c $^ -iquote ../../../criu/include -I../../../lib/c/ -I../../../images/ -o $@ -Werror
|
||||
|
||||
clean: libcriu_clean
|
||||
rm -rf $(TESTS) $(TESTS:%=%.o) lib.o
|
||||
|
|
@ -37,5 +37,5 @@ libcriu_clean:
|
|||
.PHONY: libcriu_clean
|
||||
|
||||
libcriu:
|
||||
ln -s ../../../../criu/lib/c/libcriu.so libcriu.so.${CRIU_SO_VERSION_MAJOR}
|
||||
ln -s ../../../lib/c/libcriu.so libcriu.so.${CRIU_SO_VERSION_MAJOR}
|
||||
.PHONY: libcriu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue