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
|
|
|
|
|
|
|
|
duke.dsk: HELLO DUKE
|
|
|
|
cp empty.dsk duke.dsk
|
|
|
|
$(DOS33) -y duke.dsk SAVE A HELLO
|
|
|
|
$(DOS33) -y duke.dsk BSAVE -a 0x2000 DUKE
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
HELLO: hello.bas
|
|
|
|
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
|
|
|
|
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 \
|
|
|
|
graphics/duke_graphics.inc \
|
2020-12-09 04:41:53 +00:00
|
|
|
maps/level1_map.lzsa \
|
2020-11-28 05:51:57 +00:00
|
|
|
status_bar.s draw_duke.s gr_putsprite_crop.s \
|
2020-12-09 00:19:23 +00:00
|
|
|
draw_tilemap.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-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-11-14 20:19:56 +00:00
|
|
|
|
|
|
|
|