2024-03-10 05:44:20 +00:00
|
|
|
include ../../Makefile.inc
|
|
|
|
|
|
|
|
DOS33 = ../../utils/dos33fs-utils/dos33
|
|
|
|
DOS33_RAW = ../../utils/dos33fs-utils/dos33_raw
|
|
|
|
B2D = ../../utils/bmp2dhr/b2d
|
|
|
|
PNG2GR = ../../utils/gr-utils/png2gr
|
|
|
|
LZSA = ~/research/lzsa/lzsa/lzsa
|
|
|
|
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
|
|
|
|
EMPTY_DISK = ../../empty_disk/empty.dsk
|
|
|
|
|
|
|
|
|
2024-04-04 19:56:45 +00:00
|
|
|
all: keen1_lores.dsk
|
2024-03-10 05:44:20 +00:00
|
|
|
|
2024-04-19 05:41:52 +00:00
|
|
|
keen1_lores.dsk: HELLO LOADER TITLE ENGINE MARS \
|
2024-04-21 22:53:46 +00:00
|
|
|
LEVEL1 LEVEL2 LEVEL3 LEVEL4 LEVEL5
|
2024-04-04 19:56:45 +00:00
|
|
|
cp $(EMPTY_DISK) keen1_lores.dsk
|
|
|
|
$(DOS33) -y keen1_lores.dsk SAVE A HELLO
|
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x1000 LOADER
|
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x4000 TITLE
|
2024-04-19 05:30:17 +00:00
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x4000 ENGINE
|
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x4000 MARS
|
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x6000 LEVEL1
|
2024-04-19 05:41:52 +00:00
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x6000 LEVEL2
|
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x6000 LEVEL3
|
2024-04-21 05:29:51 +00:00
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x6000 LEVEL4
|
2024-04-21 22:53:46 +00:00
|
|
|
$(DOS33) -y keen1_lores.dsk BSAVE -a 0x6000 LEVEL5
|
2024-03-10 05:44:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
HELLO: hello.bas
|
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
LOADER: loader.o
|
|
|
|
ld65 -o LOADER loader.o -C ../../linker_scripts/apple2_1000.inc
|
|
|
|
|
2024-04-08 05:19:19 +00:00
|
|
|
loader.o: loader.s hardware_detect.s
|
2024-03-10 05:44:20 +00:00
|
|
|
ca65 -o loader.o loader.s -l loader.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2024-04-04 19:56:45 +00:00
|
|
|
TITLE: title.o
|
|
|
|
ld65 -o TITLE title.o -C ../../linker_scripts/apple2_4000.inc
|
2024-03-10 05:44:20 +00:00
|
|
|
|
2024-04-04 19:56:45 +00:00
|
|
|
title.o: title.s zp.inc hardware.inc \
|
2024-03-10 05:44:20 +00:00
|
|
|
zx02_optim.s \
|
|
|
|
graphics/keen1_title.hgr.zx02
|
2024-04-04 19:56:45 +00:00
|
|
|
ca65 -o title.o title.s -l title.lst
|
2024-03-10 05:44:20 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2024-04-04 19:56:45 +00:00
|
|
|
MARS: mars.o
|
2024-04-19 05:30:17 +00:00
|
|
|
ld65 -o MARS mars.o -C ../../linker_scripts/apple2_4000.inc
|
2024-03-11 05:37:08 +00:00
|
|
|
|
2024-04-04 19:56:45 +00:00
|
|
|
mars.o: mars.s zp.inc hardware.inc game_over.s \
|
2024-04-04 05:27:11 +00:00
|
|
|
gr_fade.s \
|
2024-04-11 04:09:42 +00:00
|
|
|
mars_keyboard.s draw_tilemap.s \
|
2024-04-04 19:56:45 +00:00
|
|
|
mars_sfx.s longer_sound.s \
|
2024-04-15 02:17:26 +00:00
|
|
|
text_help.s tilemap_lookup.s \
|
2024-04-14 23:31:16 +00:00
|
|
|
maps/mars_map.zx02 graphics/parts.gr.zx02
|
2024-04-04 19:56:45 +00:00
|
|
|
ca65 -o mars.o mars.s -l mars.lst
|
2024-03-11 05:37:08 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2024-04-04 19:56:45 +00:00
|
|
|
LEVEL1: level1.o
|
2024-04-19 05:30:17 +00:00
|
|
|
ld65 -o LEVEL1 level1.o -C ../../linker_scripts/apple2_6000.inc
|
2024-03-10 05:44:20 +00:00
|
|
|
|
2024-04-20 04:43:31 +00:00
|
|
|
level1.o: level1.s enemies.inc \
|
2024-04-19 05:30:17 +00:00
|
|
|
maps/level1_map.zx02
|
|
|
|
ca65 -o level1.o level1.s -l level1.lst
|
|
|
|
|
2024-04-19 05:41:52 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
LEVEL2: level2.o
|
|
|
|
ld65 -o LEVEL2 level2.o -C ../../linker_scripts/apple2_6000.inc
|
|
|
|
|
2024-04-20 04:43:31 +00:00
|
|
|
level2.o: level2.s enemies.inc \
|
2024-04-19 05:41:52 +00:00
|
|
|
maps/level2_map.zx02
|
|
|
|
ca65 -o level2.o level2.s -l level2.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
LEVEL3: level3.o
|
|
|
|
ld65 -o LEVEL3 level3.o -C ../../linker_scripts/apple2_6000.inc
|
|
|
|
|
2024-04-20 04:43:31 +00:00
|
|
|
level3.o: level3.s enemies.inc \
|
2024-04-19 05:41:52 +00:00
|
|
|
maps/level3_map.zx02
|
|
|
|
ca65 -o level3.o level3.s -l level3.lst
|
|
|
|
|
2024-04-21 05:29:51 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
LEVEL4: level4.o
|
|
|
|
ld65 -o LEVEL4 level4.o -C ../../linker_scripts/apple2_6000.inc
|
|
|
|
|
|
|
|
level4.o: level4.s enemies.inc \
|
|
|
|
maps/level4_map.zx02
|
|
|
|
ca65 -o level4.o level4.s -l level4.lst
|
|
|
|
|
2024-04-21 22:53:46 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
LEVEL5: level5.o
|
|
|
|
ld65 -o LEVEL5 level5.o -C ../../linker_scripts/apple2_6000.inc
|
|
|
|
|
|
|
|
level5.o: level5.s enemies.inc \
|
|
|
|
maps/level5_map.zx02
|
|
|
|
ca65 -o level5.o level5.s -l level5.lst
|
|
|
|
|
|
|
|
|
2024-04-21 05:29:51 +00:00
|
|
|
|
2024-04-19 05:41:52 +00:00
|
|
|
|
|
|
|
|
2024-04-19 05:30:17 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
ENGINE: engine.o
|
|
|
|
ld65 -o ENGINE engine.o -C ../../linker_scripts/apple2_4000.inc
|
|
|
|
|
|
|
|
engine.o: engine.s zp.inc hardware.inc \
|
2024-04-04 19:56:45 +00:00
|
|
|
text_help.s gr_fast_clear.s text_quit_yn.s text_drawbox.s \
|
2024-04-04 05:09:36 +00:00
|
|
|
level1_enemies.s level1_items.s \
|
2024-03-10 06:29:13 +00:00
|
|
|
graphics/keen_graphics.inc sprites/keen_sprites.inc \
|
2024-03-10 05:44:20 +00:00
|
|
|
status_bar.s draw_keen.s move_keen.s gr_putsprite_crop.s \
|
2024-04-15 02:35:37 +00:00
|
|
|
draw_tilemap.s tilemap_lookup.s \
|
2024-04-19 05:30:17 +00:00
|
|
|
level1_sfx.s longer_sound.s \
|
2024-03-10 05:44:20 +00:00
|
|
|
keyboard.s handle_laser.s
|
2024-04-19 05:30:17 +00:00
|
|
|
ca65 -o engine.o engine.s -l engine.lst
|
|
|
|
|
2024-03-10 05:44:20 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
2024-04-19 05:41:52 +00:00
|
|
|
#LEVEL2: level2.o
|
|
|
|
# ld65 -o LEVEL2 level2.o -C ../../linker_scripts/apple2_2000.inc
|
|
|
|
#
|
|
|
|
#level2.o: level2.s zp.inc hardware.inc \
|
|
|
|
# text_help.s gr_fast_clear.s text_quit_yn.s text_drawbox.s \
|
|
|
|
# level1_enemies.s level1_items.s \
|
|
|
|
# graphics/keen_graphics.inc sprites/keen_sprites.inc \
|
|
|
|
# maps/level2_map.zx02 \
|
|
|
|
# status_bar.s draw_keen.s move_keen.s gr_putsprite_crop.s \
|
|
|
|
# draw_tilemap.s tilemap_lookup.s \
|
|
|
|
# level1_sfx.s longer_sound.s level2_data.inc \
|
|
|
|
# keyboard.s handle_laser.s
|
|
|
|
# ca65 -o level2.o level2.s -l level2.lst
|
2024-03-10 05:44:20 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
graphics/keen1_title.hgr.zx02:
|
|
|
|
cd graphics && make
|
|
|
|
|
|
|
|
graphics/keen_graphics.inc:
|
|
|
|
cd graphics && make
|
|
|
|
|
2024-03-10 06:29:13 +00:00
|
|
|
sprites/keen_sprites.inc:
|
|
|
|
cd sprites && make
|
|
|
|
|
2024-03-10 05:44:20 +00:00
|
|
|
maps/level1_map.lzsa:
|
|
|
|
cd maps && make
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
clean:
|
2024-04-19 05:30:17 +00:00
|
|
|
rm -f *~ *.o *.lst HELLO LOADER TITLE ENGINE MARS LEVEL1 LEVEL2
|
2024-03-10 05:44:20 +00:00
|
|
|
cd graphics && make clean
|
|
|
|
cd maps && make clean
|
|
|
|
# cd title && make clean
|
2024-03-10 06:29:13 +00:00
|
|
|
cd sprites && make clean
|