diff options
author | Dsaster <78389441+dsastr@users.noreply.github.com> | 2021-02-06 01:16:47 +0100 |
---|---|---|
committer | Dsaster <78389441+dsastr@users.noreply.github.com> | 2021-02-06 01:16:47 +0100 |
commit | fc81c4a0af763477fa485e2648cc47ffd5ed703d (patch) | |
tree | 6befd22f4d5f245925fa514e08f0332f7254fbc1 /arm9 | |
parent | 572eddf4890ecbcd1b0e06c02046e29ddd58526f (diff) |
add macOS support
Diffstat (limited to 'arm9')
-rw-r--r-- | arm9/Makefile | 7 |
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) |