summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorentrpntr <entrpntr@gmail.com>2020-04-27 03:33:13 -0400
committerentrpntr <entrpntr@gmail.com>2020-04-27 03:35:35 -0400
commit70d3a3fdbc508eeb4557ddc43d78ba12ed41963e (patch)
tree202f65e4131709331ae62cbe5eace4d6f8b6aa58 /Makefile
parent75cf425d30db6a036743cf85c483c1b537063605 (diff)
Sync with the recent updates to pokecrystal.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 88ed3f9b..a413ae1a 100644
--- a/Makefile
+++ b/Makefile
@@ -51,11 +51,11 @@ gold: pokegold.gbc
silver: pokesilver.gbc
tidy:
- rm -f $(roms) $(gold_obj) $(silver_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
+ rm -f $(roms) $(gold_obj) $(silver_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o
$(MAKE) clean -C tools/
clean:
- rm -f $(roms) $(gold_obj) $(silver_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
+ rm -f $(roms) $(gold_obj) $(silver_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o
find gfx \( -iname "*.png" -not -iname "big_onix.png" \) -delete
$(MAKE) clean -C tools/
@@ -70,11 +70,14 @@ RGBASMFLAGS = -L -Weverything
$(gold_obj): RGBASMFLAGS += -D _GOLD
$(silver_obj): RGBASMFLAGS += -D _SILVER
+rgbdscheck.o: rgbdscheck.asm
+ $(RGBASM) -o $@ $<
+
# The dep rules have to be explicit or else missing files won't be reported.
# As a side effect, they're evaluated immediately instead of when the rule is invoked.
# It doesn't look like $(shell) can be deferred so there might not be a better way.
define DEP
-$1: $2 $$(shell tools/scan_includes $2)
+$1: $2 $$(shell tools/scan_includes $2) | rgbdscheck.o
$$(RGBASM) $$(RGBASMFLAGS) -o $$@ $$<
endef