mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-01 01:06:33 +00:00
45 lines
800 B
Makefile
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
|