diff --git a/Makefile b/Makefile index 63b9b985..5e5c12f1 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,6 @@ CFLAGS := -O -g \ BUILD_SESSION := .session.mk include mk/common.mk -include mk/arm.mk -include mk/riscv.mk -include $(BUILD_SESSION) STAGE0 := shecc @@ -43,6 +41,7 @@ all: config bootstrap ifeq (,$(filter $(ARCH),$(ARCHS))) $(error Support ARM and RISC-V only. Select the target with "ARCH=arm" or "ARCH=riscv") endif +include mk/$(ARCH).mk ifneq ("$(wildcard $(PWD)/config)","") TARGET_EXEC := $($(shell head -1 config | sed 's/.*: \([^ ]*\).*/\1/')_EXEC)