summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-03-04 21:31:27 -0600
committerBryan Bishop <kanzure@gmail.com>2012-03-04 21:31:27 -0600
commit7dc495b3c9269eba88abe1168cc694a2ec3e5e0f (patch)
tree8717cb995e8ea448d7f01f9d2dbc37f7b5d17ef7 /Makefile
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..548d67a5d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+#gawk sort order
+export LC_CTYPE=C
+
+.SUFFIXES: .asm .tx .o .gbc
+
+TEXTFILES =
+
+all: pokecrystal.gbc
+
+pokecrystal.o: pokecrystal.asm main.tx constants.asm ${TEXTFILES}
+ rgbasm -o pokecrystal.o pokecrystal.asm
+
+.asm.tx:
+ awk -f textpre.awk < $< > $@
+
+pokecrystal.gbc: pokecrystal.o
+ rgblink -o $@ $<
+ cmp baserom.gbc $@
+
+clean:
+ rm -f main.tx pokecrystal.o pokecrystal.gbc ${TEXTFILES}