summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--roms.md52
-rw-r--r--roms.sha12
3 files changed, 9 insertions, 4 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:
diff --git a/roms.md5 b/roms.md5
deleted file mode 100644
index 36316f4..0000000
--- a/roms.md5
+++ /dev/null
@@ -1,2 +0,0 @@
-2eadbed83b775c097ff79e5128d1184f *pokegold-spaceworld.gb
-8e509301f6db1f89fee85aead8ebf8d4 *pokegold-spaceworld-correctheader.gb
diff --git a/roms.sha1 b/roms.sha1
new file mode 100644
index 0000000..feaa902
--- /dev/null
+++ b/roms.sha1
@@ -0,0 +1,2 @@
+b1d7539a87dea81b2cff6146afaad64470d08d84 *pokegold-spaceworld.gb
+87fd8dbe5db39619529abcfc99e74cc5ecb8b94e *pokegold-spaceworld-correctheader.gb