summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-04-04 22:40:44 -0400
committeryenatch <yenatch@gmail.com>2013-04-04 22:45:37 -0400
commitb6c874d4d41913e4ac9b88fd7244fb3de0da9945 (patch)
tree56fb1da0b7982c4da174365b7f1f44e9845d2c92
parentad3a80cd42e04949e5f3f6d452ad69355b9221bd (diff)
windows-specific make targets
compiles properly on windows now
-rw-r--r--Makefile13
-rw-r--r--pokecrystal.bat3
2 files changed, 11 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3d917f941..6f91979dc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
.SUFFIXES: .asm .tx .o .gbc .png .2bpp .lz
-TEXTFILES = text/sweethoney.tx \
+TEXTFILES = \
+ text/sweethoney.tx \
text/phone/bill.tx \
text/phone/elm.tx \
text/phone/mom.tx \
@@ -10,7 +11,8 @@ TEXTFILES = text/sweethoney.tx \
text/common_3.tx \
main.tx
-VERTGFX = gfx/pics/%.png \
+VERTGFX = \
+ gfx/pics/%.png \
gfx/trainers/%.png
HORIZGFX = $(filter-out gfx/%.png, $(VERTGFX))
@@ -24,10 +26,16 @@ HORIZGFX = $(filter-out gfx/%.png, $(VERTGFX))
# so take care to reorganize accordingly
all: pokecrystal.gbc
+ cmp baserom.gbc $<
+
+win: pokecrystal.gbc
+ fc baserom.gbc $<
clean:
rm -f main.tx pokecrystal.o pokecrystal.gbc ${TEXTFILES}
+winclean:
+ del main.tx pokecrystal.o pokecrystal.gbc .\text\sweethoney.tx .\text\phone\bill.tx .\text\phone\elm.tx .\text\phone\mom.tx .\text\phone\trainers1.tx .\text\common.tx .\text\common_2.tx .\text\common_3.tx
pokecrystal.o: pokecrystal.asm constants.asm wram.asm ${TEXTFILES}
rgbasm -o pokecrystal.o pokecrystal.asm
@@ -38,7 +46,6 @@ pokecrystal.o: pokecrystal.asm constants.asm wram.asm ${TEXTFILES}
pokecrystal.gbc: pokecrystal.o
rgblink -o $@ $<
rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@
- cmp baserom.gbc $@
lzs: ${VERTGFX} ${HORIZGFX}
diff --git a/pokecrystal.bat b/pokecrystal.bat
index 46919f400..211c33b1f 100644
--- a/pokecrystal.bat
+++ b/pokecrystal.bat
@@ -1,4 +1,3 @@
@set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin\;C:\Python27\
-make clean
-make
+@make winclean && make win
@pause