diff --git a/Makefile b/Makefile index d9de790..e1bdad4 100644 --- a/Makefile +++ b/Makefile @@ -22,12 +22,16 @@ ifneq ($(OS),Windows_NT) SOURCE += $(COMMON_SRC) $(SRC_DIR)ppc.c $(SRC_DIR)uarch.c $(SRC_DIR)udev.c HEADERS += $(COMMON_HDR) $(SRC_DIR)ppc.h $(SRC_DIR)uarch.h $(SRC_DIR)udev.c CFLAGS += -DARCH_PPC -std=gnu99 - else - # Assume ARM + else ifeq ($(arch), $(filter $(arch), arm aarch64_be aarch64 armv8b armv8l armv7l armv6l)) SRC_DIR=src/arm/ SOURCE += $(COMMON_SRC) $(SRC_DIR)midr.c $(SRC_DIR)uarch.c $(SRC_DIR)soc.c $(SRC_DIR)udev.c HEADERS += $(COMMON_HDR) $(SRC_DIR)midr.h $(SRC_DIR)uarch.h $(SRC_DIR)soc.h $(SRC_DIR)udev.c $(SRC_DIR)socs.h CFLAGS += -DARCH_ARM -Wno-unused-parameter -std=c99 + else + # Error lines should not be tabulated because Makefile complains about it +$(warning Unsupported arch detected: $(arch). See https://github.com/Dr-Noob/cpufetch#1-support) +$(warning If your architecture is supported but the compilation fails, please open an issue in https://github.com/Dr-Noob/cpufetch/issues) +$(error Aborting compilation) endif OUTPUT=cpufetch