summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi@gmail.com>2018-05-28 17:19:37 -0400
committerRangi <remy.oukaour+rangi@gmail.com>2018-05-28 17:19:37 -0400
commit8e09ad2dde43acb0657c8e8378552f2a7c3e3fd9 (patch)
tree3644f3038811445196686e1076dd796f4a52d950 /Makefile
parentbb411eeeb580c939cf721a216d909bc25ce289d3 (diff)
parent58cf9bc1d3e7d37635a86f848e187058aa9d90fe (diff)
Merge branch 'master' of http://git.sanqui.net:3000/pret/pokegold-spaceworld
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 03dcca3..93cfddb 100644
--- a/Makefile
+++ b/Makefile
@@ -26,8 +26,8 @@ $(foreach obj, $(OBJS), $(eval $(call DEP,$(obj),$(obj:.o=.asm))))
endif
-shim.asm: shim.sym
- python3 tools/make_shim.py -w $^ > $@
+shim.asm: tools/make_shim.py shim.sym
+ python tools/make_shim.py -w -- $(filter-out $<, $^) > $@
$(ROMS): $(OBJS)
rgblink -d -n $(ROMS:.gb=.sym) -m $(ROMS:.gb=.map) -O $(BASEROM) -o $@ $^
@@ -38,7 +38,7 @@ compare: $(ROMS) $(BASEROM)
# Remove files generated by the build process.
clean:
- rm -rf $(ROMS) $(OBJS) $(ROMS:.gb=.sym) build/*
+ rm -rf $(ROMS) $(OBJS) $(ROMS:.gb=.sym) build/* shim.asm
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pcm' \) -exec rm {} +
%.2bpp: %.png