From 2f787feebf91b1c7e617994cce42245a56091e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sun, 15 Feb 2026 11:12:26 +0100 Subject: [PATCH] Makefile: Select MACHINE via a variable --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index a6a2bf5..51a0b29 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,11 @@ SUBDIRSCLEAN=$(addsuffix clean,$(SUBDIRS)) BUILDDIR = output/ VERSION_HEADER := version.h +ifeq ($(MACHINE),) +else + CC_FLAGS += -DMACHINE_$(MACHINE) +endif + all: create_build_dir $(VERSION_HEADER) $(SUBDIRS) $(BUILDDIR)rtlplayground.bin create_build_dir: