summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-05-10 12:01:35 -0300
committermongo <andmarti@gmail.com>2017-05-10 12:01:35 -0300
commitb9ca2a55d4ad7e3c8cf015ead845d52b62e65319 (patch)
tree4aba035d2a4a488cff71664079fa49dfcf995f21 /src/Makefile
parentba151b06ae7d13e7cb17ab933dde4c5df8228b2b (diff)
autobackup feature - commit 1. :i command replaced with :load
Diffstat (limited to 'src/Makefile')
-rwxr-xr-xsrc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 4c3cea6..2cd6346 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -71,11 +71,16 @@ CFLAGS += -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""tmux show-buffer"\"
#CFLAGS += -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""xclip -o -selection clipboard"\"
#CFLAGS += -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=\""pbpaste"\"
-
# Uncomment for basic XLS import. Requires libxlsreader
#CFLAGS += -DXLS
#LDLIBS += -lxlsreader
+# Autobackup. If you unset this, no backup check nor autobackup feature will be available.
+CFLAGS += -DAUTOBACKUP
+# Have threads? Set these two, if you want the autobackup feature to work with threads.
+CFLAGS += -DHAVE_PTHREAD
+LDLIBS += -pthread
+
# NOTE: libxml and libzip are required for xlsx file import support
ifneq ($(shell pkg-config --exists libzip libxml-2.0 || echo 'no'),no)
CFLAGS += -DXLSX $(shell pkg-config --cflags libxml-2.0 libzip)