From 98f8b49e4531062b1cc96fdbd6f40930b7606929 Mon Sep 17 00:00:00 2001 From: Alam Ed Arias Date: Tue, 17 Oct 2023 22:36:17 -0400 Subject: [PATCH] Makefile: support toolchain envs --- src/Makefile.cfg | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Makefile.cfg b/src/Makefile.cfg index 2532a6b2..9d5b879c 100644 --- a/src/Makefile.cfg +++ b/src/Makefile.cfg @@ -27,17 +27,17 @@ LATEST_GCC_VERSION=13.2 # gcc or g++ ifdef PREFIX - CC=$(PREFIX)-gcc - CXX=$(PREFIX)-g++ - OBJCOPY=$(PREFIX)-objcopy - OBJDUMP=$(PREFIX)-objdump - STRIP=$(PREFIX)-strip - WINDRES=$(PREFIX)-windres + CC?=$(PREFIX)-gcc + CXX?=$(PREFIX)-g++ + OBJCOPY?=$(PREFIX)-objcopy + OBJDUMP?=$(PREFIX)-objdump + STRIP?=$(PREFIX)-strip + WINDRES?=$(PREFIX)-windres else - OBJCOPY=objcopy - OBJDUMP=objdump - STRIP=strip - WINDRES=windres + OBJCOPY?=objcopy + OBJDUMP?=objdump + STRIP?=strip + WINDRES?=windres endif # because Apple screws with us on this