From d5f6f70d351239ee37b3d864c9a94dc49d66c052 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Mon, 9 Nov 2015 23:39:29 +0100 Subject: imagefile -> farbfeld - Rename the format - Change the format specification - Drop old tools waiting to be fixed on a later date, just keep fixed png for now - Simplify other stuff This is a direct consequence of my slcon2-talk on this topic. At first I planned to have 64 bits per channel, but this is overkill. --- Makefile | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a6a9dd6..27561af 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ -# imagefile - tools to convert between png and if +# imagefile - tools to convert between png and ff # See LICENSE file for copyright and license details include config.mk -SRC = png2if.c if2png.c jpg2if.c gif2if.c +SRC = png2ff.c ff2png.c OBJ = ${SRC:.c=.o} -all: options png2if if2png jpg2if gif2if +all: options png2ff ff2png options: - @echo imagefile build options: + @echo farbfeld build options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" @@ -20,40 +20,28 @@ options: ${OBJ}: config.mk -gif2if: gif2if.o +png2ff: png2ff.o @echo CC -o $@ - @${CC} -o $@ gif2if.o ${GIF_LIBS} ${LDFLAGS} + @${CC} -o $@ png2ff.o ${PNG_LIBS} ${LDFLAGS} -jpg2if: jpg2if.o +ff2png: ff2png.o @echo CC -o $@ - @${CC} -o $@ jpg2if.o ${JPEG_LIBS} ${LDFLAGS} - -png2if: png2if.o - @echo CC -o $@ - @${CC} -o $@ png2if.o ${PNG_LIBS} ${LDFLAGS} - -if2png: if2png.o - @echo CC -o $@ - @${CC} -o $@ if2png.o ${PNG_LIBS} ${LDFLAGS} + @${CC} -o $@ ff2png.o ${PNG_LIBS} ${LDFLAGS} clean: @echo cleaning - @rm -f png2if if2png jpg2if gif2if ${OBJ} + @rm -f png2ff ff2png ${OBJ} install: all @echo installing executable files to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f png2if jpg2if if2png gif2if ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/png2if - @chmod 755 ${DESTDIR}${PREFIX}/bin/jpg2if - @chmod 755 ${DESTDIR}${PREFIX}/bin/if2png - @chmod 755 ${DESTDIR}${PREFIX}/bin/gif2if + @cp -f png2ff ff2png ${DESTDIR}${PREFIX}/bin + @chmod 755 ${DESTDIR}${PREFIX}/bin/png2ff + @chmod 755 ${DESTDIR}${PREFIX}/bin/ff2png uninstall: @echo removing executable files from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/png2if - @rm -f ${DESTDIR}${PREFIX}/bin/jpg2if - @rm -f ${DESTDIR}${PREFIX}/bin/if2png - @rm -f ${DESTDIR}${PREFIX}/bin/gif2if + @rm -f ${DESTDIR}${PREFIX}/bin/png2ff + @rm -f ${DESTDIR}${PREFIX}/bin/ff2png .PHONY: all options clean install uninstall -- cgit v1.2.3