Krolyxon
Commit 22436f7

Branches

Refs →

nsxiv22436f7

Add build options for optional dependencies

Author
Vlad Glagolev
Date
2016-12-26 19:20 -0500
Parent
ff2ce99
Commit
22436f747d05e99d17bfc05a9d2892cc2ba579af

+4 −1

1 file changed

  1. M Makefile +4 −1
M Makefile View
@@ -11,12 +11,15 @@ LIBS := -lImlib2 -lX11 -lXft
1111
1212 # optional dependencies:
1313 # giflib: gif animations
14+ifeq ($(WITH_GIFLIB), 1)
1415 CPPFLAGS += -DHAVE_GIFLIB
1516 LIBS += -lgif
17+endif
1618 # libexif: jpeg auto-orientation, exif thumbnails
19+ifeq ($(WITH_LIBEXIF), 1)
1720 CPPFLAGS += -DHAVE_LIBEXIF
1821 LIBS += -lexif
19−
22+endif
2023
2124 .PHONY: clean install uninstall
2225