diff options
| author | IIMarckus <iimarckus@gmail.com> | 2011-12-26 18:40:25 -0700 |
|---|---|---|
| committer | IIMarckus <iimarckus@gmail.com> | 2011-12-26 18:40:25 -0700 |
| commit | 18bf34ec0b5731b46fb0f1533b5c42e85dc18f79 (patch) | |
| tree | 3383f82004009308df7686bb3be1c59bbc9fc691 /Makefile | |
| parent | d5c498a7ec074aaef1a7074ec8cbd254d100826d (diff) | |
Split large chunks of text into separate files, and improve Makefile.
hg-commit-id: 59e6e303019d
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -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} |
