From 3ab787dba322ea2bac876a26a8d86802bc65af08 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 15 Feb 2013 23:40:32 +0400 Subject: [PATCH] make: Use relative pathes where possible We're building project from toplevel directory so no need for absolute paths. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c4afaf463..92eadb09a 100644 --- a/Makefile +++ b/Makefile @@ -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