From 18bf34ec0b5731b46fb0f1533b5c42e85dc18f79 Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Mon, 26 Dec 2011 18:40:25 -0700 Subject: Split large chunks of text into separate files, and improve Makefile. hg-commit-id: 59e6e303019d --- Makefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'Makefile') 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} -- cgit v1.2.3