summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMakefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fa0e9d7..77d7966 100755
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.PHONY: all compare clean
.SUFFIXES:
-.SUFFIXES: .asm .o .gbc .png
+.SUFFIXES: .asm .o .gbc .png .2bpp .1bpp
.SECONDEXPANSION:
ROMS := tcg.gbc
@@ -9,7 +9,7 @@ OBJS := main.o
main_dep := $(shell python extras/scan_includes.py main.asm)
-all: tcg.gbc compare
+all: $(ROMS) compare
compare: baserom.gbc $(ROMS)
cmp $^
@@ -19,12 +19,11 @@ $(OBJS): $$*.asm $$($$*_dep)
rgbasm -o $@ $<
tcg.gbc: $(OBJS)
- rgblink -n tcg.sym -m tcg.map -o $@ $^
+ rgblink -n $(ROMS:.gbc=.sym) -o $@ $^
rgbfix -cjsv -k 01 -l 0x33 -m 0x1b -p 0 -r 03 -t POKECARD -i AXQE $@
clean:
- rm -f $(ROMS)
- rm -f $(OBJS)
+ rm -f $(ROMS) $(OBJS) $(ROMS:.gbc=.sym)
find . \( -iname '*.1bpp' -o -iname '*.2bpp' \) -exec rm {} +
%.2bpp: %.png