summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index b49c1801..22301e1c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,21 @@
-pokered.gbc: pokered.o
- rgblink -o pokered.gbc pokered.o
- rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" \
- pokered.gbc
- cmp baserom.gbc pokered.gbc
+.SUFFIXES: .asm .tx
-pokered.o: pokered1.asm constants.asm text/pokedex1.asm
- rgbasm -o pokered.o pokered1.asm
+TEXTFILES = text/oakspeech.tx text/pokedex.tx text/mapRedsHouse1F.tx \
+ text/mapBluesHouse.tx text/mapPalletTown.tx
-pokered1.asm: pokered.asm
- awk -f textpre.awk < pokered.asm > pokered1.asm
+pokered.gbc: pokered.o
+ rgblink -o $@ $>
+ rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@
+ cmp baserom.gbc $@
-text/pokedex1.asm: text/pokedex.asm
- awk -f textpre.awk < text/pokedex.asm > text/pokedex1.asm
+pokered.o: pokered.tx constants.asm ${TEXTFILES}
+ rgbasm -o pokered.o pokered.tx
redrle: extras/redrle.c
${CC} -o $@ $>
+.asm.tx:
+ awk -f textpre.awk < $> > $@
+
clean:
- rm -f text/pokedex1.asm pokered1.asm pokered.o pokered.gbc redrle
+ rm -f pokered.tx pokered.o pokered.gbc redrle ${TEXTFILES}