mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
examples: Define EDITLINE_LIBRARY when building locally
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
779db8817e
commit
53b160f6a1
@ -1,4 +1,5 @@
|
|||||||
noinst_PROGRAMS = testit cli excallback
|
noinst_PROGRAMS = testit cli excallback
|
||||||
LDADD = $(top_builddir)/src/libeditline.la
|
LDADD = $(top_builddir)/src/libeditline.la
|
||||||
|
AM_CPPFLAGS = -DEDITLINE_LIBRARY
|
||||||
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
||||||
AM_LDFLAGS = -static
|
AM_LDFLAGS = -static
|
||||||
|
@ -50,8 +50,8 @@ Jeff
|
|||||||
|
|
||||||
#include <termios.h> /* xxx - should make this more general */
|
#include <termios.h> /* xxx - should make this more general */
|
||||||
|
|
||||||
#ifdef READLINE_LIBRARY
|
#ifdef EDITLINE_LIBRARY
|
||||||
# include "readline.h"
|
# include "editline.h"
|
||||||
#else
|
#else
|
||||||
# include <readline/readline.h>
|
# include <readline/readline.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user