From e5c256c092df34ab95bdd2dd9fe4ddef288182b4 Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 22 Sep 2020 15:22:57 -0400 Subject: md5 -> sha1 --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3