From 22436f747d05e99d17bfc05a9d2892cc2ba579af Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Mon, 26 Dec 2016 19:20:59 -0500 Subject: Add build options for optional dependencies --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9caa9ca..b4d4f75 100644 --- a/Makefile +++ b/Makefile @@ -11,12 +11,15 @@ LIBS := -lImlib2 -lX11 -lXft # optional dependencies: # giflib: gif animations +ifeq ($(WITH_GIFLIB), 1) CPPFLAGS += -DHAVE_GIFLIB LIBS += -lgif +endif # libexif: jpeg auto-orientation, exif thumbnails +ifeq ($(WITH_LIBEXIF), 1) CPPFLAGS += -DHAVE_LIBEXIF LIBS += -lexif - +endif .PHONY: clean install uninstall -- cgit v1.2.3-54-g00ecf