2012-01-15 17:26:12 +00:00
|
|
|
#gawk sort order
|
|
|
|
LC_CTYPE=C
|
|
|
|
|
2011-12-30 00:09:44 +00:00
|
|
|
.SUFFIXES: .asm .tx .o .gbc
|
2010-01-05 00:58:43 +00:00
|
|
|
|
2011-12-27 01:40:25 +00:00
|
|
|
TEXTFILES = text/oakspeech.tx text/pokedex.tx text/mapRedsHouse1F.tx \
|
|
|
|
text/mapBluesHouse.tx text/mapPalletTown.tx
|
2011-12-17 06:54:36 +00:00
|
|
|
|
2011-12-30 00:09:44 +00:00
|
|
|
all: pokered.gbc
|
2010-03-19 06:18:39 +00:00
|
|
|
|
2012-01-14 20:36:00 +00:00
|
|
|
pokered.o: pokered.asm common.tx constants.asm ${TEXTFILES}
|
|
|
|
rgbasm -o pokered.o pokered.asm
|
|
|
|
|
|
|
|
pokeblue.o: pokeblue.asm common.tx constants.asm ${TEXTFILES}
|
|
|
|
rgbasm -o pokeblue.o pokeblue.asm
|
2011-12-21 07:31:01 +00:00
|
|
|
|
2011-02-19 07:10:08 +00:00
|
|
|
redrle: extras/redrle.c
|
|
|
|
${CC} -o $@ $>
|
|
|
|
|
2011-12-27 01:40:25 +00:00
|
|
|
.asm.tx:
|
2012-01-18 17:57:43 +00:00
|
|
|
awk -f textpre.awk < $< > $@
|
2011-12-30 00:09:44 +00:00
|
|
|
|
2012-01-14 20:36:00 +00:00
|
|
|
pokered.gbc: pokered.o
|
2011-12-30 00:09:44 +00:00
|
|
|
rgblink -o $@ $<
|
|
|
|
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@
|
|
|
|
cmp baserom.gbc $@
|
2012-01-14 20:36:00 +00:00
|
|
|
|
|
|
|
pokeblue.gbc: pokeblue.o
|
|
|
|
rgblink -o $@ $<
|
|
|
|
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON BLUE" $@
|
2011-12-27 01:40:25 +00:00
|
|
|
|
2010-01-05 00:58:43 +00:00
|
|
|
clean:
|
2012-01-14 20:36:00 +00:00
|
|
|
rm -f common.tx pokered.o pokered.gbc pokeblue.o pokeblue.gbc redrle ${TEXTFILES}
|
|
|
|
|
2012-01-15 17:26:12 +00:00
|
|
|
more: pokered.gbc pokeblue.gbc
|