dos33fsprogs/xmas_2019/Makefile

89 lines
1.9 KiB
Makefile
Raw Normal View History

2019-12-09 01:34:57 +00:00
include ../Makefile.inc
DOS33 = ../dos33fs-utils/dos33
B2D = ../bmp2dhr/b2d
PNG_TO_40x48D = ../gr-utils/png_to_40x48d
2019-12-20 19:36:47 +00:00
PNG_TO_40x96 = ../gr-utils/png_to_40x96
2019-12-09 01:34:57 +00:00
2019-12-16 05:52:07 +00:00
all: xmas2019.dsk sine_table
2019-12-09 01:34:57 +00:00
2019-12-21 02:07:08 +00:00
xmas2019.dsk: SNOW TREE XMAS2019 XMAS2019_LZ4 LOADER HELLO
2019-12-09 01:34:57 +00:00
cp empty.dsk xmas2019.dsk
2019-12-21 01:25:55 +00:00
$(DOS33) -y xmas2019.dsk SAVE A HELLO
2019-12-20 18:36:05 +00:00
$(DOS33) -y xmas2019.dsk BSAVE -a 0x4000 XMAS2019
2019-12-21 02:07:08 +00:00
$(DOS33) -y xmas2019.dsk BSAVE -a 0x2000 XMAS2019_LZ4
2019-12-09 01:34:57 +00:00
$(DOS33) -y xmas2019.dsk BSAVE -a 0x1000 SNOW
2019-12-14 05:12:31 +00:00
$(DOS33) -y xmas2019.dsk BSAVE -a 0x1000 TREE
2019-12-21 01:25:55 +00:00
$(DOS33) -y xmas2019.dsk BSAVE -a 0x800 LOADER
2019-12-09 01:34:57 +00:00
2019-12-14 05:12:31 +00:00
####
TREE: tree.o
ld65 -o TREE tree.o -C ../linker_scripts/apple2_1000.inc
tree.o: tree.s
#gr_copy.s random16.s fw.s hgr.s delay_a.s \
# vapor_lock.s gr_hline.s state_machine.s move_letters.s \
# background_final.inc
ca65 -o tree.o tree.s -l tree.lst
2019-12-09 01:34:57 +00:00
####
SNOW: snow.o
ld65 -o SNOW snow.o -C ../linker_scripts/apple2_1000.inc
snow.o: snow.s
#gr_copy.s random16.s fw.s hgr.s delay_a.s \
# vapor_lock.s gr_hline.s state_machine.s move_letters.s \
# background_final.inc
ca65 -o snow.o snow.s -l snow.lst
2019-12-19 03:21:30 +00:00
####
2019-12-21 01:25:55 +00:00
LOADER: loader.o
ld65 -o LOADER loader.o -C ../linker_scripts/apple2_800.inc
loader.o: loader.s
ca65 -o loader.o loader.s -l loader.lst
####
2019-12-19 03:21:30 +00:00
XMAS2019: xmas2019.o
2019-12-20 18:36:05 +00:00
ld65 -o XMAS2019 xmas2019.o -C ../linker_scripts/apple2_4000.inc
2019-12-19 03:21:30 +00:00
2019-12-19 03:34:11 +00:00
xmas2019.o: xmas2019.s \
2019-12-21 01:25:55 +00:00
delay_a.s vapor_lock.s message.inc gr_unrle.s sines.inc \
2019-12-29 05:55:00 +00:00
move_letters.s letters.s \
pt3_lib_mockingboard_setup.s pt3_lib_core.s pt3_lib_init.s
2019-12-19 03:21:30 +00:00
ca65 -o xmas2019.o xmas2019.s -l xmas2019.lst
2019-12-21 02:07:08 +00:00
####
XMAS2019_LZ4: XMAS2019
lz4 -f -16 XMAS2019 XMAS2019_LZ4
2019-12-19 03:21:30 +00:00
2019-12-20 19:36:47 +00:00
#####
2019-12-09 01:34:57 +00:00
2019-12-20 19:36:47 +00:00
message.inc: message.png
$(PNG_TO_40x96) asm message.png message > message.inc
2019-12-09 01:34:57 +00:00
####
2019-12-11 13:35:56 +00:00
HELLO: hello.bas
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
2019-12-09 01:34:57 +00:00
2019-12-16 05:52:07 +00:00
####
sine_table: sine_table.o
$(CC) -o sine_table sine_table.o -lm
sine_table.o: sine_table.c
$(CC) -c sine_table.c
####
2019-12-09 01:34:57 +00:00
clean:
2019-12-21 01:25:55 +00:00
rm -f *~ *.o *.lst XMAS2019 LOADER