aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2017-09-06 20:12:09 +0200
committerBert Münnich <ber.t@posteo.de>2017-09-06 20:12:09 +0200
commitad9955a9cf2200bf00e607da39a226c4c1d45a6b (patch)
tree52100ca66738068918cc06348c5e48191ac9671e /config.mk
parentec545a6b6c3339edfd0536a2af4cb7e91888285f (diff)
downloadnsxiv-ad9955a9cf2200bf00e607da39a226c4c1d45a6b.tar.zst
Move configuration parts from Makefile into config.mk
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..a20e6e3
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,24 @@
+PREFIX := /usr/local
+MANPREFIX := $(PREFIX)/share/man
+
+CC ?= gcc
+CFLAGS += -std=c99 -Wall -pedantic
+CPPFLAGS += -I/usr/include/freetype2 -D_XOPEN_SOURCE=700
+LDFLAGS +=
+LIBS := -lImlib2 -lX11 -lXft
+
+# autoreload backend: inotify/nop
+AUTORELOAD := inotify
+
+# optional dependencies:
+# giflib: gif animations
+ifndef NO_GIFLIB
+ CPPFLAGS += -DHAVE_GIFLIB
+ LIBS += -lgif
+endif
+# libexif: jpeg auto-orientation, exif thumbnails
+ifndef NO_LIBEXIF
+ CPPFLAGS += -DHAVE_LIBEXIF
+ LIBS += -lexif
+endif
+