diff options
Diffstat (limited to 'lib/Makemodule.am')
-rw-r--r-- | lib/Makemodule.am | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 358b85aee..7a018f516 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -50,9 +50,19 @@ libcommon_la_SOURCES += lib/sysfs.c endif noinst_LTLIBRARIES += libtcolors.la -libtcolors_la_CFLAGS = $(AM_CFLAGS) $(TINFO_CFLAGS) -libtcolors_la_LIBADD = $(TINFO_LIBS) +libtcolors_la_CFLAGS = $(AM_CFLAGS) libtcolors_la_SOURCES = lib/colors.c lib/color-names.c include/colors.h include/color-names.h +libtcolors_la_LIBADD = +# tinfo or ncurses are optional +if HAVE_TINFO +libtcolors_la_LIBADD += $(TINFO_LIBS) +libtcolors_la_CFLAGS += $(TINFO_CFLAGS) +else +if HAVE_NCURSES +libtcolors_la_LIBADD += $(NCURSES_LIBS) +libtcolors_la_CFLAGS += $(NCURSES_CFLAGS) +endif +endif # !HAVE_TINFO dist_man_MANS += lib/terminal-colors.d.5 |