2017-07-28 22:11:25 +00:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
# GS Cats
|
|
|
|
#
|
|
|
|
# Created by Quinn Dunki on 7/14/15.
|
|
|
|
# One Girl, One Laptop Productions
|
|
|
|
# http://www.quinndunki.com
|
|
|
|
# http://www.quinndunki.com/blondihacks
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
CL65=cl65
|
|
|
|
AC=AppleCommander.jar
|
2017-07-29 21:47:17 +00:00
|
|
|
ADDR=800
|
2017-07-28 22:11:25 +00:00
|
|
|
|
|
|
|
PGM=gscats
|
2017-09-30 20:01:36 +00:00
|
|
|
MRSPRITE=../MrSprite/mrsprite CODE
|
|
|
|
PALETTE=00ff00 000000 ffff00 886611 cc9933 eebb44 dd6666 ff99aa 00ff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffff00 ffffff
|
2017-07-28 22:11:25 +00:00
|
|
|
|
|
|
|
all: $(PGM)
|
|
|
|
|
|
|
|
|
|
|
|
$(PGM):
|
|
|
|
@PATH=$(PATH):/usr/local/bin; $(CL65) -t apple2enh --cpu 65816 --start-addr $(ADDR) -l$(PGM).lst $(PGM).s
|
|
|
|
java -jar $(AC) -d $(PGM).2mg $(PGM)
|
|
|
|
java -jar $(AC) -p $(PGM).2mg $(PGM) BIN 0x$(ADDR) < $(PGM)
|
2017-10-01 22:40:29 +00:00
|
|
|
java -jar $(AC) -d $(PGM).2mg SPRITEBANK00
|
|
|
|
java -jar $(AC) -p $(PGM).2mg SPRITEBANK00 BIN 0x0000 < Art/spritebank00.bin
|
2017-07-28 22:11:25 +00:00
|
|
|
rm -f $(PGM)
|
|
|
|
rm -f $(PGM).o
|
|
|
|
osascript V2Make.scpt $(PROJECT_DIR) $(PGM)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(PGM)
|
|
|
|
rm -f $(PGM).o
|
|
|
|
rm ~/Library/Application\ Support/Sweet16/Disk\ Images/*
|
|
|
|
|
2017-10-01 22:40:29 +00:00
|
|
|
.PHONY: art
|
|
|
|
art:
|
|
|
|
$(MRSPRITE) "Art/*.gif" $(PALETTE)
|
|
|
|
mv Art/*.s Sprites
|
|
|
|
@PATH=$(PATH):/usr/local/bin; $(CL65) -t apple2enh --cpu 65816 --start-addr $(ADDR) -lspritebank.lst spritebank.s
|
|
|
|
java -jar $(AC) -p $(PGM).2mg spritebank BIN 0x$(ADDR) < spritebank
|
|
|
|
rm -f spritebank
|
|
|
|
rm -f spritebank.o
|