| 1 | PREFIX := /usr/local |
| 2 | MANPREFIX := $(PREFIX)/share/man |
| 3 | |
| 4 | CC ?= gcc |
| 5 | CFLAGS += -std=c99 -Wall -pedantic |
| 6 | CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700 |
| 7 | LDFLAGS += |
| 8 | LIBS := -lImlib2 -lX11 -lXft |
| 9 | |
| 10 | # autoreload backend: inotify/nop |
| 11 | AUTORELOAD := inotify |
| 12 | |
| 13 | # optional dependencies: |
| 14 | # giflib: gif animations |
| 15 | ifndef NO_GIFLIB |
| 16 | CPPFLAGS += -DHAVE_GIFLIB |
| 17 | LIBS += -lgif |
| 18 | endif |
| 19 | # libexif: jpeg auto-orientation, exif thumbnails |
| 20 | ifndef NO_LIBEXIF |
| 21 | CPPFLAGS += -DHAVE_LIBEXIF |
| 22 | LIBS += -lexif |
| 23 | endif |
| 24 | |