2020-11-14 20:19:56 +00:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
|
|
|
DOS33 = ../dos33fs-utils/dos33
|
|
|
|
DOS33_RAW = ../dos33fs-utils/dos33_raw
|
|
|
|
B2D = ../bmp2dhr/b2d
|
|
|
|
PNG2GR = ../gr-utils/png2gr
|
|
|
|
LZSA = ~/research/lzsa/lzsa/lzsa
|
|
|
|
|
|
|
|
all: duke.dsk
|
|
|
|
|
2020-12-14 00:49:00 +00:00
|
|
|
duke.dsk: HELLO LOADER DUKE_TITLE DUKE
|
2020-11-14 20:19:56 +00:00
|
|
|
cp empty.dsk duke.dsk
|
|
|
|
$(DOS33) -y duke.dsk SAVE A HELLO
|
2020-12-14 00:49:00 +00:00
|
|
|
$(DOS33) -y duke.dsk BSAVE -a 0x1000 LOADER
|
2020-11-14 20:19:56 +00:00
|
|
|
$(DOS33) -y duke.dsk BSAVE -a 0x2000 DUKE
|
2020-12-14 00:49:00 +00:00
|
|
|
$(DOS33) -y duke.dsk BSAVE -a 0x4000 DUKE_TITLE
|
2020-11-14 20:19:56 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
HELLO: hello.bas
|
|
|
|
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2020-12-14 00:49:00 +00:00
|
|
|
LOADER: loader.o
|
|
|
|
ld65 -o LOADER loader.o -C ../linker_scripts/apple2_1000.inc
|
|
|
|
|
|
|
|
loader.o: loader.s
|
|
|
|
ca65 -o loader.o loader.s -l loader.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
DUKE_TITLE: duke_title.o
|
|
|
|
ld65 -o DUKE_TITLE duke_title.o -C ../linker_scripts/apple2_4000.inc
|
|
|
|
|
|
|
|
duke_title.o: duke_title.s zp.inc hardware.inc
|
|
|
|
ca65 -o duke_title.o duke_title.s -l duke_title.lst
|
|
|
|
|
|
|
|
####
|
2020-11-14 20:19:56 +00:00
|
|
|
|
|
|
|
DUKE: duke.o
|
|
|
|
ld65 -o DUKE duke.o -C ../linker_scripts/apple2_2000.inc
|
|
|
|
|
2020-12-08 16:32:53 +00:00
|
|
|
duke.o: duke.s zp.inc hardware.inc duke.s \
|
2020-12-15 16:20:23 +00:00
|
|
|
print_help.s gr_fast_clear.s quit_yn.s text_drawbox.s level_end.s \
|
2020-12-16 14:54:12 +00:00
|
|
|
enemies.s actions.s \
|
2020-12-08 16:32:53 +00:00
|
|
|
graphics/duke_graphics.inc \
|
2020-12-09 04:41:53 +00:00
|
|
|
maps/level1_map.lzsa \
|
2020-12-14 21:01:47 +00:00
|
|
|
status_bar.s draw_duke.s move_duke.s gr_putsprite_crop.s \
|
2020-12-09 00:19:23 +00:00
|
|
|
draw_tilemap.s \
|
2020-12-16 18:31:23 +00:00
|
|
|
sound_effects.s speaker_tone.s \
|
2020-11-28 05:51:57 +00:00
|
|
|
keyboard.s handle_laser.s
|
2020-11-14 20:19:56 +00:00
|
|
|
ca65 -o duke.o duke.s -l duke.lst
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2020-12-08 16:32:53 +00:00
|
|
|
graphics/duke_graphics.inc:
|
|
|
|
cd graphics && make
|
2020-11-14 20:19:56 +00:00
|
|
|
|
2020-12-11 00:24:05 +00:00
|
|
|
title/new_title.lzsa:
|
|
|
|
cd title && make
|
|
|
|
|
2020-12-09 04:41:53 +00:00
|
|
|
maps/level1_map.lzsa:
|
|
|
|
cd maps && make
|
|
|
|
|
2020-11-14 20:19:56 +00:00
|
|
|
####
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.o *.lst HELLO DUKE
|
2020-12-08 16:32:53 +00:00
|
|
|
cd graphics && make clean
|
2020-12-09 04:41:53 +00:00
|
|
|
cd maps && make clean
|
2020-12-11 00:24:05 +00:00
|
|
|
cd title && make clean
|
2020-11-14 20:19:56 +00:00
|
|
|
|