dos33fsprogs/demos/wargames/Makefile

58 lines
1.1 KiB
Makefile
Raw Normal View History

2021-09-14 17:57:44 +00:00
include ../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
EMPTY_DISK = ../../empty_disk/empty.dsk
2021-09-14 20:33:37 +00:00
PNG2HGR = ../../utils/hgr-utils/png2hgr
LZSA = ~/research/lzsa/lzsa/lzsa
2021-09-14 17:57:44 +00:00
all: wargames.dsk
wargames.dsk: HELLO WARGAMES
2021-09-14 20:33:37 +00:00
cp $(EMPTY_DISK) wargames.dsk
$(DOS33) -y wargames.dsk SAVE A HELLO
2021-09-15 12:23:22 +00:00
$(DOS33) -y wargames.dsk BSAVE -a 0xc00 WARGAMES
2021-09-14 17:57:44 +00:00
###
WARGAMES: wargames.o
2021-09-15 12:23:22 +00:00
ld65 -o WARGAMES wargames.o -C ../../linker_scripts/apple2_c00.inc
2021-09-14 17:57:44 +00:00
2021-09-14 20:33:37 +00:00
wargames.o: wargames.s ssi263.inc ssi263_detect.s ssi263_simple_speech.s \
2021-09-15 12:23:22 +00:00
map.lzsa coords.inc
2021-09-14 17:57:44 +00:00
ca65 -o wargames.o wargames.s -l wargames.lst
2021-09-14 20:33:37 +00:00
###
map.lzsa: map.hgr
$(LZSA) -r -f2 map.hgr map.lzsa
map.hgr: map.png
$(PNG2HGR) map.png > map.hgr
2021-09-14 17:57:44 +00:00
###
2021-09-15 12:23:22 +00:00
coords.inc: make_coords coords.txt
./make_coords < coords.txt > coords.inc
###
make_coords: make_coords.o
$(CC) -o make_coords make_coords.o $(LFLAGS) -lm
make_coords.o: make_coords.c
$(CC) $(CFLAGS) -c make_coords.c
###
2021-09-14 17:57:44 +00:00
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
####
clean:
2021-09-15 12:23:22 +00:00
rm -f *~ *.o *.lst HELLO WARGAMES make_coords
2021-09-14 17:57:44 +00:00