From ba5617f9f8d974de2ffadc895cf9588fd726b209 Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Thu, 29 Dec 2011 17:09:44 -0700 Subject: Make an implied rule for .gbc. Fixes a build issue with GNU Make. Pointed out by kanzure on IRC. hg-commit-id: d07c0e5f8385 --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 22301e1c..39458890 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,9 @@ -.SUFFIXES: .asm .tx +.SUFFIXES: .asm .tx .o .gbc TEXTFILES = text/oakspeech.tx text/pokedex.tx text/mapRedsHouse1F.tx \ text/mapBluesHouse.tx text/mapPalletTown.tx -pokered.gbc: pokered.o - rgblink -o $@ $> - rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@ - cmp baserom.gbc $@ +all: pokered.gbc pokered.o: pokered.tx constants.asm ${TEXTFILES} rgbasm -o pokered.o pokered.tx @@ -15,7 +12,12 @@ redrle: extras/redrle.c ${CC} -o $@ $> .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: rm -f pokered.tx pokered.o pokered.gbc redrle ${TEXTFILES} -- cgit v1.2.3