dos33fsprogs/demos/d2/Makefile

71 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2021-11-05 04:23:34 +00:00
include ../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
EMPTY_DISK = ../../empty_disk
HGR2PNG = ../../utils/hgr-utils/png2hgr
LINKER_SCRIPTS = ../../linker_scripts
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
2021-11-09 06:51:33 +00:00
all: hgr_d2.dsk text_to_tiny
2021-11-05 04:23:34 +00:00
2021-11-12 02:48:06 +00:00
submit: hgr_d2_1k.zip
####
hgr_d2_1k.zip: D2 d2.s file_id.diz hgr_d2.dsk
mkdir -p demosplash2021_hgr_d2_1k
cp D2 ./demosplash2021_hgr_d2_1k
cp *.s ./demosplash2021_hgr_d2_1k
cp file_id.diz ./demosplash2021_hgr_d2_1k
cp hgr_d2.dsk ./demosplash2021_hgr_d2_1k
2021-11-12 05:11:42 +00:00
cp hgr_d2.webm ./demosplash2021_hgr_d2_1k
2021-11-12 02:48:06 +00:00
zip -r hgr_d2_1k.zip demosplash2021_hgr_d2_1k
####
2021-11-09 06:51:33 +00:00
hgr_d2.dsk: HELLO D2
cp $(EMPTY_DISK)/empty.dsk ./hgr_d2.dsk
$(DOS33) -y hgr_d2.dsk SAVE A HELLO
$(DOS33) -y hgr_d2.dsk -t BIN -a 0x6000 BSAVE D2
2021-11-05 04:23:34 +00:00
####
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
####
peasant_music.s: peasant.txt text_to_tiny
./text_to_tiny peasant.txt > peasant_music.s
####
2021-11-12 00:58:20 +00:00
mA2E_2.s: mA2E_2.txt text_to_tiny
./text_to_tiny mA2E_2.txt > mA2E_2.s
####
2021-11-05 04:23:34 +00:00
D2: d2.o
ld65 -o D2 d2.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
d2.o: d2.s \
2021-11-07 19:06:57 +00:00
moving.s wires.s oval.s dsr_shape.s \
2021-11-05 04:23:34 +00:00
zp.inc hardware.inc \
2021-11-12 00:58:20 +00:00
mA2E_2.s \
2021-11-05 04:23:34 +00:00
interrupt_handler.s mockingboard_setup.s
ca65 -o d2.o d2.s -l d2.lst
####
text_to_tiny: text_to_tiny.o
$(CC) -o text_to_tiny text_to_tiny.o -lm
text_to_tiny.o: text_to_tiny.c
$(CC) $(CFLAGS) -c text_to_tiny.c
####
clean:
2021-11-12 00:58:20 +00:00
rm -f *~ *.o *.lst D2 HELLO text_to_tiny mA2E_2.s