mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-29 15:29:34 +00:00
261 lines
6.5 KiB
Makefile
261 lines
6.5 KiB
Makefile
include ../Makefile.inc
|
|
|
|
DOS33 = ../dos33fs-utils/dos33
|
|
PNG2RLE = ../gr-utils/png2rle
|
|
PNG2LZ4 = ../gr-utils/png2lz4
|
|
|
|
|
|
all: ootw.dsk
|
|
|
|
#later_data
|
|
#later_data: later_data.o
|
|
# ld65 -o later_data later_data.o -C ../linker_scripts/apple2_2000.inc
|
|
#
|
|
#later_data.o: later_data.s
|
|
# ca65 -o later_data.o later_data.s -l later_data.lst
|
|
|
|
ootw.dsk: HELLO LOADER INTRO OOTW OOTW_C2 #COMPRESS-TEST
|
|
$(DOS33) -y ootw.dsk SAVE A HELLO
|
|
$(DOS33) -y ootw.dsk BSAVE -a 0x1400 LOADER
|
|
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 INTRO
|
|
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 OOTW
|
|
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 OOTW_C2
|
|
# $(DOS33) -y ootw.dsk BSAVE -a 0x2000 COMPRESS-TEST
|
|
|
|
|
|
####
|
|
|
|
OOTW: ootw.o
|
|
ld65 -o OOTW ootw.o -C ../linker_scripts/apple2_1700.inc
|
|
|
|
ootw.o: ootw.s \
|
|
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
|
|
gr_make_quake.s \
|
|
keyboard.s sluggy.s \
|
|
ootw_rope.s earthquake.s ootw_mesa.s \
|
|
ootw_pool.s ootw_cavern.s physicist.s random16.s \
|
|
cutscene_slug.s cutscene_beast.s \
|
|
ootw_pool.inc \
|
|
ootw_cavern.inc ootw_cavern2.inc ootw_cavern3.inc ootw_underwater.inc \
|
|
ootw_rope.inc \
|
|
sprites_physicist.inc sprites_slugs.inc \
|
|
sprites_ootw.inc sprites_beast.inc
|
|
ca65 -o ootw.o ootw.s -l ootw.lst
|
|
|
|
####
|
|
|
|
OOTW_C2: ootw_c2.o
|
|
ld65 -o OOTW_C2 ootw_c2.o -C ../linker_scripts/apple2_1700.inc
|
|
|
|
ootw_c2.o: ootw_c2.s \
|
|
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
|
|
keyboard.s sluggy.s \
|
|
sprites_physicist.inc \
|
|
ootw_c2_cage.s \
|
|
ootw_c2_cage.inc
|
|
ca65 -o ootw_c2.o ootw_c2.s -l ootw_c2.lst
|
|
|
|
|
|
####
|
|
|
|
INTRO: intro.o
|
|
ld65 -o INTRO intro.o -C ../linker_scripts/apple2_1700.inc
|
|
|
|
intro.o: intro.s \
|
|
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
|
|
gr_overlay.s intro_data.s \
|
|
keyboard.s random16.s text_print.s zp.inc \
|
|
intro_graphics/01_building/intro_car.inc \
|
|
intro_graphics/01_building/intro_building_car.inc \
|
|
intro_graphics/01_building/intro_building.inc \
|
|
intro_graphics/02_outer_door/outer_door.inc \
|
|
intro_graphics/02_outer_door/feet.inc \
|
|
intro_graphics/03_elevator/intro_elevator.inc \
|
|
intro_graphics/03_elevator/intro_off_elevator.inc \
|
|
intro_graphics/03_elevator/intro_walking.inc \
|
|
intro_graphics/04_keypad/intro_scanner_door.inc \
|
|
intro_graphics/04_keypad/intro_approach.inc \
|
|
intro_graphics/04_keypad/intro_keypad_bg.inc \
|
|
intro_graphics/04_keypad/intro_hands.inc \
|
|
intro_graphics/04_keypad/intro_opening.inc \
|
|
intro_graphics/05_scanner/intro_scanner.inc \
|
|
intro_graphics/05_scanner/intro_scanning.inc \
|
|
intro_graphics/05_scanner/intro_ai_bg.inc \
|
|
intro_graphics/05_scanner/intro_ai.inc \
|
|
intro_graphics/06_console/intro_desktop.inc \
|
|
intro_graphics/06_console/intro_cursor.inc \
|
|
intro_graphics/06_console/intro_collider.inc \
|
|
intro_graphics/07_soda/intro_open_soda.inc \
|
|
intro_graphics/07_soda/intro_drinking.inc \
|
|
intro_graphics/08_lightning/lightning.inc \
|
|
intro_graphics/09_tunnel/intro_tunnel1.inc \
|
|
intro_graphics/09_tunnel/intro_tunnel2.inc \
|
|
intro_graphics/10_gone/intro_zappo.inc \
|
|
intro_graphics/10_gone/intro_gone.inc \
|
|
intro_data_01.lz4 \
|
|
intro_data_04.lz4
|
|
ca65 -o intro.o intro.s -l intro.lst
|
|
|
|
####
|
|
|
|
intro_data_01.lz4: intro_data_01
|
|
lz4 -f -16 intro_data_01
|
|
truncate -s-8 intro_data_01.lz4
|
|
|
|
intro_data_01: intro_data_01.o
|
|
ld65 -o intro_data_01 intro_data_01.o -C ../linker_scripts/apple2_9000.inc
|
|
|
|
intro_data_01.o: intro_data_01.s
|
|
ca65 -o intro_data_01.o intro_data_01.s -l intro_data_01.lst
|
|
|
|
|
|
intro_data_04.lz4: intro_data_04
|
|
lz4 -f -16 intro_data_04
|
|
truncate -s-8 intro_data_04.lz4
|
|
|
|
intro_data_04: intro_data_04.o
|
|
ld65 -o intro_data_04 intro_data_04.o -C ../linker_scripts/apple2_9000.inc
|
|
|
|
intro_data_04.o: intro_data_04.s
|
|
ca65 -o intro_data_04.o intro_data_04.s -l intro_data_04.lst
|
|
|
|
|
|
####
|
|
|
|
LOADER: loader.o
|
|
ld65 -o LOADER loader.o -C ../linker_scripts/apple2_1400.inc
|
|
|
|
loader.o: loader.s
|
|
ca65 -o loader.o loader.s -l loader.lst
|
|
|
|
####
|
|
|
|
|
|
HELLO: hello.bas
|
|
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
|
|
|
|
|
|
#####
|
|
|
|
ootw_pool.inc: $(PNG2RLE) another.png
|
|
$(PNG2RLE) asm another.png pool_rle > ootw_pool.inc
|
|
|
|
ootw_cavern.inc: $(PNG2RLE) another_cave.png
|
|
$(PNG2RLE) asm another_cave.png cavern_rle > ootw_cavern.inc
|
|
|
|
ootw_cavern2.inc: $(PNG2RLE) another_cave2.png
|
|
$(PNG2RLE) asm another_cave2.png cavern2_rle > ootw_cavern2.inc
|
|
|
|
ootw_cavern3.inc: $(PNG2RLE) another_cave3.png
|
|
$(PNG2RLE) asm another_cave3.png cavern3_rle > ootw_cavern3.inc
|
|
|
|
ootw_rope.inc: $(PNG2RLE) another_rope.png
|
|
$(PNG2RLE) asm another_rope.png rope_rle > ootw_rope.inc
|
|
|
|
#####
|
|
|
|
ootw_c2_cage.inc: $(PNG2RLE) ootw_c2_cage.png
|
|
$(PNG2RLE) asm ootw_c2_cage.png cage_rle > ootw_c2_cage.inc
|
|
|
|
#####
|
|
|
|
compress_test.inc: intro_graphics/07_soda/drinking01.png
|
|
$(PNG2RLE) asm intro_graphics/07_soda/drinking01.png test_rle > compress_test.inc
|
|
$(PNG2LZ4) asm intro_graphics/07_soda/drinking01.png test_lz4 >> compress_test.inc
|
|
|
|
COMPRESS-TEST: compress_test.o
|
|
ld65 -o COMPRESS-TEST compress_test.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
compress_test.o: compress_test.s lz4_decode.s compress_test.inc
|
|
ca65 -o compress_test.o compress_test.s -l compress_test.lst
|
|
|
|
#####
|
|
|
|
rle_size: rle_size.o
|
|
ld65 -o rle_size rle_size.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
rle_size.o: rle_size.s
|
|
ca65 -o rle_size.o rle_size.s
|
|
|
|
rle_size_all: rle_size_all.o
|
|
ld65 -o rle_size_all rle_size_all.o -C ../linker_scripts/apple2_1700.inc
|
|
|
|
rle_size_all.o: rle_size_all.s
|
|
ca65 -o rle_size_all.o rle_size_all.s
|
|
|
|
|
|
lz4_size: lz4_size.o
|
|
ld65 -o lz4_size lz4_size.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
lz4_size.o: lz4_size.s
|
|
ca65 -o lz4_size.o lz4_size.s
|
|
|
|
#####
|
|
|
|
id1: id1.o
|
|
ld65 -o id1 id1.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id1.o: id1.s
|
|
ca65 -o id1.o id1.s
|
|
|
|
id2: id2.o
|
|
ld65 -o id2 id2.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id2.o: id2.s
|
|
ca65 -o id2.o id2.s
|
|
|
|
id3: id3.o
|
|
ld65 -o id3 id3.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id3.o: id3.s
|
|
ca65 -o id3.o id3.s
|
|
|
|
id4: id4.o
|
|
ld65 -o id4 id4.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id4.o: id4.s
|
|
ca65 -o id4.o id4.s
|
|
|
|
id5: id5.o
|
|
ld65 -o id5 id5.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id5.o: id5.s
|
|
ca65 -o id5.o id5.s
|
|
|
|
id6: id6.o
|
|
ld65 -o id6 id6.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id6.o: id6.s
|
|
ca65 -o id6.o id6.s
|
|
|
|
id7: id7.o
|
|
ld65 -o id7 id7.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id7.o: id7.s
|
|
ca65 -o id7.o id7.s
|
|
|
|
id8: id8.o
|
|
ld65 -o id8 id8.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id8.o: id8.s
|
|
ca65 -o id8.o id8.s
|
|
|
|
id9: id9.o
|
|
ld65 -o id9 id9.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id9.o: id9.s
|
|
ca65 -o id9.o id9.s
|
|
|
|
id10: id10.o
|
|
ld65 -o id10 id10.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
id10.o: id10.s
|
|
ca65 -o id10.o id10.s
|
|
|
|
|
|
|
|
#####
|
|
|
|
clean:
|
|
rm -f *~ *.o *.lst HELLO OOTW OOTW_C2 INTRO LOADER lz4_size rle_size
|