summaryrefslogtreecommitdiff
path: root/Makefile
blob: b49c1801a3dd9dc68c8a5bb53569b9231f8c88c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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

pokered.o: pokered1.asm constants.asm text/pokedex1.asm
	rgbasm -o pokered.o pokered1.asm

pokered1.asm: pokered.asm
	awk -f textpre.awk < pokered.asm > pokered1.asm

text/pokedex1.asm: text/pokedex.asm
	awk -f textpre.awk < text/pokedex.asm > text/pokedex1.asm

redrle: extras/redrle.c
	${CC} -o $@ $>

clean:
	rm -f text/pokedex1.asm pokered1.asm pokered.o pokered.gbc redrle