nsxiv22436f7
Add build options for optional dependencies
+4 −1
1 file changed
- M Makefile +4 −1
| @@ -11,12 +11,15 @@ LIBS := -lImlib2 -lX11 -lXft | |||
| 11 | 11 | ||
| 12 | 12 | # optional dependencies: | |
| 13 | 13 | # giflib: gif animations | |
| 14 | + | ifeq ($(WITH_GIFLIB), 1) | |
| 14 | 15 | CPPFLAGS += -DHAVE_GIFLIB | |
| 15 | 16 | LIBS += -lgif | |
| 17 | + | endif | |
| 16 | 18 | # libexif: jpeg auto-orientation, exif thumbnails | |
| 19 | + | ifeq ($(WITH_LIBEXIF), 1) | |
| 17 | 20 | CPPFLAGS += -DHAVE_LIBEXIF | |
| 18 | 21 | LIBS += -lexif | |
| 19 | − | ||
| 22 | + | endif | |
| 20 | 23 | ||
| 21 | 24 | .PHONY: clean install uninstall | |
| 22 | 25 | ||