2
0
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:
Cyrill Gorcunov 2013-02-15 23:40:32 +04:00 committed by Pavel Emelyanov
parent ecf73756ec
commit 3ab787dba3

View File

@ -55,11 +55,11 @@ ifeq ($(ARCH),arm)
endif
SRC_DIR ?= $(CURDIR)
ARCH_DIR := $(SRC_DIR)/arch/$(ARCH)
ARCH_DIR := arch/$(ARCH)
$(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
LIBS := -lrt -lpthread -lprotobuf-c