2023-03-06 01:54:41 +00:00
|
|
|
include ../../Makefile.inc
|
|
|
|
|
|
|
|
ZX02 = ~/research/6502_compression/zx02.git/build/zx02
|
|
|
|
PNG_TO_HGR = ../../utils/hgr-utils/png2hgr
|
|
|
|
LINKER_SCRIPTS = ../../linker_scripts
|
|
|
|
DOS33 = ../../utils/dos33fs-utils/dos33
|
2023-05-26 04:18:33 +00:00
|
|
|
DOS33_RAW = ../../utils/dos33fs-utils/dos33_raw
|
2023-03-06 01:54:41 +00:00
|
|
|
EMPTY_DISK = ../../empty_disk/empty.dsk
|
|
|
|
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
|
|
|
|
|
|
|
|
all: sb.dsk
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2024-06-05 19:35:19 +00:00
|
|
|
sb.dsk: QBOOT QLOAD TITLE DUCK_POND ROOF ASPLODE BACK_OFF \
|
|
|
|
./fish/FISH RAT
|
2023-03-06 01:54:41 +00:00
|
|
|
cp $(EMPTY_DISK) sb.dsk
|
2023-05-26 04:18:33 +00:00
|
|
|
$(DOS33_RAW) sb.dsk 0 0 QBOOT 0 1
|
|
|
|
$(DOS33_RAW) sb.dsk 0 2 QBOOT 1 1
|
|
|
|
$(DOS33_RAW) sb.dsk 0 4 QBOOT 2 1
|
|
|
|
$(DOS33_RAW) sb.dsk 1 0 QLOAD 0 0
|
|
|
|
$(DOS33_RAW) sb.dsk 2 0 TITLE 0 0
|
|
|
|
$(DOS33_RAW) sb.dsk 5 0 DUCK_POND 0 0
|
2024-06-05 19:35:19 +00:00
|
|
|
$(DOS33_RAW) sb.dsk 10 0 ROOF 0 0
|
2023-06-02 19:40:42 +00:00
|
|
|
$(DOS33_RAW) sb.dsk 15 0 ASPLODE 0 0
|
2024-06-05 19:35:19 +00:00
|
|
|
# $(DOS33_RAW) sb.dsk 20 0 TARGET 0 0
|
2024-06-08 04:59:56 +00:00
|
|
|
$(DOS33_RAW) sb.dsk 20 0 ./fish/FISH 0 0
|
2023-06-02 19:40:42 +00:00
|
|
|
$(DOS33_RAW) sb.dsk 30 0 RAT 0 0
|
2023-06-15 04:18:22 +00:00
|
|
|
$(DOS33_RAW) sb.dsk 32 0 BACK_OFF 0 0
|
2023-03-06 01:54:41 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2023-05-26 04:18:33 +00:00
|
|
|
QBOOT: qboot_sector.o
|
|
|
|
ld65 -o QBOOT qboot_sector.o -C $(LINKER_SCRIPTS)/apple2_800.inc
|
|
|
|
|
|
|
|
qboot_sector.o: qboot_sector.s qboot_stage2.s
|
|
|
|
ca65 -o qboot_sector.o qboot_sector.s -l qboot_sector.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
QLOAD: qload.o
|
|
|
|
ld65 -o QLOAD qload.o -C $(LINKER_SCRIPTS)/apple2_1200.inc
|
|
|
|
|
|
|
|
qload.o: qload.s qboot.inc
|
|
|
|
ca65 -o qload.o qload.s -l qload.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2023-06-02 03:25:42 +00:00
|
|
|
ROOF: roof.o
|
|
|
|
ld65 -o ROOF roof.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
2023-03-06 01:54:41 +00:00
|
|
|
|
2023-06-02 03:25:42 +00:00
|
|
|
roof.o: roof.s zx02_optim.s \
|
2023-06-07 17:52:12 +00:00
|
|
|
roof_graphics/strongbad_sample.hgr.zx02 \
|
2023-03-06 01:54:41 +00:00
|
|
|
zp.inc hardware.inc
|
2023-06-02 03:25:42 +00:00
|
|
|
ca65 -o roof.o roof.s -l roof.lst
|
2023-03-06 01:54:41 +00:00
|
|
|
|
2023-06-07 17:52:12 +00:00
|
|
|
roof_graphics/strongbad_sample.hgr.zx02:
|
|
|
|
cd roof_graphics && make
|
2023-05-02 01:14:07 +00:00
|
|
|
|
2023-06-02 19:40:42 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
ASPLODE: asplode.o
|
2023-06-11 06:33:52 +00:00
|
|
|
ld65 -o ASPLODE asplode.o -C $(LINKER_SCRIPTS)/apple2_4000.inc
|
2023-06-02 19:40:42 +00:00
|
|
|
|
|
|
|
asplode.o: asplode.s zx02_optim.s \
|
|
|
|
asplode_graphics/sb_title.hgr.zx02 \
|
|
|
|
asplode_graphics/sb_zone.hgr.zx02 \
|
2023-06-02 20:37:01 +00:00
|
|
|
asplode_graphics/sb_sprites.inc \
|
2023-06-11 06:06:45 +00:00
|
|
|
asplode_sound/asplode_sound.btc.zx02 \
|
2023-06-09 19:43:52 +00:00
|
|
|
audio.s play_asplode.s asplode_head.s \
|
2023-06-02 21:07:04 +00:00
|
|
|
hgr_sprite_big.s cycle_colors.s \
|
2023-06-02 19:40:42 +00:00
|
|
|
zp.inc hardware.inc
|
|
|
|
ca65 -o asplode.o asplode.s -l asplode.lst
|
|
|
|
|
2023-06-09 17:25:11 +00:00
|
|
|
asplode_graphics/sb_sprites.inc:
|
|
|
|
cd asplode_graphics && make
|
|
|
|
|
2023-06-07 17:52:12 +00:00
|
|
|
asplode_graphics/sb_title.hgr.zx02:
|
|
|
|
cd asplode_graphics && make
|
2023-06-02 19:40:42 +00:00
|
|
|
|
2023-06-07 17:52:12 +00:00
|
|
|
asplode_sound/asplode.btc.zx02:
|
|
|
|
cd asplode_sound && make
|
2023-06-02 19:40:42 +00:00
|
|
|
|
2023-06-14 20:56:30 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
BACK_OFF: back_off.o
|
|
|
|
ld65 -o BACK_OFF back_off.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
|
|
|
|
|
|
|
back_off.o: back_off.s zx02_optim.s \
|
|
|
|
asplode_graphics/bob_bg.hgr.zx02 \
|
2023-06-16 06:00:04 +00:00
|
|
|
asplode_graphics/bob_sprites.inc \
|
2023-06-14 20:56:30 +00:00
|
|
|
asplode_sound/back_off.btc.zx02 \
|
2023-06-16 06:00:04 +00:00
|
|
|
audio.s play_back_off.s \
|
|
|
|
hgr_sprite_big.s \
|
2023-06-14 20:56:30 +00:00
|
|
|
zp.inc hardware.inc
|
|
|
|
ca65 -o back_off.o back_off.s -l back_off.lst
|
|
|
|
|
2023-06-02 15:59:48 +00:00
|
|
|
####
|
|
|
|
|
2024-06-05 19:35:19 +00:00
|
|
|
#./cliff/CLIFF:
|
|
|
|
# cd cliff && make
|
2023-06-02 15:59:48 +00:00
|
|
|
|
2024-06-05 04:56:26 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
./fish/FISH:
|
|
|
|
cd fish && make
|
|
|
|
|
|
|
|
|
2023-08-14 05:40:08 +00:00
|
|
|
#CLIFF: cliff.o
|
|
|
|
# ld65 -o CLIFF cliff.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
|
|
|
|
|
|
|
#cliff.o: cliff.s zx02_optim.s \
|
|
|
|
# cliff_graphics/cliff_base.hgr.zx02 \
|
|
|
|
# zp.inc hardware.inc
|
|
|
|
# ca65 -o cliff.o cliff.s -l cliff.lst
|
2023-06-02 15:59:48 +00:00
|
|
|
|
2023-08-14 05:40:08 +00:00
|
|
|
#cliff_graphics/cliff_base.hgr.zx02:
|
|
|
|
# cd cliff_graphics && make
|
2023-06-07 17:52:12 +00:00
|
|
|
|
2023-06-02 15:59:48 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
TARGET: target.o
|
|
|
|
ld65 -o TARGET target.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
|
|
|
|
|
|
|
target.o: target.s zx02_optim.s \
|
|
|
|
target_graphics/target.hgr.zx02 \
|
|
|
|
zp.inc hardware.inc
|
|
|
|
ca65 -o target.o target.s -l target.lst
|
|
|
|
|
2023-06-07 17:52:12 +00:00
|
|
|
target_graphics/target.hgr.zx02:
|
|
|
|
cd target_graphics && make
|
2023-06-02 15:59:48 +00:00
|
|
|
|
|
|
|
|
2023-05-02 01:14:07 +00:00
|
|
|
####
|
|
|
|
|
2023-06-01 20:50:41 +00:00
|
|
|
RAT: rat.o
|
|
|
|
ld65 -o RAT rat.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
2023-05-02 01:14:07 +00:00
|
|
|
|
2023-06-01 20:50:41 +00:00
|
|
|
rat.o: rat.s zx02_optim.s duet.s hgr_sprite_mask.s hgr_sprite.s hgr_tables.s \
|
2023-05-02 01:14:07 +00:00
|
|
|
zp.inc hardware.inc \
|
2023-06-01 20:50:41 +00:00
|
|
|
rat_sound/fortnight.ed \
|
|
|
|
rat_graphics/a2_fortnight.hgr.zx02 \
|
|
|
|
rat_graphics/a2_fortnight_99.hgr.zx02 \
|
|
|
|
rat_graphics/a2_fortnight_100.hgr.zx02 \
|
|
|
|
rat_graphics/a2_fortnight_rat1.hgr.zx02 \
|
|
|
|
rat_graphics/a2_fortnight_rat2.hgr.zx02 \
|
|
|
|
rat_graphics/a2_break.hgr.zx02 \
|
|
|
|
rat_graphics/disk_sprites.inc
|
|
|
|
ca65 -o rat.o rat.s -l rat.lst
|
2023-05-02 01:14:07 +00:00
|
|
|
|
2023-06-07 17:52:12 +00:00
|
|
|
rat_sound/fortnight.ed:
|
|
|
|
cd rat_sound && make
|
|
|
|
|
|
|
|
rat_graphics/a2_fortnight.hgr.zx02:
|
|
|
|
cd rat_graphics && make
|
2023-05-02 01:14:07 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
TITLE: title.o
|
2023-05-26 04:18:33 +00:00
|
|
|
ld65 -o TITLE title.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
2023-05-02 01:14:07 +00:00
|
|
|
|
|
|
|
title.o: title.s zx02_optim.s \
|
2023-05-30 04:36:16 +00:00
|
|
|
zp.inc hardware.inc \
|
2023-06-01 20:21:40 +00:00
|
|
|
hgr_logo_scroll.s audio.s hgr_sprite.s \
|
2023-06-03 22:37:14 +00:00
|
|
|
hgr_sprite_big.s hgr_copy_fast.s \
|
2023-06-05 20:29:18 +00:00
|
|
|
play_purple.s lc_detect.s hgr_tables.s \
|
2023-06-02 03:25:42 +00:00
|
|
|
title_sound/purple.btc.zx02 \
|
|
|
|
title_graphics/czmg4ap_title.hgr.zx02 \
|
|
|
|
title_graphics/videlectrix_top.hgr.zx02 \
|
2023-06-02 03:46:07 +00:00
|
|
|
title_graphics/the_cheat_loading.hgr.zx02 \
|
2023-06-02 03:25:42 +00:00
|
|
|
title_graphics/title_sprites.inc
|
2023-05-02 01:14:07 +00:00
|
|
|
ca65 -o title.o title.s -l title.lst
|
|
|
|
|
2023-06-07 17:52:12 +00:00
|
|
|
title_sound/purple.btc.zx02:
|
|
|
|
cd title_sound && make
|
|
|
|
|
|
|
|
title_graphics/czmg4ap_title.hgr.zx02:
|
|
|
|
cd title_graphics && make
|
2023-05-02 01:14:07 +00:00
|
|
|
|
2023-03-06 01:54:41 +00:00
|
|
|
####
|
|
|
|
|
2023-03-07 05:28:45 +00:00
|
|
|
DUCK_POND: duck_pond.o
|
2023-05-26 04:18:33 +00:00
|
|
|
ld65 -o DUCK_POND duck_pond.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
2023-03-07 05:28:45 +00:00
|
|
|
|
|
|
|
duck_pond.o: duck_pond.s zx02_optim.s \
|
2023-03-10 05:28:36 +00:00
|
|
|
zp.inc hardware.inc \
|
2023-03-14 03:55:12 +00:00
|
|
|
gr_copy.s duck_score.s gr_putsprite_mask.s \
|
2023-03-13 19:29:05 +00:00
|
|
|
draw_ducks.s move_ducks.s \
|
2023-06-02 03:25:42 +00:00
|
|
|
duck_graphics/duck_sprites.inc duck_graphics/num_sprites.inc
|
2023-03-07 05:28:45 +00:00
|
|
|
ca65 -o duck_pond.o duck_pond.s -l duck_pond.lst
|
|
|
|
|
2023-06-07 17:52:12 +00:00
|
|
|
duck_graphics/duck_sprites.inc:
|
|
|
|
cd duck_graphics && make
|
|
|
|
|
2023-03-07 05:28:45 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2023-03-06 01:54:41 +00:00
|
|
|
HELLO: hello.bas
|
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
clean:
|
2023-06-02 19:40:42 +00:00
|
|
|
rm -f *.lst *.o QBOOT QLOAD TITLE DUCK_POND ROOF ASPLODE TARGET CLIFF RAT *~
|
2023-06-07 17:52:12 +00:00
|
|
|
cd asplode_sound && make clean
|
|
|
|
cd rat_sound && make clean
|
|
|
|
cd title_sound && make clean
|
|
|
|
cd asplode_graphics && make clean
|
|
|
|
cd cliff_graphics && make clean
|
|
|
|
cd duck_graphics && make clean
|
|
|
|
cd rat_graphics && make clean
|
|
|
|
cd roof_graphics && make clean
|
|
|
|
cd target_graphics && make clean
|
|
|
|
cd title_graphics && make clean
|