summaryrefslogtreecommitdiff
path: root/arm9
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2021-02-10 10:54:44 +0000
committerGitHub <noreply@github.com>2021-02-10 10:54:44 +0000
commit41bce72d7d97a7843debfe0807d68423f54142f5 (patch)
treeef85d7e696db76e9eaba5600d89afb7b4ab454b4 /arm9
parent572eddf4890ecbcd1b0e06c02046e29ddd58526f (diff)
parent904d950a9ed1876554557cba5a2e627d46c139cb (diff)
Merge pull request #317 from dsastr/macos-mojave-support
Add support for building on macOS
Diffstat (limited to 'arm9')
-rw-r--r--arm9/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/arm9/Makefile b/arm9/Makefile
index 05e78524..8b84a135 100644
--- a/arm9/Makefile
+++ b/arm9/Makefile
@@ -120,11 +120,16 @@ STATIC_LIBS := $(addprefix $(BUILD_DIR)/lib/,libsyscall.a)
####################### Other Tools #########################
# DS TOOLS
+UNAME_S := $(shell uname -s)
+ifeq ($(UNAME_S),Darwin)
+SHA1SUM = shasum
+else
ifndef BUSYBOX
SHA1SUM = sha1sum --quiet
else
SHA1SUM = sha1sum
endif
+endif
JSONPROC = $(TOOLS_DIR)/jsonproc/jsonproc$(EXE)
GFX = $(TOOLS_DIR)/nitrogfx/nitrogfx$(EXE)
SCANINC = $(TOOLS_DIR)/scaninc/scaninc$(EXE)