dos33fsprogs/games/ootw/Makefile

361 lines
11 KiB
Makefile
Raw Normal View History

2021-01-06 02:03:44 +00:00
include ../../Makefile.inc
2019-01-13 06:10:44 +00:00
2021-01-06 02:03:44 +00:00
DOS33 = ../../utils/dos33fs-utils/dos33
PNG2RLE = ../../utils/gr-utils/png2rle
PNG2LZ4 = ../../utils/gr-utils/png2lz4
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
2019-01-13 06:10:44 +00:00
all: ootw.dsk ootw_side2.dsk ootw_side3.dsk
2019-01-13 06:10:44 +00:00
2021-03-23 03:45:40 +00:00
ootw.dsk: HELLO TITLE ./intro/INTRO ./ootw_c1/OOTW_C1 OOTW_C2 OOTW_C3 OOTW_C4 OOTW_C5
cp empty.dsk ootw.dsk
2019-01-13 06:10:44 +00:00
$(DOS33) -y ootw.dsk SAVE A HELLO
2020-01-26 17:55:29 +00:00
$(DOS33) -y ootw.dsk BSAVE -a 0xd00 TITLE
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./intro/INTRO INTRO
2021-03-23 03:45:40 +00:00
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 ./ootw_c1/OOTW_C1
2019-03-01 19:03:20 +00:00
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 OOTW_C2
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 OOTW_C3
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 OOTW_C4
2019-08-16 13:58:56 +00:00
$(DOS33) -y ootw.dsk BSAVE -a 0x1700 OOTW_C5
# $(DOS33) -y ootw.dsk BSAVE -a 0x1700 AUDIO_TEST
# $(DOS33) -y ootw.dsk BSAVE -a 0x2000 COMPRESS-TEST
2019-01-28 02:37:09 +00:00
ootw_side2.dsk: HELLO TITLE \
OOTW_C6 OOTW_C7 OOTW_C8 OOTW_C9 OOTW_C10
2019-08-21 04:36:27 +00:00
cp empty.dsk ootw_side2.dsk
2020-01-26 06:30:49 +00:00
$(DOS33) -y ootw_side2.dsk SAVE A HELLO HELLO
2020-01-26 17:55:29 +00:00
$(DOS33) -y ootw_side2.dsk BSAVE -a 0xd00 TITLE
2020-01-27 18:50:11 +00:00
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 OOTW_C6
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 OOTW_C7
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 OOTW_C8
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 OOTW_C9
$(DOS33) -y ootw_side2.dsk BSAVE -a 0x1700 OOTW_C10
ootw_side3.dsk: HELLO TITLE ENDING \
OOTW_C11 OOTW_C12 OOTW_C13 OOTW_C14 OOTW_C15
cp empty.dsk ootw_side3.dsk
$(DOS33) -y ootw_side3.dsk SAVE A HELLO HELLO
$(DOS33) -y ootw_side3.dsk BSAVE -a 0xd00 TITLE
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 OOTW_C11
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 OOTW_C12
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 OOTW_C13
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 OOTW_C14
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 OOTW_C15
$(DOS33) -y ootw_side3.dsk BSAVE -a 0x1700 ENDING
2019-08-21 04:36:27 +00:00
2019-01-13 06:10:44 +00:00
####
2019-01-28 02:37:09 +00:00
OOTW_C2: ootw_c2.o
2021-01-06 02:03:44 +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 \
2019-07-12 16:52:39 +00:00
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_hlin.s gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
2019-07-20 16:37:54 +00:00
keyboard.s gr_run_sequence.s audio.s \
alien_laser.s \
2019-07-20 16:37:54 +00:00
physicist.s alien.s friend.s \
collision.s door.s laser.s shield.s blast.s gun.s \
2019-07-15 16:03:54 +00:00
ootw_c2_miners.s \
2019-07-29 18:05:53 +00:00
ootw_graphics/sprites/physicist.inc \
ootw_graphics/sprites/alien.inc \
ootw_graphics/sprites/friend.inc \
2019-07-09 15:23:48 +00:00
ootw_c2_cage.s ootw_c2_jail.s ootw_c2_elevator.s ootw_c2_intro.s \
2019-07-19 01:01:54 +00:00
ootw_graphics/l2cage/ootw_c2_cage.inc \
ootw_graphics/l2jail/ootw_c2_jail.inc \
2019-07-20 01:30:23 +00:00
ootw_graphics/l2intro/ootw_l2intro.inc \
ootw_graphics/l2laser/ootw_c2_laser.inc
2019-01-28 02:37:09 +00:00
ca65 -o ootw_c2.o ootw_c2.s -l ootw_c2.lst
####
OOTW_C3: ootw_c3.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C3 ootw_c3.o -C ../../linker_scripts/apple2_1700.inc
ootw_c3.o: ootw_c3.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
2019-08-04 03:57:24 +00:00
keyboard.s \
ootw_c3_vent.s \
ootw_graphics/sprites/physicist_rolling.inc \
ootw_graphics/l3vent/ootw_c3_vent.inc
ca65 -o ootw_c3.o ootw_c3.s -l ootw_c3.lst
2019-01-28 02:37:09 +00:00
###
OOTW_C4: ootw_c4.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C4 ootw_c4.o -C ../../linker_scripts/apple2_1700.inc
ootw_c4.o: ootw_c4.s \
gr_copy.s gr_twoscreen_scroll.s gr_fast_clear.s gr_pageflip.s \
gr_unrle.s gr_hlin.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s alien.s alien_laser.s \
ootw_c4_city.s ootw_c4_action.s \
2019-08-14 19:38:36 +00:00
door.s laser.s shield.s blast.s gun.s charger.s \
ootw_graphics/sprites/physicist.inc \
ootw_graphics/l4city/ootw_c4_city.inc
ca65 -o ootw_c4.o ootw_c4.s -l ootw_c4.lst
2019-08-09 02:02:16 +00:00
###
OOTW_C5: ootw_c5.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C5 ootw_c5.o -C ../../linker_scripts/apple2_1700.inc
2019-08-09 02:02:16 +00:00
ootw_c5.o: ootw_c5.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s ootw_c5_cave.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2019-08-09 02:02:16 +00:00
ootw_graphics/sprites/physicist.inc \
ootw_graphics/l5cave/ootw_c5_cave.inc
ca65 -o ootw_c5.o ootw_c5.s -l ootw_c5.lst
2020-01-27 18:50:11 +00:00
###
OOTW_C6: ootw_c6.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C6 ootw_c6.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c6.o: ootw_c6.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
2020-01-27 21:10:35 +00:00
ootw_graphics/l6cave/ootw_c6_cave.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c6.o ootw_c6.s -l ootw_c6.lst
###
OOTW_C7: ootw_c7.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C7 ootw_c7.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c7.o: ootw_c7.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
2020-01-28 18:19:42 +00:00
ootw_graphics/l7cave/ootw_c7_cave.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c7.o ootw_c7.s -l ootw_c7.lst
###
OOTW_C8: ootw_c8.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C8 ootw_c8.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c8.o: ootw_c8.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
2020-01-28 20:37:06 +00:00
ootw_graphics/l8crawl/ootw_c8_crawl.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c8.o ootw_c8.s -l ootw_c8.lst
###
OOTW_C9: ootw_c9.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C9 ootw_c9.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c9.o: ootw_c9.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
ootw_graphics/l9swim/ootw_c9_swim.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c9.o ootw_c9.s -l ootw_c9.lst
###
OOTW_C10: ootw_c10.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C10 ootw_c10.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c10.o: ootw_c10.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
ootw_graphics/l9swim/ootw_c9_swim.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c10.o ootw_c10.s -l ootw_c10.lst
###
OOTW_C11: ootw_c11.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C11 ootw_c11.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c11.o: ootw_c11.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
2020-01-27 21:31:29 +00:00
ootw_graphics/l11above/ootw_c11_room.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c11.o ootw_c11.s -l ootw_c11.lst
###
OOTW_C12: ootw_c12.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C12 ootw_c12.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c12.o: ootw_c12.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
2020-01-27 21:10:35 +00:00
ootw_graphics/l12room/ootw_c12_room.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c12.o ootw_c12.s -l ootw_c12.lst
###
OOTW_C13: ootw_c13.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C13 ootw_c13.o -C ../../linker_scripts/apple2_1700.inc
2020-01-27 18:50:11 +00:00
ootw_c13.o: ootw_c13.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-27 18:50:11 +00:00
ootw_graphics/sprites/physicist.inc \
2020-01-27 21:10:35 +00:00
ootw_graphics/l13room/ootw_c13_room.inc
2020-01-27 18:50:11 +00:00
ca65 -o ootw_c13.o ootw_c13.s -l ootw_c13.lst
2020-01-26 06:30:49 +00:00
###
OOTW_C14: ootw_c14.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C14 ootw_c14.o -C ../../linker_scripts/apple2_1700.inc
ootw_c14.o: ootw_c14.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
ootw_graphics/sprites/physicist.inc \
ootw_graphics/l14arena/ootw_c14_arena.inc
ca65 -o ootw_c14.o ootw_c14.s -l ootw_c14.lst
###
2020-01-26 06:30:49 +00:00
OOTW_C15: ootw_c15.o
2021-01-06 02:03:44 +00:00
ld65 -o OOTW_C15 ootw_c15.o -C ../../linker_scripts/apple2_1700.inc
2020-01-26 06:30:49 +00:00
ootw_c15.o: ootw_c15.s \
gr_copy.s gr_copy_offset.s gr_fast_clear.s gr_pageflip.s gr_unrle.s \
gr_putsprite.s gr_putsprite_flipped.s gr_putsprite_crop.s \
2020-02-10 06:43:27 +00:00
gr_trapezoid.s \
2020-01-26 06:30:49 +00:00
keyboard.s gr_run_sequence.s physicist.s \
collision.s door.s laser.s gun.s blast.s shield.s \
2020-01-26 06:30:49 +00:00
ootw_graphics/sprites/physicist.inc \
2020-02-07 06:13:49 +00:00
ootw_graphics/l15final/ootw_c15_bath.inc \
2020-02-14 05:37:35 +00:00
ootw_graphics/l15final/ootw_c15_walk.inc \
2020-02-23 06:14:02 +00:00
ootw_graphics/l15final/ootw_c15_final.inc \
2020-02-24 05:19:07 +00:00
ootw_graphics/l15final/ootw_c15_walkway.inc \
2020-02-27 21:26:42 +00:00
ootw_graphics/l15final/ootw_c15_bridge.inc \
ootw_graphics/l15final/ootw_c15_fall.inc
2020-01-26 06:30:49 +00:00
ca65 -o ootw_c15.o ootw_c15.s -l ootw_c15.lst
2019-01-28 02:37:09 +00:00
####
2019-07-15 05:24:29 +00:00
AUDIO_TEST: audio.o
2021-01-06 02:03:44 +00:00
ld65 -o AUDIO_TEST audio.o -C ../../linker_scripts/apple2_1700.inc
2019-07-15 05:24:29 +00:00
audio.o: audio.s
ca65 -o audio.o audio.s -l audio.lst
####
intro/INTRO:
cd intro && make
2021-03-23 03:45:40 +00:00
ootw_c1/OOTW_C1:
cd ootw_c1 && make
2019-03-02 15:55:32 +00:00
####
LOADER: loader.o
2021-01-06 02:03:44 +00:00
ld65 -o LOADER loader.o -C ../../linker_scripts/apple2_1400.inc
loader.o: loader.s
ca65 -o loader.o loader.s -l loader.lst
2019-01-27 02:27:20 +00:00
####
2019-08-21 04:36:27 +00:00
LOADER2: loader2.o
2021-01-06 02:03:44 +00:00
ld65 -o LOADER2 loader2.o -C ../../linker_scripts/apple2_1400.inc
2019-08-21 04:36:27 +00:00
loader2.o: loader2.s
ca65 -o loader2.o loader2.s -l loader2.lst
2020-01-26 06:30:49 +00:00
####
TITLE: title.o
2021-01-06 02:03:44 +00:00
ld65 -o TITLE title.o -C ../../linker_scripts/apple2_d00.inc
2020-01-26 06:30:49 +00:00
title.o: title.s loader.s
2020-01-26 06:30:49 +00:00
ca65 -o title.o title.s -l title.lst
2019-08-21 04:36:27 +00:00
####
2019-01-27 02:27:20 +00:00
2019-01-13 06:10:44 +00:00
HELLO: hello.bas
2021-01-06 02:03:44 +00:00
$(TOKENIZE) < hello.bas > HELLO
2019-01-13 06:10:44 +00:00
2019-08-21 04:36:27 +00:00
####
HELLO2: hello2.bas
2021-01-06 02:03:44 +00:00
$(TOKENIZE) < hello2.bas > HELLO2
2019-08-21 04:36:27 +00:00
#####
ENDING: ending.o
2021-01-06 02:03:44 +00:00
ld65 -o ENDING ending.o -C ../../linker_scripts/apple2_1700.inc
2019-08-21 04:36:27 +00:00
ending.o: ending.s \
pt3_lib_core.s pt3_lib_init.s pt3_lib_mockingboard_detect.s \
pt3_lib_mockingboard_setup.s pt3_lib_irq_handler.s interrupt_handler.s \
2019-08-21 04:36:27 +00:00
ootw_graphics/l15final/ootw_c15_final.inc \
ootw_graphics/l16end/ootw_c16_end.inc \
ootw_audio/ootw_outro.pt3
2019-08-21 04:36:27 +00:00
ca65 -o ending.o ending.s -l ending.lst
2019-01-13 06:10:44 +00:00
#####
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
2021-01-06 02:03:44 +00:00
ld65 -o COMPRESS-TEST compress_test.o -C ../../linker_scripts/apple2_2000.inc
2019-02-25 17:28:42 +00:00
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
#####
zip: ootw.dsk ootw_side2.dsk side3.dsk
zip ootw.zip ootw.dsk ootw_side2.dsk ootw_side3.dsk
2020-02-07 06:13:49 +00:00
#####
2019-01-13 06:10:44 +00:00
clean:
2020-01-26 17:55:29 +00:00
rm -f *~ *.o *.lst *.lz4 HELLO TITLE \
OOTW_C1 OOTW_C2 OOTW_C3 OOTW_C4 INTRO LOADER \
2019-07-15 05:24:29 +00:00
COMPRESS-TEST AUDIO_TEST \
intro_data_01 intro_data_04 intro_data_06 \
intro_data_08 intro_data_09