aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2014-12-08 08:20:55 +0100
committerBert Münnich <be.muennich@gmail.com>2014-12-08 08:20:55 +0100
commite228594391a8e7bc2d9ab66638cd571f99aac2c1 (patch)
tree47a97727682cff738b73f883302b47084457f2ef
parent6216bf6c2d42be63025d29550831d9f4447f4066 (diff)
Grouped optional dependencies in Makefile
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d22fab6..2edbe43 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,24 @@
-VERSION := git-20141201
+VERSION := git-20141208
PREFIX := /usr/local
MANPREFIX := $(PREFIX)/share/man
CC ?= gcc
CFLAGS += -std=c99 -Wall -pedantic
-CPPFLAGS += -I$(PREFIX)/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB
+CPPFLAGS += -I$(PREFIX)/include -D_XOPEN_SOURCE=500
LDFLAGS += -L$(PREFIX)/lib
-LIBS := -lX11 -lImlib2 -lexif -lgif
+LIBS := -lX11 -lImlib2
+
+# optional dependencies:
+# giflib: gif animations
+ CPPFLAGS += -DHAVE_GIFLIB
+ LIBS += -lgif
+# libexif: jpeg auto-orientation, exif thumbnails
+ CPPFLAGS += -DHAVE_LIBEXIF
+ LIBS += -lexif
+
+
+.PHONY: clean install uninstall
SRC := commands.c image.c main.c options.c thumbs.c util.c window.c
DEP := $(SRC:.c=.d)