dos33fsprogs/games/peasant/Makefile

118 lines
2.6 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
all: peasant.dsk
2021-08-12 02:16:15 +00:00
peasant.dsk: QBOOT QLOAD INTRO TITLE PEASANT ENDING
2021-08-09 05:21:58 +00:00
cp $(EMPTY_DISK)/empty.dsk peasant.dsk
# $(DOS33) -y peasant.dsk BSAVE -a 0x6000 PEASANT
$(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 1 0 QLOAD 0 0
2021-08-11 03:43:30 +00:00
$(DOS33_RAW) peasant.dsk 3 0 INTRO 0 0
2021-08-12 02:16:15 +00:00
$(DOS33_RAW) peasant.dsk 10 0 TITLE 0 0
2021-08-12 01:45:31 +00:00
$(DOS33_RAW) peasant.dsk 17 0 PEASANT 0 0
2021-08-12 02:16:15 +00:00
$(DOS33_RAW) peasant.dsk 24 0 ENDING 0 0
2021-08-09 15:49:01 +00:00
2021-08-09 05:21:58 +00:00
###
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
###
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_e00.inc
qload.o: qload.s qboot.inc
ca65 -o qload.o qload.s -l qload.lst
###
2021-08-11 03:43:30 +00:00
INTRO: intro.o
ld65 -o INTRO intro.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
intro.o: intro.s decompress_fast_v2.s hgr_overlay.s \
graphics_intro/intro_graphics.inc
2021-08-11 03:43:30 +00:00
ca65 -o intro.o intro.s -l intro.lst
###
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 graphics_title/title_graphics.inc \
title.s directions.s
ca65 -o title.o title.s -l title.lst
###
2021-08-09 05:21:58 +00:00
PEASANT: peasant.o
ld65 -o PEASANT peasant.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
2021-08-10 05:09:35 +00:00
peasant.o: peasant.s graphics/graphics.inc \
2021-08-12 03:53:49 +00:00
draw_box.s hgr_rectangle.s hgr_font.s hgr_input.s \
2021-08-11 23:29:47 +00:00
title.s directions.s \
cottage.s lake_w.s lake_e.s river.s knight.s \
ending.s
2021-08-09 05:21:58 +00:00
ca65 -o peasant.o peasant.s -l peasant.lst
###
2021-08-12 02:16:15 +00:00
ENDING: ending.o
ld65 -o ENDING ending.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
ending.o: ending.s graphics_end/end_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 \
ending.s
ca65 -o ending.o ending.s -l ending.lst
###
2021-08-09 15:49:01 +00:00
FONT_TEST: font_test.o
ld65 -o FONT_TEST font_test.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
font_test.o: font_test.s hgr_font.s hgr_1x8_sprite.s
ca65 -o font_test.o font_test.s -l font_test.lst
####
graphics_intro/intro_graphics.inc:
cd graphics_intro && make
graphics_title/title_graphics.inc:
cd graphics_title && make
graphics/graphics.inc:
cd graphics && make
graphics_end/end_graphics.inc:
cd graphics_end && make
2021-08-09 15:49:01 +00:00
###
2021-08-09 05:21:58 +00:00
clean:
2021-08-12 02:16:15 +00:00
rm -f *~ *.o *.lst HELLO INTRO TITLE PEASANT ENDING
2021-08-09 05:21:58 +00:00