mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-08-19 14:29:25 +00:00
195 lines
5.6 KiB
Makefile
195 lines
5.6 KiB
Makefile
include ../Makefile.inc
|
|
|
|
DOS33 = ../dos33fs-utils/dos33
|
|
PNG2RLE = ../gr-utils/png2rle
|
|
PNG2LZ4 = ../gr-utils/png2lz4
|
|
|
|
|
|
all: ootw.dsk
|
|
|
|
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 gr_overlay.s zp.inc \
|
|
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_graphics/pool/ootw_pool.inc \
|
|
ootw_graphics/underwater/ootw_underwater.inc \
|
|
ootw_graphics/caves/ootw_cavern.inc \
|
|
ootw_graphics/caves/ootw_cavern2.inc \
|
|
ootw_graphics/caves/ootw_cavern3.inc \
|
|
ootw_graphics/rope/ootw_rope.inc \
|
|
ootw_graphics/rope/ootw_swing.inc \
|
|
ootw_graphics/endl1/ootw_l1end.inc \
|
|
ootw_graphics/sprites/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 gr_run_sequence.s \
|
|
ootw_graphics/sprites/sprites_physicist.inc \
|
|
ootw_c2_cage.s ootw_c2_intro.s \
|
|
ootw_graphics/cage/ootw_c2_cage.inc \
|
|
ootw_graphics/l2intro/ootw_l2intro.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_9000.inc
|
|
|
|
intro.o: intro.s \
|
|
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
|
|
gr_overlay.s gr_run_sequence.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 \
|
|
intro_data_06.lz4 \
|
|
intro_data_08.lz4 \
|
|
intro_data_09.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
|
|
|
|
|
|
intro_data_06.lz4: intro_data_06
|
|
lz4 -f -16 intro_data_06
|
|
truncate -s-8 intro_data_06.lz4
|
|
|
|
intro_data_06: intro_data_06.o
|
|
ld65 -o intro_data_06 intro_data_06.o -C ../linker_scripts/apple2_9000.inc
|
|
|
|
intro_data_06.o: intro_data_06.s
|
|
ca65 -o intro_data_06.o intro_data_06.s -l intro_data_06.lst
|
|
|
|
|
|
intro_data_08.lz4: intro_data_08
|
|
lz4 -f -16 intro_data_08
|
|
truncate -s-8 intro_data_08.lz4
|
|
|
|
intro_data_08: intro_data_08.o
|
|
ld65 -o intro_data_08 intro_data_08.o -C ../linker_scripts/apple2_9000.inc
|
|
|
|
intro_data_08.o: intro_data_08.s
|
|
ca65 -o intro_data_08.o intro_data_08.s -l intro_data_08.lst
|
|
|
|
|
|
intro_data_09.lz4: intro_data_09
|
|
lz4 -f -16 intro_data_09
|
|
truncate -s-8 intro_data_09.lz4
|
|
|
|
intro_data_09: intro_data_09.o
|
|
ld65 -o intro_data_09 intro_data_09.o -C ../linker_scripts/apple2_9000.inc
|
|
|
|
intro_data_09.o: intro_data_09.s
|
|
ca65 -o intro_data_09.o intro_data_09.s -l intro_data_09.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
|
|
|
|
#####
|
|
|
|
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
|
|
|
|
|
|
#####
|
|
|
|
clean:
|
|
rm -f *~ *.o *.lst *.lz4 HELLO OOTW OOTW_C2 INTRO LOADER \
|
|
COMPRESS-TEST \
|
|
intro_data_01 intro_data_04 intro_data_06 \
|
|
intro_data_08 intro_data_09
|