mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 03:41:02 +00:00
Makefile: support toolchain envs
This commit is contained in:
parent
bf6be522ea
commit
98f8b49e45
1 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue