summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgarakmon <thomastaps194@comcast.net>2018-07-18 15:06:18 -0400
committergarakmon <thomastaps194@comcast.net>2018-07-18 15:06:18 -0400
commit1ab872c68e951837b6925dbbdf25c4e8d0b63c82 (patch)
tree5636fcb98317482965dcd8f0496775049356f520
parent5e46a0fcc57d421879c1f65b40b4692bbe65a813 (diff)
Allow make compare to work on all platforms
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 25dd876d6..58a93bb55 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,13 @@ LDFLAGS = -Map ../../$(MAP)
LIB := -L ../../tools/agbcc/lib -lgcc -lc
-SHA1 := sha1sum -c
+ifeq ($(OS),Windows_NT)
+ SHA1 := sha1sum -c
+else ifeq ($(shell uname -s),Darwin)
+ SHA1 := shasum -c
+else
+ SHA1 := sha1sum -c
+endif
GFX := tools/gbagfx/gbagfx
AIF := tools/aif2pcm/aif2pcm