44 lines
969 B
Makefile
Raw Normal View History

2023-08-14 01:40:08 -04:00
include ../../../Makefile.inc
ZX02 = ~/research/6502_compression/zx02.git/build/zx02
2024-08-22 14:39:24 -04:00
PNG_TO_HGR = ../../..utils/hgr-utils/png2hgr
2023-08-14 01:40:08 -04:00
LINKER_SCRIPTS = ../../../linker_scripts
2024-08-22 14:39:24 -04:00
DOS33 = ../../../utils/dos33fs-utils/dos33
DOS33_RAW = ../../../utils/dos33fs-utils/dos33_raw
EMPTY_DISK = ../../../empty_disk/empty.dsk
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
2023-08-14 01:40:08 -04:00
2024-08-22 14:39:24 -04:00
all: cliff.dsk
####
cliff.dsk: HELLO CLIFF
cp $(EMPTY_DISK) cliff.dsk
$(DOS33) -y cliff.dsk SAVE A HELLO
$(DOS33) -y cliff.dsk BSAVE -a 0x6000 CLIFF
###
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
2023-08-14 01:40:08 -04:00
####
CLIFF: cliff.o
ld65 -o CLIFF cliff.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
2024-08-22 14:39:24 -04:00
cliff.o: cliff.s zx02_optim.s \
2023-08-14 15:11:33 -04:00
hgr_copy.s hgr_partial_save.s \
2023-08-14 01:40:08 -04:00
cliff_graphics/cliff_base.hgr.zx02 \
zp.inc hardware.inc
ca65 -o cliff.o cliff.s -l cliff.lst
cliff_graphics/cliff_base.hgr.zx02:
cd cliff_graphics && make
####
clean:
2024-08-22 14:39:24 -04:00
rm -f *.lst *.o CLIFF HELLO
2023-08-14 01:40:08 -04:00
cd cliff_graphics && make clean