2019-01-13 06:10:44 +00:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
|
|
|
DOS33 = ../dos33fs-utils/dos33
|
|
|
|
PNG2RLE = ../gr-utils/png2rle
|
2019-02-25 17:28:42 +00:00
|
|
|
PNG2LZ4 = ../gr-utils/png2lz4
|
2019-01-13 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
all: ootw.dsk
|
|
|
|
|
2019-03-02 15:02:46 +00:00
|
|
|
ootw.dsk: HELLO LOADER INTRO OOTW OOTW_C2 #COMPRESS-TEST
|
2019-01-13 06:10:44 +00:00
|
|
|
$(DOS33) -y ootw.dsk SAVE A HELLO
|
2019-03-01 16:40:39 +00:00
|
|
|
$(DOS33) -y ootw.dsk BSAVE -a 0x1400 LOADER
|
2019-03-01 19:03:20 +00:00
|
|
|
$(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
|
2019-03-02 15:02:46 +00:00
|
|
|
# $(DOS33) -y ootw.dsk BSAVE -a 0x2000 COMPRESS-TEST
|
2019-01-28 02:37:09 +00:00
|
|
|
|
2019-01-13 06:10:44 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
OOTW: ootw.o
|
2019-03-01 19:03:20 +00:00
|
|
|
ld65 -o OOTW ootw.o -C ../linker_scripts/apple2_1700.inc
|
2019-01-13 06:10:44 +00:00
|
|
|
|
2019-01-14 17:44:26 +00:00
|
|
|
ootw.o: ootw.s \
|
2019-03-23 05:25:13 +00:00
|
|
|
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
|
|
|
|
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
|
2019-03-19 04:31:18 +00:00
|
|
|
gr_make_quake.s gr_overlay.s zp.inc \
|
2019-03-24 05:14:23 +00:00
|
|
|
keyboard.s sluggy.s beast.s \
|
2019-01-20 06:45:51 +00:00
|
|
|
ootw_rope.s earthquake.s ootw_mesa.s \
|
2019-01-24 21:55:53 +00:00
|
|
|
ootw_pool.s ootw_cavern.s physicist.s random16.s \
|
|
|
|
cutscene_slug.s cutscene_beast.s \
|
2019-03-08 15:58:43 +00:00
|
|
|
ootw_graphics/pool/ootw_pool.inc \
|
2019-03-08 17:19:55 +00:00
|
|
|
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 \
|
2019-03-16 20:00:42 +00:00
|
|
|
ootw_graphics/rope/ootw_swing.inc \
|
2019-03-19 16:06:36 +00:00
|
|
|
ootw_graphics/endl1/ootw_l1end.inc \
|
2019-03-10 05:29:54 +00:00
|
|
|
ootw_graphics/sprites/sprites_physicist.inc \
|
2019-03-23 19:07:13 +00:00
|
|
|
ootw_graphics/sprites/sprites_slugs.inc \
|
|
|
|
ootw_graphics/sprites/sprites_ootw.inc \
|
|
|
|
ootw_graphics/sprites/sprites_beast.inc
|
2019-01-13 06:10:44 +00:00
|
|
|
ca65 -o ootw.o ootw.s -l ootw.lst
|
2019-01-28 02:23:22 +00:00
|
|
|
|
2019-01-13 06:10:44 +00:00
|
|
|
####
|
|
|
|
|
2019-01-28 02:37:09 +00:00
|
|
|
OOTW_C2: ootw_c2.o
|
2019-03-01 19:03:20 +00:00
|
|
|
ld65 -o OOTW_C2 ootw_c2.o -C ../linker_scripts/apple2_1700.inc
|
2019-01-28 02:37:09 +00:00
|
|
|
|
|
|
|
ootw_c2.o: ootw_c2.s \
|
|
|
|
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
|
2019-03-23 17:34:12 +00:00
|
|
|
keyboard.s gr_run_sequence.s physicist.s \
|
2019-03-10 05:29:54 +00:00
|
|
|
ootw_graphics/sprites/sprites_physicist.inc \
|
2019-03-21 02:46:18 +00:00
|
|
|
ootw_c2_cage.s ootw_c2_jail.s ootw_c2_intro.s \
|
2019-03-20 18:41:31 +00:00
|
|
|
ootw_graphics/cage/ootw_c2_cage.inc \
|
|
|
|
ootw_graphics/l2intro/ootw_l2intro.inc
|
2019-01-28 02:37:09 +00:00
|
|
|
ca65 -o ootw_c2.o ootw_c2.s -l ootw_c2.lst
|
|
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2019-01-27 02:27:20 +00:00
|
|
|
INTRO: intro.o
|
2019-03-02 18:37:17 +00:00
|
|
|
ld65 -o INTRO intro.o -C ../linker_scripts/apple2_1700_9000.inc
|
2019-01-27 02:27:20 +00:00
|
|
|
|
|
|
|
intro.o: intro.s \
|
|
|
|
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
|
2019-03-20 18:41:31 +00:00
|
|
|
gr_overlay.s gr_run_sequence.s \
|
2019-03-02 15:02:46 +00:00
|
|
|
keyboard.s random16.s text_print.s zp.inc \
|
2019-02-03 05:55:45 +00:00
|
|
|
intro_graphics/01_building/intro_car.inc \
|
|
|
|
intro_graphics/01_building/intro_building_car.inc \
|
2019-02-03 17:06:45 +00:00
|
|
|
intro_graphics/01_building/intro_building.inc \
|
2019-02-05 04:26:55 +00:00
|
|
|
intro_graphics/02_outer_door/outer_door.inc \
|
2019-02-05 04:33:16 +00:00
|
|
|
intro_graphics/02_outer_door/feet.inc \
|
2019-02-06 05:32:54 +00:00
|
|
|
intro_graphics/03_elevator/intro_elevator.inc \
|
|
|
|
intro_graphics/03_elevator/intro_off_elevator.inc \
|
2019-02-07 03:01:59 +00:00
|
|
|
intro_graphics/03_elevator/intro_walking.inc \
|
2019-02-06 05:32:54 +00:00
|
|
|
intro_graphics/04_keypad/intro_scanner_door.inc \
|
2019-02-08 03:02:56 +00:00
|
|
|
intro_graphics/04_keypad/intro_approach.inc \
|
|
|
|
intro_graphics/04_keypad/intro_keypad_bg.inc \
|
2019-02-13 04:36:08 +00:00
|
|
|
intro_graphics/04_keypad/intro_hands.inc \
|
2019-02-13 04:43:31 +00:00
|
|
|
intro_graphics/04_keypad/intro_opening.inc \
|
2019-02-13 05:46:11 +00:00
|
|
|
intro_graphics/05_scanner/intro_scanner.inc \
|
2019-02-15 03:00:00 +00:00
|
|
|
intro_graphics/05_scanner/intro_scanning.inc \
|
|
|
|
intro_graphics/05_scanner/intro_ai_bg.inc \
|
2019-02-16 05:24:24 +00:00
|
|
|
intro_graphics/05_scanner/intro_ai.inc \
|
|
|
|
intro_graphics/06_console/intro_desktop.inc \
|
2019-02-16 18:54:09 +00:00
|
|
|
intro_graphics/06_console/intro_cursor.inc \
|
2019-02-18 06:01:10 +00:00
|
|
|
intro_graphics/06_console/intro_collider.inc \
|
2019-02-16 18:54:09 +00:00
|
|
|
intro_graphics/07_soda/intro_open_soda.inc \
|
2019-02-23 19:59:14 +00:00
|
|
|
intro_graphics/07_soda/intro_drinking.inc \
|
2019-02-24 06:38:01 +00:00
|
|
|
intro_graphics/08_lightning/lightning.inc \
|
|
|
|
intro_graphics/09_tunnel/intro_tunnel1.inc \
|
|
|
|
intro_graphics/09_tunnel/intro_tunnel2.inc \
|
2019-03-01 01:35:09 +00:00
|
|
|
intro_graphics/10_gone/intro_zappo.inc \
|
2019-03-02 15:55:32 +00:00
|
|
|
intro_graphics/10_gone/intro_gone.inc \
|
2019-03-02 16:19:03 +00:00
|
|
|
intro_data_01.lz4 \
|
2019-03-02 17:07:03 +00:00
|
|
|
intro_data_04.lz4 \
|
2019-03-02 18:37:17 +00:00
|
|
|
intro_data_06.lz4 \
|
|
|
|
intro_data_08.lz4 \
|
|
|
|
intro_data_09.lz4
|
2019-01-27 02:27:20 +00:00
|
|
|
ca65 -o intro.o intro.s -l intro.lst
|
2019-01-28 02:23:22 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2019-03-02 15:55:32 +00:00
|
|
|
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
|
2019-03-02 18:37:17 +00:00
|
|
|
ld65 -o intro_data_01 intro_data_01.o -C ../linker_scripts/apple2_9000.inc
|
2019-03-02 15:55:32 +00:00
|
|
|
|
|
|
|
intro_data_01.o: intro_data_01.s
|
|
|
|
ca65 -o intro_data_01.o intro_data_01.s -l intro_data_01.lst
|
|
|
|
|
2019-03-02 16:19:03 +00:00
|
|
|
|
|
|
|
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
|
2019-03-02 18:37:17 +00:00
|
|
|
ld65 -o intro_data_04 intro_data_04.o -C ../linker_scripts/apple2_9000.inc
|
2019-03-02 16:19:03 +00:00
|
|
|
|
|
|
|
intro_data_04.o: intro_data_04.s
|
|
|
|
ca65 -o intro_data_04.o intro_data_04.s -l intro_data_04.lst
|
|
|
|
|
|
|
|
|
2019-03-02 17:07:03 +00:00
|
|
|
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
|
2019-03-02 18:37:17 +00:00
|
|
|
ld65 -o intro_data_06 intro_data_06.o -C ../linker_scripts/apple2_9000.inc
|
2019-03-02 17:07:03 +00:00
|
|
|
|
|
|
|
intro_data_06.o: intro_data_06.s
|
|
|
|
ca65 -o intro_data_06.o intro_data_06.s -l intro_data_06.lst
|
|
|
|
|
|
|
|
|
2019-03-02 18:37:17 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-03-02 17:07:03 +00:00
|
|
|
|
2019-03-02 15:55:32 +00:00
|
|
|
####
|
|
|
|
|
2019-01-28 02:23:22 +00:00
|
|
|
LOADER: loader.o
|
2019-03-01 16:40:39 +00:00
|
|
|
ld65 -o LOADER loader.o -C ../linker_scripts/apple2_1400.inc
|
2019-01-28 02:23:22 +00:00
|
|
|
|
|
|
|
loader.o: loader.s
|
|
|
|
ca65 -o loader.o loader.s -l loader.lst
|
|
|
|
|
2019-01-27 02:27:20 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
|
2019-01-13 06:10:44 +00:00
|
|
|
HELLO: hello.bas
|
|
|
|
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
|
|
|
|
|
|
|
|
#####
|
|
|
|
|
2019-02-25 17:28:42 +00:00
|
|
|
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
|
|
|
|
|
2019-02-26 02:01:06 +00:00
|
|
|
compress_test.o: compress_test.s lz4_decode.s compress_test.inc
|
2019-02-25 17:28:42 +00:00
|
|
|
ca65 -o compress_test.o compress_test.s -l compress_test.lst
|
|
|
|
|
2019-03-02 15:02:46 +00:00
|
|
|
|
2019-03-02 03:01:46 +00:00
|
|
|
#####
|
|
|
|
|
2019-01-13 06:10:44 +00:00
|
|
|
clean:
|
2019-03-03 16:36:51 +00:00
|
|
|
rm -f *~ *.o *.lst *.lz4 HELLO OOTW OOTW_C2 INTRO LOADER \
|
2019-03-08 17:19:55 +00:00
|
|
|
COMPRESS-TEST \
|
2019-03-03 16:36:51 +00:00
|
|
|
intro_data_01 intro_data_04 intro_data_06 \
|
|
|
|
intro_data_08 intro_data_09
|