shithub: pokered

Download patch

ref: 4000d7a23ab9a9d46bea6e937ab12d63c3194b89
parent: 5537897109c43381c222fcab96b2db3b9d3ffe7d
parent: 11aa33e49c2c4a8c9c6033d62da43292283ff675
author: U-Fish-PC\Daniel <corrnondacqb@yahoo.com>
date: Mon Sep 16 09:12:42 EDT 2013

Merge branch 'master' into comments

git/query: bad hash 7aa016fb528bcc8dcb30c6a887957851623eccc0
--- a/.gitignore
+++ b/.gitignore
@@ -17,7 +17,7 @@
 .*.swp
 
 # no data from extras/
-extras/*.json
+*.json
 
 # for any of the poor souls with save game files in their working directory
 baserom.sgm
--- /dev/null
+++ b/.gitmodules
@@ -1,0 +1,3 @@
+[submodule "extras"]
+	path = extras
+	url = git://github.com/kanzure/pokemon-reverse-engineering-tools.git
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,16 @@
 .SUFFIXES: .asm .tx .o .gbc
 
-TEXTFILES =	text/oakspeech.tx text/pokedex.tx text/mapRedsHouse1F.tx \
-		text/mapBluesHouse.tx text/mapPalletTown.tx
+TEXTFILES := $(shell find ./ -type f -name '*.asm')
 
 all: pokered.gbc
 
-pokered.o: pokered.asm main.tx constants.asm ${TEXTFILES}
-	rgbasm -o pokered.o pokered.asm
+pokered.o: pokered.tx main.tx constants.tx music.tx wram.tx ${TEXTFILES:.asm=.tx}
+	rgbasm -o pokered.o pokered.tx
 	
-pokeblue.o: pokeblue.asm main.tx constants.asm ${TEXTFILES}
-	rgbasm -o pokeblue.o pokeblue.asm
+pokeblue.o: pokeblue.tx main.tx constants.tx music.tx wram.tx ${TEXTFILES:.asm=.tx}
+	rgbasm -o pokeblue.o pokeblue.tx
 
-redrle: extras/redrle.c
+redrle: extras/redtools/redrle.c
 	${CC} -o $@ $>
 
 .asm.tx:
@@ -28,6 +27,6 @@
 	cmp blue.gbc $@
 
 clean:
-	rm -f main.tx pokered.o pokered.gbc pokeblue.o pokeblue.gbc redrle ${TEXTFILES}
+	rm -f pokered.o pokered.gbc pokeblue.o pokeblue.gbc redrle $(TEXTFILES:.asm=.tx)
 
 more: pokered.gbc pokeblue.gbc