dos33fsprogs/games/peasant/Makefile

417 lines
12 KiB
Makefile
Raw Normal View History

2021-08-09 05:21:58 +00:00
include ../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
DOS33_RAW = ../../utils/dos33fs-utils/dos33_raw
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
LINKER_SCRIPTS = ../../linker_scripts
EMPTY_DISK = ../../empty_disk
2021-09-07 04:55:37 +00:00
all: peasant.dsk peasant_side2.dsk
2021-08-09 05:21:58 +00:00
peasant.dsk: QBOOT QLOAD VID_LOGO TITLE INTRO \
PEASANT1 PEASANT2 PEASANT3 PEASANT4 ENDING TROGDOR \
SAVE1 SAVE2 SAVE3 MUSIC
2021-08-09 05:21:58 +00:00
cp $(EMPTY_DISK)/empty.dsk peasant.dsk
$(DOS33_RAW) peasant.dsk 0 0 QBOOT 0 1
$(DOS33_RAW) peasant.dsk 0 2 QBOOT 1 1
$(DOS33_RAW) peasant.dsk 0 4 QBOOT 2 1
$(DOS33_RAW) peasant.dsk 0 11 SAVE1 0 1
$(DOS33_RAW) peasant.dsk 0 12 SAVE2 0 1
$(DOS33_RAW) peasant.dsk 0 13 SAVE3 0 1
$(DOS33_RAW) peasant.dsk 1 0 QLOAD 0 0
$(DOS33_RAW) peasant.dsk 3 0 MUSIC 0 0
$(DOS33_RAW) peasant.dsk 4 0 VID_LOGO 0 0
$(DOS33_RAW) peasant.dsk 6 0 TITLE 0 0
$(DOS33_RAW) peasant.dsk 9 0 INTRO 0 0
$(DOS33_RAW) peasant.dsk 13 0 PEASANT1 0 0
$(DOS33_RAW) peasant.dsk 18 0 PEASANT2 0 0
$(DOS33_RAW) peasant.dsk 24 0 PEASANT3 0 0
$(DOS33_RAW) peasant.dsk 30 0 PEASANT4 0 0
2021-08-09 15:49:01 +00:00
peasant_side2.dsk: WBOOT2 COPY_CHECK TROGDOR ENDING CLIFF GAME_OVER
2021-09-07 04:55:37 +00:00
cp $(EMPTY_DISK)/empty.dsk peasant_side2.dsk
$(DOS33_RAW) peasant_side2.dsk 0 0 WBOOT2 0 1
$(DOS33_RAW) peasant_side2.dsk 1 0 COPY_CHECK 0 0
$(DOS33_RAW) peasant_side2.dsk 3 0 GAME_OVER 0 0
2021-09-11 03:18:21 +00:00
$(DOS33_RAW) peasant_side2.dsk 19 0 TROGDOR 0 0
$(DOS33_RAW) peasant_side2.dsk 24 0 ENDING 0 0
2021-10-04 02:28:27 +00:00
$(DOS33_RAW) peasant_side2.dsk 29 0 CLIFF 0 0
2021-09-07 04:55:37 +00:00
2021-08-09 05:21:58 +00:00
###
QBOOT: qboot_sector.o
ld65 -o QBOOT qboot_sector.o -C $(LINKER_SCRIPTS)/apple2_800.inc
qboot_sector.o: qboot_sector.s qboot_stage2.s
ca65 -o qboot_sector.o qboot_sector.s -l qboot_sector.lst
###
QLOAD: qload.o
ld65 -o QLOAD qload.o -C $(LINKER_SCRIPTS)/apple2_b00.inc
qload.o: qload.s qboot.inc \
decompress_fast_v2.s \
hgr_font.s \
draw_box.s \
hgr_rectangle.s \
hgr_1x28_sprite_mask.s \
hgr_1x5_sprite.s \
hgr_partial_save.s \
hgr_input.s \
hgr_tables.s \
hgr_text_box.s \
clear_bottom.s \
hgr_hgr2.s \
gr_offsets.s \
qkumba_popwr.s
ca65 -o qload.o qload.s -l qload.lst
2021-09-19 04:12:44 +00:00
###
WBOOT2: wrong_boot2.o
ld65 -o WBOOT2 wrong_boot2.o -C ../../linker_scripts/apple2_800.inc
wrong_boot2.o: wrong_boot2.s
ca65 -o wrong_boot2.o wrong_boot2.s -l wrong_boot2.lst
###
generate_common: generate_common.o
$(CC) $(LFLAGS) -o generate_common generate_common.o
2021-09-19 04:12:44 +00:00
generate_common.o: generate_common.c
$(CC) $(CFLAGS) -c generate_common.c
####
qload.inc: generate_common QLOAD
./generate_common -a 0xb00 -s load_file qload.lst > qload.inc
./generate_common -a 0xb00 -s sector_write qload.lst >> qload.inc
./generate_common -a 0xb00 -s requested_sector qload.lst >> qload.inc
./generate_common -a 0xb00 -s decompress_lzsa2_fast qload.lst >> qload.inc
./generate_common -a 0xb00 -s getsrc_smc qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr2 qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_make_tables qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_put_string qload.lst >> qload.inc
./generate_common -a 0xb00 -s save_bg_1x28 qload.lst >> qload.inc
./generate_common -a 0xb00 -s restore_bg_1x28 qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_draw_sprite_1x28 qload.lst >> qload.inc
./generate_common -a 0xb00 -s input_buffer qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_text_box qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_text_box_nosave qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_partial_restore qload.lst >> qload.inc
./generate_common -a 0xb00 -s clear_bottom qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_input qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_partial_save qload.lst >> qload.inc
./generate_common -a 0xb00 -s draw_box qload.lst >> qload.inc
./generate_common -a 0xb00 -s disp_put_string qload.lst >> qload.inc
./generate_common -a 0xb00 -s disp_one_line qload.lst >> qload.inc
./generate_common -a 0xb00 -s invert_smc1 qload.lst >> qload.inc
./generate_common -a 0xb00 -s disp_put_string_cursor qload.lst >> qload.inc
./generate_common -a 0xb00 -s hgr_put_char_cursor qload.lst >> qload.inc
./generate_common -a 0xb00 -s vgi_simple_rectangle qload.lst >> qload.inc
2021-09-30 04:25:03 +00:00
./generate_common -a 0xb00 -s peasant_text qload.lst >> qload.inc
echo "hposn_high = \$$BA00" >> qload.inc
echo "hposn_low = \$$BB00" >> qload.inc
echo "driveoff = \$$A22" >> qload.inc
echo "driveon = \$$A9D" >> qload.inc
####
music.inc: generate_common MUSIC
./generate_common -a 0xd000 -s pt3_init_song music.lst > music.inc
./generate_common -a 0xd000 -s mockingboard_init music.lst >> music.inc
./generate_common -a 0xd000 -s reset_ay_both music.lst >> music.inc
./generate_common -a 0xd000 -s clear_ay_both music.lst >> music.inc
./generate_common -a 0xd000 -s mockingboard_setup_interrupt music.lst >> music.inc
./generate_common -a 0xd000 -s mockingboard_disable_interrupt music.lst >> music.inc
./generate_common -a 0xd000 -s done_pt3_irq_handler music.lst >> music.inc
./generate_common -a 0xd000 -s PT3_LOC music.lst >> music.inc
2021-09-19 04:12:44 +00:00
###
VID_LOGO: vid_logo.o
ld65 -o VID_LOGO vid_logo.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
2021-08-11 03:43:30 +00:00
vid_logo.o: vid_logo.s qload.inc \
decompress_fast_v2.s hgr_overlay.s speaker_beeps.s \
graphics_vid/vid_graphics.inc
ca65 -o vid_logo.o vid_logo.s -l vid_logo.lst
2021-08-11 03:43:30 +00:00
###
2021-08-12 01:45:31 +00:00
TITLE: title.o
ld65 -o TITLE title.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
title.o: title.s qload.inc music.inc \
2021-08-13 02:45:18 +00:00
graphics_title/title_graphics.inc \
graphics_title/altfire.inc \
directions.s \
pt3_lib_mockingboard_patch.s duet.s
2021-08-12 01:45:31 +00:00
ca65 -o title.o title.s -l title.lst
###
INTRO: intro.o
ld65 -o INTRO intro.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
2021-08-09 05:21:58 +00:00
intro.o: intro.s zp.inc qload.inc music.inc \
graphics_peasantry/graphics_intro.inc sprites/peasant_sprite.inc \
graphics_peasantry/priority_intro.inc \
2021-08-12 03:53:49 +00:00
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
hgr_partial_save.s \
wait_a_bit.s draw_peasant.s hgr_text_box.s \
2021-08-11 23:29:47 +00:00
title.s directions.s \
intro_cottage.s intro_lake_w.s intro_lake_e.s \
intro_river.s intro_knight.s
ca65 -o intro.o intro.s -l intro.lst
2021-08-09 05:21:58 +00:00
###
MUSIC: music.o
ld65 -o MUSIC music.o -C $(LINKER_SCRIPTS)/apple2_d000.inc
music.o: music.s zp.inc \
music/peasant.pt3 \
pt3_lib_core.s \
pt3_lib_mockingboard_detect.s \
pt3_lib_detect_model.s \
pt3_lib_mockingboard.inc \
pt3_lib_init.s \
pt3_lib_mockingboard_setup.s \
pt3_lib_irq_handler.s
ca65 -o music.o music.s -l music.lst
###
2021-10-04 02:28:27 +00:00
CLIFF: cliff.o
ld65 -o CLIFF cliff.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
cliff.o: cliff.s zp.inc \
graphics_cliff/cliff_graphics.inc sprites/peasant_sprite.inc \
graphics_cliff/priority_cliff.inc \
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
2021-10-04 02:28:27 +00:00
wait_a_bit.s draw_peasant.s hgr_text_box.s \
keyboard.s parse_input.s new_map_location.s \
peasant_move.s score.s
ca65 -o cliff.o cliff.s -l cliff.lst
###
GAME_OVER: game_over.o
ld65 -o GAME_OVER game_over.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
game_over.o: game_over.s zp.inc \
graphics_over/game_over_graphics.inc \
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
wait_a_bit.s draw_peasant.s hgr_text_box.s \
keyboard.s parse_input.s new_map_location.s \
peasant_move.s score.s
ca65 -o game_over.o game_over.s -l game_over.lst
2021-10-04 02:28:27 +00:00
###
PEASANT1: peasant1.o
ld65 -o PEASANT1 peasant1.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
2021-08-15 03:31:00 +00:00
peasant1.o: peasant1.s zp.inc \
2021-10-12 20:48:27 +00:00
sprites/peasant_sprite.inc sprites/inventory_sprites.inc \
graphics_peasantry/graphics_peasant1.inc \
graphics_peasantry/priority_peasant1.inc \
2021-08-15 03:31:00 +00:00
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
2021-08-15 03:31:00 +00:00
wait_a_bit.s draw_peasant.s hgr_text_box.s \
2021-08-24 17:52:11 +00:00
keyboard.s parse_input.s new_map_location.s \
2021-08-29 03:05:36 +00:00
peasant_move.s score.s
ca65 -o peasant1.o peasant1.s -l peasant1.lst
###
PEASANT2: peasant2.o
ld65 -o PEASANT2 peasant2.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
peasant2.o: peasant2.s zp.inc \
graphics_peasantry/graphics_peasant2.inc sprites/peasant_sprite.inc \
graphics_peasantry/priority_peasant2.inc \
sprites/inventory_sprites.inc \
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
wait_a_bit.s draw_peasant.s hgr_text_box.s \
2021-08-24 17:52:11 +00:00
keyboard.s parse_input.s new_map_location.s \
peasant_move.s score.s inventory.s loadsave_menu.s
ca65 -o peasant2.o peasant2.s -l peasant2.lst
###
PEASANT3: peasant3.o
ld65 -o PEASANT3 peasant3.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
peasant3.o: peasant3.s zp.inc \
graphics_peasantry/graphics_peasant3.inc sprites/peasant_sprite.inc \
graphics_peasantry/priority_peasant3.inc \
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
wait_a_bit.s draw_peasant.s hgr_text_box.s \
2021-08-24 17:52:11 +00:00
keyboard.s parse_input.s new_map_location.s \
2021-08-29 03:05:36 +00:00
peasant_move.s score.s
ca65 -o peasant3.o peasant3.s -l peasant3.lst
###
PEASANT4: peasant4.o
ld65 -o PEASANT4 peasant4.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
peasant4.o: peasant4.s zp.inc \
graphics_peasantry/graphics_peasant4.inc sprites/peasant_sprite.inc \
graphics_peasantry/priority_peasant4.inc \
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
wait_a_bit.s draw_peasant.s hgr_text_box.s \
2021-08-24 17:52:11 +00:00
keyboard.s parse_input.s new_map_location.s \
2021-08-29 03:05:36 +00:00
peasant_move.s score.s
ca65 -o peasant4.o peasant4.s -l peasant4.lst
2021-08-15 03:31:00 +00:00
###
2021-09-10 04:46:25 +00:00
TROGDOR: trogdor.o
ld65 -o TROGDOR trogdor.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
trogdor.o: trogdor.s zp.inc \
2021-09-17 23:18:38 +00:00
graphics_trogdor/trogdor_graphics.inc sprites/trogdor_sprites.inc \
2021-09-10 04:46:25 +00:00
sprites/inventory_sprites.inc \
2021-09-17 23:18:38 +00:00
ssi263_simple_speech.s \
2021-09-10 04:46:25 +00:00
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_1x28_sprite_mask.s hgr_1x5_sprite.s hgr_save_restore.s \
2021-09-10 04:46:25 +00:00
wait_a_bit.s draw_peasant.s hgr_text_box.s \
keyboard.s parse_input.s new_map_location.s \
peasant_move.s score.s inventory.s
ca65 -o trogdor.o trogdor.s -l trogdor.lst
###
2021-09-07 04:55:37 +00:00
ENDING: ending.o
ld65 -o ENDING ending.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
ending.o: ending.s zp.inc qload.inc music.inc \
2021-09-07 04:55:37 +00:00
graphics_end/ending_graphics.inc sprites/peasant_sprite.inc \
2021-09-13 01:32:14 +00:00
sprites/ending_sprites.inc \
2021-09-07 04:55:37 +00:00
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
hgr_2x14_sprite_mask.s hgr_1x5_sprite.s \
2021-09-17 02:51:55 +00:00
hgr_sprite.s hgr_save_restore.s \
2021-09-07 04:55:37 +00:00
wait_a_bit.s draw_peasant.s hgr_text_box.s \
keyboard.s parse_input.s new_map_location.s \
peasant_move.s score.s inventory.s
ca65 -o ending.o ending.s -l ending.lst
###
COPY_CHECK: copy_check.o
ld65 -o COPY_CHECK copy_check.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
2021-08-12 02:16:15 +00:00
copy_check.o: copy_check.s graphics_copy/copy_graphics.inc \
2021-08-12 03:53:49 +00:00
hgr_input.s \
2021-08-12 02:16:15 +00:00
draw_box.s hgr_rectangle.s hgr_font.s \
copy_check.s
ca65 -o copy_check.o copy_check.s -l copy_check.lst
2021-08-12 02:16:15 +00:00
###
SAVE1: save1.o
ld65 -o SAVE1 save1.o -C ../../linker_scripts/apple2_e00.inc
save1.o: save1.s
ca65 -o save1.o save1.s -l save1.lst
###
SAVE2: save2.o
ld65 -o SAVE2 save2.o -C ../../linker_scripts/apple2_e00.inc
save2.o: save2.s
ca65 -o save2.o save2.s -l save2.lst
###
SAVE3: save3.o
ld65 -o SAVE3 save3.o -C ../../linker_scripts/apple2_e00.inc
save3.o: save3.s
ca65 -o save3.o save3.s -l save3.lst
####
graphics_vid/vid_graphics.inc:
cd graphics_vid && make
graphics_title/title_graphics.inc:
cd graphics_title && make
graphics_peasantry/graphics_intro.inc:
cd graphics_peasantry && make
graphics_peasantry/graphics_peasant1.inc:
cd graphics_peasantry && make
2021-10-12 20:48:27 +00:00
graphics_cliff/cliff_graphics.inc:
cd graphics_cliff && make
graphics_copy/copy_graphics.inc:
cd graphics_copy && make
graphics_over/game_over_graphics.inc:
cd graphics_over && make
2021-09-10 04:46:25 +00:00
graphics_trogdor/trogdor_graphics.inc:
cd graphics_trogdor && make
2021-09-08 13:31:03 +00:00
graphics_end/ending_graphics.inc:
cd graphics_end && make
sprites/inventory_sprites.inc:
cd sprites && make
2021-09-17 23:18:38 +00:00
sprites/trogdor_sprites.inc:
cd sprites && make
2021-10-12 20:48:27 +00:00
###
distclean:
make clean
cd sprites && make clean
cd graphics_vid && make clean
cd graphics_title && make clean
cd graphics_peasantry && make clean
2021-10-12 20:48:27 +00:00
cd graphics_copy && make clean
cd graphics_trogdor && make clean
cd graphics_end && make clean
cd graphics_cliff && make clean
cd graphics_over && make clean
2021-10-12 20:48:27 +00:00
2021-08-09 15:49:01 +00:00
###
2021-08-09 05:21:58 +00:00
clean:
rm -f *~ *.o *.lst HELLO VID_LOGO TITLE INTRO COPY_CHECK \
2021-09-07 04:55:37 +00:00
PEASANT1 PEASANT2 PEASANT3 PEASANT4 \
TROGDOR ENDING MUSIC GAME_OVER
2021-08-09 05:21:58 +00:00