dos33fsprogs/games/sb/Makefile

112 lines
2.7 KiB
Makefile
Raw Normal View History

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
####
2023-06-01 20:50:41 +00:00
sb.dsk: QBOOT QLOAD TITLE DUCK_POND SB 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
$(DOS33_RAW) sb.dsk 8 0 SB 0 0
2023-06-01 20:50:41 +00:00
$(DOS33_RAW) sb.dsk 11 0 RAT 0 0
2023-05-26 04:18:33 +00:00
# $(DOS33) -y sb.dsk BSAVE -a 0x1000 DUCK_POND
# $(DOS33) -y sb.dsk BSAVE -a 0x0c00 SB
2023-06-01 20:50:41 +00:00
# $(DOS33) -y sb.dsk BSAVE -a 0x6000 RAT
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-03-06 01:54:41 +00:00
SB: sb.o
2023-05-26 04:18:33 +00:00
ld65 -o SB sb.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
2023-03-06 01:54:41 +00:00
sb.o: sb.s zx02_optim.s \
zp.inc hardware.inc
ca65 -o sb.o sb.s -l sb.lst
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
####
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-05-31 05:14:56 +00:00
purple.s lc_detect.s \
sound/purple.btc.zx02 \
2023-05-30 04:36:16 +00:00
graphics/czmg4ap_title.hgr.zx02 \
2023-06-01 20:21:40 +00:00
graphics/videlectrix_top.hgr.zx02 \
graphics/title_sprites.inc
2023-05-02 01:14:07 +00:00
ca65 -o title.o title.s -l title.lst
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 \
graphics/duck_sprites.inc 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-03-06 01:54:41 +00:00
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
####
clean:
2023-06-01 20:50:41 +00:00
rm -f *.lst *.o TITLE SB RAT DUCK_POND *~