summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 13 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 3e2a6e89..301e2035 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/
@@ -103,12 +106,12 @@ pokeblue_opt = -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON BLUE"
gfx/battle/attack_anim_1.2bpp: tools/gfx += --trim-whitespace
gfx/battle/attack_anim_2.2bpp: tools/gfx += --trim-whitespace
-gfx/intro_credits/blue_jigglypuff_1.2bpp: $(RGBGFX) += -h
-gfx/intro_credits/blue_jigglypuff_2.2bpp: $(RGBGFX) += -h
-gfx/intro_credits/blue_jigglypuff_3.2bpp: $(RGBGFX) += -h
-gfx/intro_credits/red_nidorino_1.2bpp: $(RGBGFX) += -h
-gfx/intro_credits/red_nidorino_2.2bpp: $(RGBGFX) += -h
-gfx/intro_credits/red_nidorino_3.2bpp: $(RGBGFX) += -h
+gfx/intro_credits/blue_jigglypuff_1.2bpp: rgbgfx += -h
+gfx/intro_credits/blue_jigglypuff_2.2bpp: rgbgfx += -h
+gfx/intro_credits/blue_jigglypuff_3.2bpp: rgbgfx += -h
+gfx/intro_credits/red_nidorino_1.2bpp: rgbgfx += -h
+gfx/intro_credits/red_nidorino_2.2bpp: rgbgfx += -h
+gfx/intro_credits/red_nidorino_3.2bpp: rgbgfx += -h
gfx/intro_credits/the_end.2bpp: tools/gfx += --interleave --png=$<
@@ -131,7 +134,7 @@ gfx/trade/game_boy.2bpp: tools/gfx += --remove-duplicates
tools/gfx $(tools/gfx) -o $@ $@)
%.1bpp: %.png
- $(RGBGFX) -d1 $(rgbgfx) -o $@ $<
+ $(RGBGFX) $(rgbgfx) -d1 -o $@ $<
$(if $(tools/gfx),\
tools/gfx $(tools/gfx) -d1 -o $@ $@)