dos33fsprogs/fancy_lores/Makefile
2018-07-31 16:00:15 -04:00

79 lines
1.9 KiB
Makefile

include ../Makefile.inc
DOS33 = ../dos33fs-utils/dos33
all: fancy_lores_viewer.dsk png_to_40x96 png_to_40x48d
fancy_lores_viewer.dsk: DISP4096 DISP4048D
$(DOS33) -y fancy_lores_viewer.dsk BSAVE -a 0x1000 DISP4096
$(DOS33) -y fancy_lores_viewer.dsk BSAVE -a 0x1000 DISP4048D
# $(DOS33) -y fancy_lores_viewer.dsk BSAVE -a 0x2000 APPLE_ORIG.BIN
# $(DOS33) -y fancy_lores_viewer.dsk BSAVE -a 0x2000 KATAHDIN_ORIG.BIN
####
DISP4096: disp4096.o
ld65 -o DISP4096 disp4096.o -C ../linker_scripts/apple2_1000.inc
disp4096.o: disp4096.s gr_copy.s \
apple_40_96.inc katahdin_40_96.inc
ca65 -o disp4096.o disp4096.s -l disp4096.lst
####
DISP4048D: disp4048d.o
ld65 -o DISP4048D disp4048d.o -C ../linker_scripts/apple2_1000.inc
disp4048d.o: disp4048d.s gr_copy.s \
apple_40_48d.inc katahdin_40_48d.inc spacebars_40_48d.inc
ca65 -o disp4048d.o disp4048d.s -l disp4048d.lst
####
png_to_40x96: png_to_40x96.o
$(CC) $(LFLAGS) -lpng -o png_to_40x96 png_to_40x96.o
png_to_40x96.o: png_to_40x96.c
$(CC) $(CFLAGS) -c png_to_40x96.c
####
png_to_40x48d: png_to_40x48d.o
$(CC) $(LFLAGS) -lpng -o png_to_40x48d png_to_40x48d.o
png_to_40x48d.o: png_to_40x48d.c
$(CC) $(CFLAGS) -g -c png_to_40x48d.c
###
katahdin_40_96.inc: png_to_40x96 katahdin_40_96.png
./png_to_40x96 asm katahdin_40_96.png katahdin > katahdin_40_96.inc
apple_40_96.inc: png_to_40x96 apple_40_96.png
./png_to_40x96 asm apple_40_96.png apple > apple_40_96.inc
###
spacebars_40_48d.inc: png_to_40x48d spacebars_40_48d.png
./png_to_40x48d asm spacebars_40_48d.png spacebars > spacebars_40_48d.inc
katahdin_40_48d.inc: png_to_40x48d katahdin_40_48d.png
./png_to_40x48d asm katahdin_40_48d.png katahdin > katahdin_40_48d.inc
apple_40_48d.inc: png_to_40x48d apple_40_48d.png
./png_to_40x48d asm apple_40_48d.png apple > apple_40_48d.inc
###
install:
cp png_to_40x96 $(INSTALL_LOC)
clean:
rm -f *~ *.o *.lst *.inc png_to_40x96 png_to_40x48d DISP4096 DISP4048D