dos33fsprogs/games/monkey/Makefile

89 lines
2.0 KiB
Makefile
Raw Normal View History

2021-01-06 02:03:44 +00:00
include ../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
DOS33_RAW = ../../utils/dos33fs-utils/dos33_raw
PNG_TO_40x96 = ../../utils/gr-utils/png_to_40x96
PNG_TO_40x48D = ../../utils/gr-utils/png_to_40x48d
PNG2RLE = ../../utils/gr-utils/png2rle
B2D = ../../utils/bmp2dhr/b2d
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
2020-09-13 03:33:28 +00:00
all: monkey.dsk
2020-09-17 03:30:12 +00:00
monkey.dsk: HELLO LOADER TITLE MONKEY
2020-09-13 03:33:28 +00:00
cp empty.dsk monkey.dsk
$(DOS33) -y monkey.dsk SAVE A HELLO
2020-09-17 03:30:12 +00:00
$(DOS33) -y monkey.dsk BSAVE -a 0x1000 LOADER
$(DOS33) -y monkey.dsk BSAVE -a 0x2000 TITLE
$(DOS33) -y monkey.dsk BSAVE -a 0x2000 MONKEY
2020-09-13 03:33:28 +00:00
###
HELLO: hello.bas
2021-01-06 02:03:44 +00:00
$(TOKENIZE) < hello.bas > HELLO
2020-09-13 03:33:28 +00:00
####
2020-09-17 03:30:12 +00:00
###
LOADER: loader.o
2021-01-06 02:03:44 +00:00
ld65 -o LOADER loader.o -C ../../linker_scripts/apple2_1000.inc
2020-09-17 03:30:12 +00:00
loader.o: loader.s
ca65 -o loader.o loader.s -l loader.lst
###
TITLE: title.o
2021-01-06 02:03:44 +00:00
ld65 -o TITLE title.o -C ../../linker_scripts/apple2_2000.inc
2020-09-17 03:30:12 +00:00
2020-09-17 05:12:40 +00:00
title.o: title.s \
graphics_intro/title_graphics.inc \
2020-09-18 13:24:08 +00:00
music/theme.inc \
interrupt_handler.s mockingboard.s ym_play.s gr_overlay.s
2020-09-17 03:30:12 +00:00
ca65 -o title.o title.s -l title.lst
####
2020-09-13 03:33:28 +00:00
MONKEY: monkey.o
2021-01-06 02:03:44 +00:00
ld65 -o MONKEY monkey.o -C ../../linker_scripts/apple2_2000.inc
2020-09-13 03:33:28 +00:00
monkey.o: monkey.s zp.inc hardware.inc common_defines.inc \
graphics/graphics.inc \
draw_pointer.s \
common_sprites.inc \
keyboard.s joystick.s \
2020-09-13 04:32:52 +00:00
leveldata_monkey.inc \
2020-09-16 03:45:02 +00:00
monkey_actions.s update_bottom.s \
guy.brush \
2020-09-19 05:36:48 +00:00
monkey_lookout.s monkey_poster.s monkey_dock.s monkey_bar.s \
2020-09-25 03:33:59 +00:00
monkey_town.s monkey_map.s monkey_church.s monkey_mansion_path.s \
monkey_mansion.s monkey_zipline.s \
2020-10-12 01:32:42 +00:00
monkey_bar_inside1.s monkey_bar_inside2.s monkey_bar_inside3.s \
2020-10-01 19:07:02 +00:00
monkey_voodoo1.s monkey_voodoo2.s \
cutscene_lechuck.s chapter1.s \
music/chapter.pt3
2020-09-13 03:33:28 +00:00
ca65 -o monkey.o monkey.s -l monkey.lst
graphics/graphics.inc:
cd graphics && make
2020-09-17 05:12:40 +00:00
graphics_intro/title_graphics.inc:
cd graphics_intro && make
2020-09-18 13:24:08 +00:00
music/theme.inc:
cd music && make
2020-09-13 03:33:28 +00:00
####
clean:
rm -f *~ *.o *.lst HELLO MONKEY
cd graphics && make clean
2020-09-18 13:24:08 +00:00
cd graphics_intro && make clean
cd music && make clean
2020-09-13 03:33:28 +00:00