summaryrefslogtreecommitdiff
path: root/arm9
diff options
context:
space:
mode:
authorDsaster <78389441+dsastr@users.noreply.github.com>2021-02-06 01:16:47 +0100
committerDsaster <78389441+dsastr@users.noreply.github.com>2021-02-06 01:16:47 +0100
commitfc81c4a0af763477fa485e2648cc47ffd5ed703d (patch)
tree6befd22f4d5f245925fa514e08f0332f7254fbc1 /arm9
parent572eddf4890ecbcd1b0e06c02046e29ddd58526f (diff)
add macOS support
Diffstat (limited to 'arm9')
-rw-r--r--arm9/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/arm9/Makefile b/arm9/Makefile
index 05e78524..ea391eea 100644
--- a/arm9/Makefile
+++ b/arm9/Makefile
@@ -120,11 +120,16 @@ STATIC_LIBS := $(addprefix $(BUILD_DIR)/lib/,libsyscall.a)
####################### Other Tools #########################
# DS TOOLS
-ifndef BUSYBOX
+UNAME_S := $(shell uname -s)
+ifeq ($(UNAME_S),Darwin)
+SHA1SUM = shasum
+else
+ifdef 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)