#--------------------------------------------------------------------------------- # make sure we have bash on OSX #--------------------------------------------------------------------------------- UNAME_S := $(shell uname -s) UNAME_R := $(shell uname -r) ifneq (,$(findstring Darwin,$(UNAME_S))) export SHELL=/bin/bash endif #--------------------------------------------------------------------------------- # path to tools #--------------------------------------------------------------------------------- export PATH := $(DEVKITARM)/bin:$(PATH) #--------------------------------------------------------------------------------- # the prefix on the compiler executables #--------------------------------------------------------------------------------- PREFIX := aarch64-none-elf- export CC := $(PREFIX)gcc export CXX := $(PREFIX)g++ export AS := $(PREFIX)as export AR := $(PREFIX)gcc-ar export OBJCOPY := $(PREFIX)objcopy export STRIP := $(PREFIX)strip export NM := $(PREFIX)gcc-nm export RANLIB := $(PREFIX)gcc-ranlib ISVC=$(or $(VCBUILDHELPER_COMMAND),$(MSBUILDEXTENSIONSPATH32),$(MSBUILDEXTENSIONSPATH)) ifneq (,$(ISVC)) ERROR_FILTER := 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/g' endif