mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-29 21:31:53 +00:00
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
include ../Makefile.inc
|
|
|
|
DOS33 = ../dos33fs-utils/dos33
|
|
PNG_TO_40x96 = ../gr-utils/png_to_40x96
|
|
PNG_TO_40x48D = ../gr-utils/png_to_40x48d
|
|
PNG2RLE = ../gr-utils/png2rle
|
|
B2D = ../bmp2dhr/b2d
|
|
|
|
all: mist.dsk
|
|
|
|
mist.dsk: HELLO MIST MIST_TITLE MIST_TITLE.LZ4
|
|
cp empty.dsk mist.dsk
|
|
$(DOS33) -y mist.dsk SAVE A HELLO
|
|
$(DOS33) -y mist.dsk BSAVE -a 0x1000 MIST
|
|
$(DOS33) -y mist.dsk BSAVE -a 0x1000 MIST_TITLE
|
|
$(DOS33) -y mist.dsk BSAVE -a 0xa000 MIST_TITLE.LZ4
|
|
|
|
###
|
|
|
|
HELLO: hello.bas
|
|
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
|
|
|
|
####
|
|
|
|
MIST_TITLE: mist_title.o
|
|
ld65 -o MIST_TITLE mist_title.o -C ../linker_scripts/apple2_1000.inc
|
|
|
|
mist_title.o: mist_title.s zp.inc hardware.inc
|
|
#gr_copy.s gr_unrle.s gr_unrle_large.s gr_copy_large.s
|
|
ca65 -o mist_title.o mist_title.s -l mist_title.lst
|
|
|
|
####
|
|
|
|
MIST: mist.o
|
|
ld65 -o MIST mist.o -C ../linker_scripts/apple2_1000.inc
|
|
|
|
mist.o: mist.s zp.inc hardware.inc \
|
|
mist_graphics.inc
|
|
#gr_copy.s gr_unrle.s gr_unrle_large.s gr_copy_large.s
|
|
ca65 -o mist.o mist.s -l mist.lst
|
|
|
|
####
|
|
|
|
mist_graphics.inc: \
|
|
m_link_book.png
|
|
$(PNG2RLE) asm m_link_book.png link_book_rle > mist_graphics.inc
|
|
|
|
####
|
|
|
|
MIST_TITLE.LZ4: MIST_TITLEC.BIN
|
|
lz4 -f -16 MIST_TITLEC.BIN
|
|
dd if=MIST_TITLEC.BIN.lz4 of=MIST_TITLE.LZ4 bs=1 skip=11
|
|
truncate MIST_TITLE.LZ4 -s -8
|
|
|
|
MIST_TITLEC.BIN: mist_title.bmp
|
|
$(B2D) mist_title.bmp HGR -d
|
|
|
|
####
|
|
|
|
clean:
|
|
rm -f *~ *.o *.lst MIST_TITLEC.BIN MIST MIST_TITLE
|