mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
make: Use relative pathes where possible
We're building project from toplevel directory so no need for absolute paths. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
ecf73756ec
commit
3ab787dba3
4
Makefile
4
Makefile
@ -55,11 +55,11 @@ ifeq ($(ARCH),arm)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
SRC_DIR ?= $(CURDIR)
|
SRC_DIR ?= $(CURDIR)
|
||||||
ARCH_DIR := $(SRC_DIR)/arch/$(ARCH)
|
ARCH_DIR := arch/$(ARCH)
|
||||||
|
|
||||||
$(if $(wildcard $(ARCH_DIR)),,$(error "The architecture $(ARCH) isn't supported"))
|
$(if $(wildcard $(ARCH_DIR)),,$(error "The architecture $(ARCH) isn't supported"))
|
||||||
|
|
||||||
CFLAGS += -I$(SRC_DIR)/include -I$(SRC_DIR)/pie -I$(ARCH_DIR) -I$(SRC_DIR)
|
CFLAGS += -Iinclude -Ipie -I. -I$(ARCH_DIR)
|
||||||
CFLAGS += -iquote $(ARCH_DIR)/include -fno-strict-aliasing
|
CFLAGS += -iquote $(ARCH_DIR)/include -fno-strict-aliasing
|
||||||
|
|
||||||
LIBS := -lrt -lpthread -lprotobuf-c
|
LIBS := -lrt -lpthread -lprotobuf-c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user