aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-04-21 23:14:03 +0200
committerN-R-K <nrk@disroot.org>2022-05-30 14:07:01 +0200
commit197afce93508d0c17ec8966fb96deed80c3c0f82 (patch)
treecc9ee932218caa2243215a88a010f1494cb74855 /config.mk
parent450797c573ef4ae42e93de5571319a5318142df9 (diff)
downloadnsxiv-197afce93508d0c17ec8966fb96deed80c3c0f82.tar.zst
introduce config.mk
this moves all the build variables intended to be modified by the user over to `config.mk` similar to other suckless software. also move CPPFLAGS down below for cosmetic purposes.
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..c303e4b
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,25 @@
+# nsxiv version
+VERSION = 29
+
+# PREFIX for install
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
+EGPREFIX = $(PREFIX)/share/doc/nsxiv/examples
+
+# default value for optional dependencies. 1 = enabled, 0 = disabled
+OPT_DEP_DEFAULT = 1
+
+# autoreload backend: 1 = inotify, 0 = none
+HAVE_INOTIFY = $(OPT_DEP_DEFAULT)
+
+# optional dependencies, see README for more info
+HAVE_LIBFONTS = $(OPT_DEP_DEFAULT)
+HAVE_LIBGIF = $(OPT_DEP_DEFAULT)
+HAVE_LIBEXIF = $(OPT_DEP_DEFAULT)
+HAVE_LIBWEBP = $(OPT_DEP_DEFAULT)
+
+# CFLAGS, any optimization flags goes here
+CFLAGS = -std=c99 -Wall -pedantic
+
+# icons that will be installed via `make icon`
+ICONS = 16x16.png 32x32.png 48x48.png 64x64.png 128x128.png