Make an implied rule for .gbc.

Fixes a build issue with GNU Make. Pointed out by kanzure on IRC.

hg-commit-id: d07c0e5f8385
This commit is contained in:
IIMarckus 2011-12-29 17:09:44 -07:00
parent 3678f9bfb9
commit ba5617f9f8

View file

@ -1,12 +1,9 @@
.SUFFIXES: .asm .tx .SUFFIXES: .asm .tx .o .gbc
TEXTFILES = text/oakspeech.tx text/pokedex.tx text/mapRedsHouse1F.tx \ TEXTFILES = text/oakspeech.tx text/pokedex.tx text/mapRedsHouse1F.tx \
text/mapBluesHouse.tx text/mapPalletTown.tx text/mapBluesHouse.tx text/mapPalletTown.tx
pokered.gbc: pokered.o all: pokered.gbc
rgblink -o $@ $>
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@
cmp baserom.gbc $@
pokered.o: pokered.tx constants.asm ${TEXTFILES} pokered.o: pokered.tx constants.asm ${TEXTFILES}
rgbasm -o pokered.o pokered.tx rgbasm -o pokered.o pokered.tx
@ -15,7 +12,12 @@ redrle: extras/redrle.c
${CC} -o $@ $> ${CC} -o $@ $>
.asm.tx: .asm.tx:
awk -f textpre.awk < $> > $@ awk -f textpre.awk < $< > $@
.o.gbc:
rgblink -o $@ $<
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@
cmp baserom.gbc $@
clean: clean:
rm -f pokered.tx pokered.o pokered.gbc redrle ${TEXTFILES} rm -f pokered.tx pokered.o pokered.gbc redrle ${TEXTFILES}