mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +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++
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue