From 4e6adcddff69fd53ce342ead502a0699cd5f75ba Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 5 Jul 2020 14:11:39 -0400 Subject: Use SHA-1, not MD5, for 'make compare' Fixes #183 --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3e2a6e89..b2ab9f35 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,11 @@ pokeblue_obj := $(rom_obj:.o=_blue.o) ### Build tools -MD5 := md5sum -c +ifeq (,$(shell which sha1sum)) +SHA1 := shasum +else +SHA1 := sha1sum +endif RGBDS ?= RGBASM ?= $(RGBDS)rgbasm @@ -47,9 +51,8 @@ tidy: rm -f $(roms) $(pokered_obj) $(pokeblue_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o $(MAKE) clean -C tools/ -# For contributors to make sure a change didn't affect the original contents of the ROMs. compare: $(roms) - @$(MD5) roms.md5 + @$(SHA1) -c roms.sha1 tools: $(MAKE) -C tools/ -- cgit v1.2.3