dos33fsprogs/graphics/hgr/bubble/Makefile

67 lines
1.4 KiB
Makefile
Raw Normal View History

2023-12-15 16:42:40 +00:00
include ../../../Makefile.inc
DOS33 = ../../../utils/dos33fs-utils/dos33
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
LINKER_SCRIPTS = ../../../linker_scripts
EMPTY_DISK = ../../../empty_disk
2024-01-02 18:04:03 +00:00
all: bubble.dsk make_table
2023-12-15 16:42:40 +00:00
2023-12-31 19:02:56 +00:00
bubble.dsk: HELLO BUBBLE.BAS BUBBLE BUBBLE_ORIG DIAMOND
2023-12-15 16:42:40 +00:00
cp $(EMPTY_DISK)/empty.dsk bubble.dsk
$(DOS33) -y bubble.dsk SAVE A HELLO
$(DOS33) -y bubble.dsk SAVE A BUBBLE.BAS
2023-12-31 06:17:33 +00:00
$(DOS33) -y bubble.dsk BSAVE -a 0x0C00 BUBBLE
2023-12-31 19:02:56 +00:00
$(DOS33) -y bubble.dsk BSAVE -a 0x0C00 BUBBLE_ORIG
$(DOS33) -y bubble.dsk BSAVE -a 0x0C00 DIAMOND
2023-12-15 16:42:40 +00:00
###
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
###
2023-12-31 06:17:33 +00:00
BUBBLE: bubble.o
ld65 -o BUBBLE bubble.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
2024-01-02 07:08:34 +00:00
bubble.o: bubble.s hgr_clear_screen.s
2023-12-31 06:17:33 +00:00
ca65 -o bubble.o bubble.s -l bubble.lst
###
2023-12-31 19:02:56 +00:00
BUBBLE_ORIG: bubble_orig.o
ld65 -o BUBBLE_ORIG bubble_orig.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
bubble_orig.o: bubble_orig.s
ca65 -o bubble_orig.o bubble_orig.s -l bubble_orig.lst
###
DIAMOND: diamond.o
ld65 -o DIAMOND diamond.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
diamond.o: diamond.s
ca65 -o diamond.o diamond.s -l diamond.lst
###
2023-12-15 16:42:40 +00:00
BUBBLE.BAS: bubble.bas
$(TOKENIZE) < bubble.bas > BUBBLE.BAS
###
2024-01-02 18:04:03 +00:00
make_table: make_table.o
$(CC) -o make_table make_table.o -lm
make_table.o: make_table.c
$(CC) $(CFLAGS) -c make_table.c
###
2023-12-15 16:42:40 +00:00
clean:
2023-12-31 19:02:56 +00:00
rm -f *~ *.o *.lst BUBBLE.BAS HELLO BUBBLE DIAMOND BUBBLE_ORIG