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-10-07 22:00:40 +00:00
|
|
|
MRSPRITE=../MrSprite/mrsprite
|
2017-10-19 19:59:24 +00:00
|
|
|
CHROMA=00ff00
|
2018-06-08 19:55:22 +00:00
|
|
|
PALETTE=a4dffb a4dffb 008800 886611 cc9933 eebb44 dd6666 ff99aa 00ff00 ff0000 b7b7b7 dddddd 0077bb ffff00 000000 ffffff
|
2017-10-07 22:00:40 +00:00
|
|
|
SPRITES=SpriteBank
|
2018-01-16 20:56:53 +00:00
|
|
|
REMOTESYMBOLS=-Wl $(shell ./ParseMapFile.py *.map)
|
2017-07-28 22:11:25 +00:00
|
|
|
|
2018-01-16 20:56:53 +00:00
|
|
|
all: terrain_e1 $(PGM) loader
|
2017-07-28 22:11:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
$(PGM):
|
2018-01-16 20:56:53 +00:00
|
|
|
@echo $(REMOTESYMBOLS)
|
|
|
|
@PATH=$(PATH):/usr/local/bin; $(CL65) -t apple2enh -C linkerConfig --cpu 65816 --start-addr 0000 -l$(PGM).lst $(REMOTESYMBOLS) $(PGM).s
|
2017-10-02 00:36:09 +00:00
|
|
|
java -jar $(AC) -d $(PGM).2mg CODEBANK
|
2017-10-04 20:14:16 +00:00
|
|
|
java -jar $(AC) -p $(PGM).2mg CODEBANK BIN 0x0000 < $(PGM)
|
2017-10-07 22:00:40 +00:00
|
|
|
java -jar $(AC) -d $(PGM).2mg $(SPRITES)00
|
|
|
|
java -jar $(AC) -p $(PGM).2mg $(SPRITES)00 BIN 0x0000 < $(SPRITES)00.bin
|
2017-07-28 22:11:25 +00:00
|
|
|
rm -f $(PGM)
|
|
|
|
rm -f $(PGM).o
|
2018-01-16 20:56:53 +00:00
|
|
|
rm -f terrain_e1.map
|
2017-07-28 22:11:25 +00:00
|
|
|
osascript V2Make.scpt $(PROJECT_DIR) $(PGM)
|
|
|
|
|
2017-10-02 00:36:09 +00:00
|
|
|
loader:
|
|
|
|
@PATH=$(PATH):/usr/local/bin; $(CL65) -t apple2enh --cpu 65816 --start-addr $(ADDR) -lloader.lst loader.s
|
|
|
|
java -jar $(AC) -d $(PGM).2mg $(PGM)
|
|
|
|
java -jar $(AC) -p $(PGM).2mg $(PGM) BIN 0x$(ADDR) < loader
|
|
|
|
rm -f loader
|
|
|
|
rm -f loader.o
|
|
|
|
|
2018-01-16 20:56:53 +00:00
|
|
|
terrain_e1:
|
|
|
|
@PATH=$(PATH):/usr/local/bin; $(CL65) -t apple2enh -C linkerConfig --cpu 65816 --start-addr $(ADDR) -l -vm -m terrain_e1.map terrain_e1.s
|
|
|
|
java -jar $(AC) -d $(PGM).2mg CODEBANKE1
|
|
|
|
java -jar $(AC) -p $(PGM).2mg CODEBANKE1 BIN 0x800 < terrain_e1
|
|
|
|
rm -f terrain_e1
|
|
|
|
rm -f terrain_e1.o
|
|
|
|
|
2017-07-28 22:11:25 +00:00
|
|
|
clean:
|
|
|
|
rm -f $(PGM)
|
|
|
|
rm -f $(PGM).o
|
2017-10-02 00:36:09 +00:00
|
|
|
rm -f loader
|
|
|
|
rm -f loader.o
|
2018-01-16 20:56:53 +00:00
|
|
|
rm -f terrain_e1.o
|
|
|
|
rm -f terrain_e1.map
|
|
|
|
rm -f terrain_e1
|
2017-07-28 22:11:25 +00:00
|
|
|
|
2017-10-01 22:40:29 +00:00
|
|
|
.PHONY: art
|
|
|
|
art:
|
2017-10-19 19:59:24 +00:00
|
|
|
$(MRSPRITE) CODE "Art/*.gif" $(CHROMA) $(PALETTE)
|
2017-10-07 22:00:40 +00:00
|
|
|
$(MRSPRITE) BANK "Art/*.txt" $(SPRITES)
|
|
|
|
mv Art/$(SPRITES)00.bin .
|
|
|
|
./MerlinToCA65.sh Art/$(SPRITES)Src.txt > spritebank.s
|
|
|
|
rm Art/*.txt
|
|
|
|
java -jar $(AC) -d $(PGM).2mg $(SPRITES)00
|
|
|
|
java -jar $(AC) -p $(PGM).2mg $(SPRITES)00 BIN 0x0000 < $(SPRITES)00.bin
|