diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-28 11:30:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-28 11:30:26 +0000 |
commit | 2ba339a26bc02bf4caa92e735ba79bd0dcc76a9f (patch) | |
tree | c5bdd6b1e1dfe58f3f7cc279cbdf9392578c699a /src/fe-text/Makefile.am | |
parent | 8567481fd058a9f66c76a55e02305c97153b7588 (diff) | |
download | irssi-2ba339a26bc02bf4caa92e735ba79bd0dcc76a9f.zip |
Added support for using terminfo/termcap instead of curses. By default,
configure chooses to use ncurses if found, of terminfo if only curses was
found. --with-terminfo parameter can be used to specify if you want it or
not.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1924 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/Makefile.am')
-rw-r--r-- | src/fe-text/Makefile.am | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/src/fe-text/Makefile.am b/src/fe-text/Makefile.am index 00e0f856..faf1494f 100644 --- a/src/fe-text/Makefile.am +++ b/src/fe-text/Makefile.am @@ -19,9 +19,27 @@ irssi_LDADD = \ @COMMON_LIBS@ \ @PERL_LINK_LIBS@ \ @PERL_FE_LINK_LIBS@ \ - @PERL_LINK_FLAGS@ \ - $(PROG_LIBS) \ - $(CURSES_LIBS) + @PERL_LINK_FLAGS@ + +tparm_sources = \ + tparm.c + +terminfo_sources = \ + term-terminfo.c \ + terminfo-core.c + +curses_sources = \ + term-curses.c + +if NEED_TPARM +use_tparm_sources = $(tparm_sources) +endif + +if USE_CURSES +use_term_sources = $(curses_sources) +else +use_term_sources = $(terminfo_sources) +endif irssi_SOURCES = \ gui-entry.c \ @@ -33,10 +51,12 @@ irssi_SOURCES = \ mainwindows.c \ mainwindow-activity.c \ mainwindows-layout.c \ - screen.c \ statusbar.c \ statusbar-config.c \ statusbar-items.c \ + term.c \ + $(use_tparm_sources) \ + $(use_term_sources) \ textbuffer.c \ textbuffer-commands.c \ textbuffer-reformat.c \ @@ -50,12 +70,18 @@ noinst_HEADERS = \ gui-readline.h \ gui-windows.h \ mainwindows.h \ - screen.h \ statusbar.h \ statusbar-config.h \ statusbar-items.h \ + term.h \ + terminfo-core.h \ textbuffer.h \ textbuffer-view.h \ textbuffer-reformat.h \ module.h \ module-formats.h + +EXTRA_DIST = \ + $(tparm_sources) \ + $(terminfo_sources) \ + $(curses_sources) |