Makefile: support toolchain envs

This commit is contained in:
Alam Ed Arias 2023-10-17 22:36:17 -04:00
parent bf6be522ea
commit 98f8b49e45

View file

@ -27,17 +27,17 @@ LATEST_GCC_VERSION=13.2
# gcc or g++ # gcc or g++
ifdef PREFIX ifdef PREFIX
CC=$(PREFIX)-gcc CC?=$(PREFIX)-gcc
CXX=$(PREFIX)-g++ CXX?=$(PREFIX)-g++
OBJCOPY=$(PREFIX)-objcopy OBJCOPY?=$(PREFIX)-objcopy
OBJDUMP=$(PREFIX)-objdump OBJDUMP?=$(PREFIX)-objdump
STRIP=$(PREFIX)-strip STRIP?=$(PREFIX)-strip
WINDRES=$(PREFIX)-windres WINDRES?=$(PREFIX)-windres
else else
OBJCOPY=objcopy OBJCOPY?=objcopy
OBJDUMP=objdump OBJDUMP?=objdump
STRIP=strip STRIP?=strip
WINDRES=windres WINDRES?=windres
endif endif
# because Apple screws with us on this # because Apple screws with us on this