From a25a4ba9e691c24cf9504e2fc45814556a721e85 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 31 Jul 2018 20:02:27 -0400 Subject: [PATCH] gr-utils: move the new png utils to the right place --- fancy_lores/Makefile | 43 ++++++++--------------- gr-utils/Makefile | 24 +++++++++++-- {fancy_lores => gr-utils}/png_to_40x48d.c | 0 {fancy_lores => gr-utils}/png_to_40x96.c | 0 4 files changed, 36 insertions(+), 31 deletions(-) rename {fancy_lores => gr-utils}/png_to_40x48d.c (100%) rename {fancy_lores => gr-utils}/png_to_40x96.c (100%) diff --git a/fancy_lores/Makefile b/fancy_lores/Makefile index 0815edfb..ea28c443 100644 --- a/fancy_lores/Makefile +++ b/fancy_lores/Makefile @@ -1,8 +1,11 @@ include ../Makefile.inc DOS33 = ../dos33fs-utils/dos33 +PNG_TO_40x96 = ../gr-utils/png_to_40x96 +PNG_TO_40x48D = ../gr-utils/png_to_40x48d -all: fancy_lores_viewer.dsk png_to_40x96 png_to_40x48d + +all: fancy_lores_viewer.dsk fancy_lores_viewer.dsk: DISP4096 DISP4048D $(DOS33) -y fancy_lores_viewer.dsk BSAVE -a 0x1000 DISP4096 @@ -29,40 +32,24 @@ disp4048d.o: disp4048d.s gr_copy.s \ 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 +katahdin_40_96.inc: katahdin_40_96.png + $(PNG_TO_40x96) asm katahdin_40_96.png katahdin > katahdin_40_96.inc -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 +apple_40_96.inc: apple_40_96.png + $(PNG_TO_40x96) asm apple_40_96.png apple > apple_40_96.inc ### -katahdin_40_96.inc: png_to_40x96 katahdin_40_96.png - ./png_to_40x96 asm katahdin_40_96.png katahdin > katahdin_40_96.inc +spacebars_40_48d.inc: spacebars_40_48d.png + $(PNG_TO_40x48D) asm spacebars_40_48d.png spacebars > spacebars_40_48d.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 +katahdin_40_48d.inc: katahdin_40_48d.png + $(PNG_TO_40x48D) asm katahdin_40_48d.png katahdin > katahdin_40_48d.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 +apple_40_48d.inc: apple_40_48d.png + $(PNG_TO_40x48D) asm apple_40_48d.png apple > apple_40_48d.inc diff --git a/gr-utils/Makefile b/gr-utils/Makefile index 98eb3d0a..650fb5ac 100644 --- a/gr-utils/Makefile +++ b/gr-utils/Makefile @@ -2,7 +2,7 @@ include ../Makefile.inc CFLAGS = -g -Wall -O2 -all: png2gr png2rle +all: png2gr png2rle png_to_40x48d png_to_40x96 ### @@ -27,11 +27,29 @@ png2rle: png2rle.o loadpng.o png2rle.o: png2rle.c loadpng.h $(CC) $(CFLAGS) -c png2rle.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) -c png_to_40x48d.c + +### + +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 + + ### install: - cp png2gr png2rle $(INSTALL_LOC) + cp png2gr png2rle png_to_40x48d png_to_40x96 $(INSTALL_LOC) clean: - rm -f *~ *.o png2gr png2rle + rm -f *~ *.o png2gr png2rle png_to_40x48d png_to_40x96 diff --git a/fancy_lores/png_to_40x48d.c b/gr-utils/png_to_40x48d.c similarity index 100% rename from fancy_lores/png_to_40x48d.c rename to gr-utils/png_to_40x48d.c diff --git a/fancy_lores/png_to_40x96.c b/gr-utils/png_to_40x96.c similarity index 100% rename from fancy_lores/png_to_40x96.c rename to gr-utils/png_to_40x96.c