From b99436543acc5389e1202bffa1400769492fad12 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Tue, 4 Aug 2026 13:17:53 +0300 Subject: [PATCH] makefile: Make CC and ASM overridable via command line This makes it easier to run make without docker within distros without editing Makefile. For example Fedora: `ASM=sdcc-sdas8051 CC=sdcc-sdcc make` --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3b8027b..5d018d1 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,9 @@ DEFAULT_CONFIG_LOCATION = 454656 CONFIG_LOCATION = 458752 HTML_LOCATION = 262144 -CC = sdcc +CC ?= sdcc CC_FLAGS = -mmcs51 -I. -Ihttpd -Iuip -ASM = sdas8051 +ASM ?= sdas8051 AFLAGS= -plosgff SUBDIRS := tools