mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
#---------------------------------------------------------------------------------
|
|
# 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 := $(DEVKITA64)/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
|