From ef0ed3226428c00507e76bdda77c522729ed6809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Sat, 11 Feb 2012 02:42:52 +0100 Subject: Removed exif support; made gif support non-optional --- Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c79cdcb..949084f 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ VERSION = git-20120211 CC = gcc CFLAGS = -ansi -Wall -pedantic -O2 LDFLAGS = -LIBS = -lX11 -lImlib2 +LIBS = -lX11 -lImlib2 -lgif PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man @@ -24,22 +24,19 @@ options: @echo "CC $<" @$(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $< -$(OBJ) config: Makefile config.h - -config: config.c - @$(CC) $(CFLAGS) -o $@ $@.c +$(OBJ): Makefile config.h config.h: @echo "creating $@ from config.def.h" @cp config.def.h $@ -sxiv: $(OBJ) config +sxiv: $(OBJ) @echo "CC -o $@" - @$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $$(./config -l) + @$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) clean: @echo "cleaning" - @rm -f $(OBJ) config sxiv sxiv-$(VERSION).tar.gz + @rm -f $(OBJ) sxiv sxiv-$(VERSION).tar.gz install: all @echo "installing executable file to $(DESTDIR)$(PREFIX)/bin" -- cgit v1.2.3