summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi@gmail.com>2020-09-22 15:22:57 -0400
committerRangi <remy.oukaour+rangi@gmail.com>2020-09-22 15:22:57 -0400
commite5c256c092df34ab95bdd2dd9fe4ddef288182b4 (patch)
tree3c82977c7f300bcd891708968e19e6990248c27c /Makefile
parenta013d9d615a53a96a6a8862b27df176dbcb35ab6 (diff)
md5 -> sha1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1471080..24d3d31 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,12 @@ OBJS += $(BUILD)/shim.o
### Build tools
-MD5 := md5sum -c
+ifeq (,$(shell which sha1sum))
+SHA1 := shasum
+else
+SHA1 := sha1sum
+endif
+
PYTHON := python3
RGBDS ?=
@@ -41,7 +46,7 @@ all: $(ROM) $(CORRECTEDROM) compare
.PHONY: compare
compare: $(ROM) $(CORRECTEDROM)
- $(MD5) roms.md5
+ @$(SHA1) -c roms.sha1
.PHONY: tools
tools tools/pkmncompress tools/gfx tools/scan_includes: