summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-09-14 19:04:04 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-09-14 19:04:04 -0400
commita8579e23c7307a7c8b57c7b119f7cbc167e25b32 (patch)
tree30da98bd351840285293c10830cc0ca69af0d952 /Makefile
parentbd1ab3a9263065811ffeec7a9aeabd7d1e629053 (diff)
Remove .xor files and build them with xor_compress.py
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 61eb6f7..6bdf53d 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,11 @@ tools: $(tools)
clean:
rm -rf $(name).gbc $(name).sym $(name).map $(dir_build) $(tools)
+.PHONY: tidy
+tidy:
+ rm -rf $(name).gbc $(name).sym $(name).map
+ find $(dir_build) \( -name "*.o" \) -delete
+
$(name).gbc: layout.link $(objects) | $(baserom)
$(RGBLINK) $(RGBLINKFLAGS) -O $(baserom) -l $< -n $(@:.gbc=.sym) -m $(@:.gbc=.map) -o $@ $(filter-out $<, $^)
$(RGBFIX) $(RGBFIXFLAGS) -v $@