include ../../../Makefile.inc

DOS33 = ../../../utils/dos33fs-utils/dos33
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
LINKERSCRIPTS = ../../../linker_scripts
EMPTYDISK = ../../../empty_disk/empty.dsk

all:	plasma_hgr.dsk

plasma_hgr.dsk:	HELLO OVAL PURPLE_WAVES ZEBRA JAWS TWIST OVAL_BOT
	cp $(EMPTYDISK) plasma_hgr.dsk
	$(DOS33) -y plasma_hgr.dsk SAVE A HELLO
	$(DOS33) -y plasma_hgr.dsk BSAVE -a 0xc00 OVAL
	$(DOS33) -y plasma_hgr.dsk BSAVE -a 0xc00 PURPLE_WAVES
	$(DOS33) -y plasma_hgr.dsk BSAVE -a 0xc00 ZEBRA
	$(DOS33) -y plasma_hgr.dsk BSAVE -a 0xc00 JAWS
	$(DOS33) -y plasma_hgr.dsk BSAVE -a 0xc00 TWIST
	$(DOS33) -y plasma_hgr.dsk BSAVE -a 0x378 OVAL_BOT

###

HELLO:	hello.bas
	$(TOKENIZE) < hello.bas > HELLO

###

OVAL:	oval.o
	ld65 -o OVAL oval.o -C $(LINKERSCRIPTS)/apple2_c00.inc

oval.o:	oval.s
	ca65 -o oval.o oval.s -l oval.lst

###

OVAL_BOT:	oval_bot.o
	ld65 -o OVAL_BOT oval_bot.o -C $(LINKERSCRIPTS)/apple2_378.inc

oval_bot.o:	oval_bot.s
	ca65 -o oval_bot.o oval_bot.s -l oval_bot.lst


###

JAWS:	jaws.o
	ld65 -o JAWS jaws.o -C $(LINKERSCRIPTS)/apple2_c00.inc

jaws.o:	jaws.s
	ca65 -o jaws.o jaws.s -l jaws.lst


###

TWIST:	twist.o
	ld65 -o TWIST twist.o -C $(LINKERSCRIPTS)/apple2_c00.inc

twist.o:	twist.s
	ca65 -o twist.o twist.s -l twist.lst


###

ZEBRA:	zebra.o
	ld65 -o ZEBRA zebra.o -C $(LINKERSCRIPTS)/apple2_c00.inc

zebra.o:	zebra.s
	ca65 -o zebra.o zebra.s -l zebra.lst

###

PURPLE_WAVES:	purple_waves.o
	ld65 -o PURPLE_WAVES purple_waves.o -C $(LINKERSCRIPTS)/apple2_c00.inc

purple_waves.o:	purple_waves.s
	ca65 -o purple_waves.o purple_waves.s -l purple_waves.lst

###

clean:	
	rm -f *~ *.o *.lst OVAL PURPLE_WAVES ZEBRA JAWS TWIST OVAL_BOT

