summaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
parent572eddf4890ecbcd1b0e06c02046e29ddd58526f (diff)
add macOS support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5189c062..4467d8ac 100644
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,11 @@ LDFLAGS = -map -nodead -w off -proc v5te -interworking -map -symtab -m _start
# DS TOOLS
TOOLS_DIR = tools
+ifeq ($(UNAME_S),Darwin)
+SHA1SUM = shasum
+else
SHA1SUM = sha1sum
+endif
CSV2BIN = $(TOOLS_DIR)/csv2bin/csv2bin$(EXE)
JSONPROC = $(TOOLS_DIR)/jsonproc/jsonproc$(EXE)
O2NARC = $(TOOLS_DIR)/o2narc/o2narc$(EXE)