summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-02-11 02:42:52 +0100
committerBert Münnich <ber.t@gmx.com>2012-02-11 02:42:52 +0100
commitef0ed3226428c00507e76bdda77c522729ed6809 (patch)
tree41f4a1675c6a5fada955d331485010d5d0863590 /Makefile
parentc3c95ab2187037793f9a827a8930eb4080337487 (diff)
downloadnsxiv-ef0ed3226428c00507e76bdda77c522729ed6809.tar.zst
Removed exif support; made gif support non-optional
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 deletions
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"