Makefile: make it easier to compile without system curses/ncurses but use minicurses - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
HTML git clone git://git.codemadness.org/sfeed_curses
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d05b6dc39d336a276c4e44aee6945723d5876382
DIR parent eb8942d2cd37c17cfb4ca15ea10eb438edb23e4f
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Dec 2020 17:04:50 +0100
Makefile: make it easier to compile without system curses/ncurses but use minicurses
Diffstat:
M Makefile | 5 +++++
M sfeed_curses.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -26,6 +26,11 @@ SFEED_CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE \
#SFEED_CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
# -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -DSFEED_THEME=\"themes/${SFEED_THEME}.h\"
+# use minicurses with hardcoded escape sequences (not the system curses).
+#SFEED_CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE \
+# -DSFEED_THEME=\"themes/${SFEED_THEME}.h\" -DSFEED_MINICURSES
+#SFEED_LDFLAGS = ${LDFLAGS}
+
BIN = sfeed_curses
SCRIPTS = sfeed_content sfeed_markread
DIR diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -18,8 +18,12 @@
#include <wchar.h>
/* curses */
+#ifndef SFEED_MINICURSES
#include <curses.h>
#include <term.h>
+#else
+#include "minicurses.h"
+#endif
#define LEN(a) sizeof((a))/sizeof((a)[0])