dos33fsprogs/graphics/gr/rotozoom/Makefile
2021-01-10 23:56:51 -05:00

49 lines
1.0 KiB
Makefile

include ../../../Makefile.inc
DOS33 = ../../../utils/dos33fs-utils/dos33
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
LINKERSCRIPTS = ../../../linker_scripts
all: roto.dsk make_sine_table
roto.dsk: HELLO ROTO ROTOPLASMA
cp empty.dsk roto.dsk
$(DOS33) -y roto.dsk SAVE A HELLO
$(DOS33) -y roto.dsk BSAVE -a 0x1000 ROTO
$(DOS33) -y roto.dsk BSAVE -a 0x1000 ROTOPLASMA
###
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
###
ROTO: roto.o
ld65 -o ROTO roto.o -C $(LINKERSCRIPTS)/apple2_1000.inc
roto.o: roto.s rotozoom.s gr_plot.s gr_scrn.s
ca65 -o roto.o roto.s -l roto.lst
###
ROTOPLASMA: rotoplasma.o
ld65 -o ROTOPLASMA rotoplasma.o -C $(LINKERSCRIPTS)/apple2_1000.inc
rotoplasma.o: rotoplasma.s rotozoom_texture.s plasma.s
ca65 -o rotoplasma.o rotoplasma.s -l rotoplasma.lst
###
make_sine_table: make_sine_table.o
$(CC) -o make_sine_table make_sine_table.o -lm
make_sine_table.o: make_sine_table.c
$(CC) $(CFLAGS) -c make_sine_table.c
###
clean:
rm -f *~ *.o *.lst ROTO ROTOPLASMA make_sine_table