summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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: