summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-06-24 18:32:54 -0400
committeryenatch <yenatch@gmail.com>2017-06-24 18:32:54 -0400
commitf12e42ab6d41740a6e9302f1f12250a0f72c3f9d (patch)
tree6f1faef04835ead6f86478c9aa784812a61e2e3b /Makefile
parent866ca63c514a8f3a6dbadbaba3da96209abb51cf (diff)
Use SHA1 to compare roms
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 61f1b6c8a..b51652a00 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,8 @@
-MD5 := md5sum -c
+ifeq (,$(shell which sha1sum))
+SHA1 := shasum
+else
+SHA1 := sha1sum
+endif
.SUFFIXES:
.PHONY: all clean tools compare crystal crystal11
@@ -36,7 +40,7 @@ clean:
rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
compare: $(roms)
- @$(MD5) roms.md5
+ @$(SHA1) -c roms.sha1
tools:
make -C tools/