dos33fsprogs/xmas_2018/Makefile

83 lines
1.9 KiB
Makefile
Raw Normal View History

2018-12-07 19:14:03 +00:00
include ../Makefile.inc
DOS33 = ../dos33fs-utils/dos33
B2D = ../bmp2dhr/b2d
PNG_TO_40x96 = ../gr-utils/png_to_40x96
PNG_TO_RLE = ../gr-utils/png2rle
all: xmas2018.dsk
xmas2018.dsk: HELLO XMAS2018 wreath.img.lz4 ball.img.lz4 merry.img.lz4 MUSIC.lz4
2018-12-10 22:08:39 +00:00
$(DOS33) -y xmas2018.dsk SAVE A HELLO
$(DOS33) -y xmas2018.dsk BSAVE -a 0x1000 XMAS2018
$(DOS33) -y xmas2018.dsk BSAVE -a 0xa000 wreath.img.lz4 WREATH.LZ4
$(DOS33) -y xmas2018.dsk BSAVE -a 0xa000 ball.img.lz4 BALL.LZ4
$(DOS33) -y xmas2018.dsk BSAVE -a 0xa000 merry.img.lz4 MERRY.LZ4
$(DOS33) -y xmas2018.dsk BSAVE -a 0x6000 MUSIC.lz4 MUSIC.LZ4
# $(DOS33) -y xmas2018.dsk BSAVE -a 0x2000 wreath.img WREATH.IMG
2018-12-17 19:50:40 +00:00
$(DOS33) -y xmas2018.dsk BSAVE -a 0x4000 ball.img BALL.IMG
2018-12-07 19:14:03 +00:00
####
XMAS2018: xmas2018.o
ld65 -o XMAS2018 xmas2018.o -C ../linker_scripts/apple2_1000.inc
2018-12-07 19:14:03 +00:00
xmas2018.o: xmas2018.s \
2018-12-07 19:14:03 +00:00
zp.inc hardware.inc \
vapor_lock.s delay_a.s wait_keypress.s gr_putsprite.s \
play_music.s mockingboard.s rts.s \
2018-12-16 03:47:11 +00:00
wreath.s wreath.img.lz4 sprites.inc \
ball.s ball.img.lz4 greets.raw.lz4 gr_scroll.s \
2018-12-12 20:38:30 +00:00
merry.s merry.img.lz4
ca65 -o xmas2018.o xmas2018.s -l xmas2018.lst
2018-12-07 19:14:03 +00:00
####
MUSIC.lz4: MUSIC
lz4 -16 -f MUSIC
MUSIC: music.o
ld65 -o MUSIC music.o -C ../linker_scripts/apple2_1000.inc
music.o: music.s
ca65 -o music.o music.s -l music.lst
2018-12-07 19:14:03 +00:00
####
2018-12-10 22:08:39 +00:00
HELLO: hello.bas
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
2018-12-12 20:38:30 +00:00
####
2018-12-10 22:08:39 +00:00
2018-12-12 20:38:30 +00:00
merry.img.lz4: merry.img
lz4 -f -16 merry.img
2018-12-07 19:14:03 +00:00
2018-12-12 20:38:30 +00:00
merry.img: merry_christmas.png
../hgr-utils/png2hgr merry_christmas.png > merry.img
2018-12-07 19:14:03 +00:00
2018-12-12 20:38:30 +00:00
####
2018-12-07 19:14:03 +00:00
2018-12-10 18:06:21 +00:00
wreath.img.lz4: wreath.img
lz4 -f -16 wreath.img
2018-12-07 19:14:03 +00:00
wreath.img: WREATHC.BIN
cp WREATHC.BIN wreath.img
WREATHC.BIN: wreath.bmp
$(B2D) wreath.bmp HGR -d
2018-12-12 05:22:16 +00:00
#
ball.img.lz4: ball.img
lz4 -f -16 ball.img
ball.img: BALLC.BIN
cp BALLC.BIN ball.img
BALLC.BIN: ball.bmp
$(B2D) ball.bmp HGR -d
2018-12-07 19:14:03 +00:00
clean:
2018-12-12 05:22:16 +00:00
rm -f *~ *.o *.lst XMAS2018 wreath.img ball.img BALLC.BIN WREATHC.BIN
2018-12-07 19:14:03 +00:00