From 714cbe701b1e2cb186449e4c7ba4a3f3360b09d7 Mon Sep 17 00:00:00 2001 From: Alexander Kartashov Date: Mon, 14 Jan 2013 11:25:43 +0400 Subject: [PATCH] cr: don't compile the suite for an unsupported architecture Signed-off-by: Alexander Kartashov Signed-off-by: Pavel Emelyanov --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 1e4c85134..e3137c6b0 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,8 @@ endif SRC_DIR ?= $(shell pwd) ARCH_DIR := $(SRC_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) -iquote $(ARCH_DIR)/include -fno-strict-aliasing LIBS := -lrt -lpthread -lprotobuf-c