pokered/Makefile
Mr Wint 66aaa9a0cb * added verification (equality test) for blue version build
* changed analyze_incbins to recognize generated label addresses
* fixed bank 1D assembly to make blue version build correctly
2013-03-12 03:46:32 +01:00

33 lines
815 B
Makefile

.SUFFIXES: .asm .tx .o .gbc
TEXTFILES = text/oakspeech.tx text/pokedex.tx text/mapRedsHouse1F.tx \
text/mapBluesHouse.tx text/mapPalletTown.tx
all: pokered.gbc
pokered.o: pokered.asm main.tx constants.asm ${TEXTFILES}
rgbasm -o pokered.o pokered.asm
pokeblue.o: pokeblue.asm main.tx constants.asm ${TEXTFILES}
rgbasm -o pokeblue.o pokeblue.asm
redrle: extras/redrle.c
${CC} -o $@ $>
.asm.tx:
python textpre.py < $< > $@
pokered.gbc: pokered.o
rgblink -o $@ $*.o
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@
cmp baserom.gbc $@
pokeblue.gbc: pokeblue.o
rgblink -o $@ $*.o
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON BLUE" $@
cmp blue.gbc $@
clean:
rm -f main.tx pokered.o pokered.gbc pokeblue.o pokeblue.gbc redrle ${TEXTFILES}
more: pokered.gbc pokeblue.gbc