dos33fsprogs/graphics/gr_viewer/Makefile
2023-05-06 01:44:03 -04:00

45 lines
800 B
Makefile

include ../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
PNG2DHGR = ../../utils/hgr-utils/png2dhgr
all: make_gr_viewer
###
make_gr_viewer: make_gr_viewer.o
$(CC) $(LFLAGS) -o make_gr_viewer make_gr_viewer.o
make_gr_viewer.o: make_gr_viewer.c
$(CC) $(CFLAGS) -c make_gr_viewer.c
###
gr_viewer.dsk: HELLO LOADER
$(DOS33) -y gr_viewer.dsk SAVE A HELLO
$(DOS33) -y gr_viewer.dsk BSAVE -a 0x1000 LOADER
# $(DOS33) -y gr_viewer.dsk BSAVE -a 0x800 F09.GR
###
HELLO: hello.bas
$(TOKENIZER) < hello.bas > HELLO
###
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
####
clean:
rm -f *~ *.o LOADER HELLO *.lst make_gr_viewer