summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-05 08:19:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-05 08:19:43 -0700
commit7007754f037dd1d6ef4f9cfd636ef91016809737 (patch)
tree7ce814df93acd143ccbd4ad66f87ce33d244f0ca /Makefile
parentedbb612c40e3541a170aeaaf41ad8703c8b70cf9 (diff)
downloadtxr-7007754f037dd1d6ef4f9cfd636ef91016809737.tar.gz
txr-7007754f037dd1d6ef4f9cfd636ef91016809737.tar.bz2
txr-7007754f037dd1d6ef4f9cfd636ef91016809737.zip
Basic REPL based on linenoise.
* Makefile (OBJS): Only include linenoise.o if have_termios is y. * configure: Adding test for termios. (have_termios): New configure and config.make variable. (gen_config_make): Generate have_termios variable. * parser.c (repl): New function. * parser.h (repl): Declared. * txr.c (help): Summarize new -i option. (txr_main): Implement -i repl.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dfbf6310..c05ecb75 100644
--- a/Makefile
+++ b/Makefile
@@ -47,11 +47,11 @@ EXTRA_OBJS-y :=
OBJS := txr.o lex.yy.o y.tab.o match.o lib.o regex.o gc.o unwind.o stream.o
OBJS += arith.o hash.o utf8.o filter.o eval.o parser.o rand.o combi.o sysif.o
OBJS += args.o lisplib.o cadr.o struct.o
-OBJS += linenoise/linenoise.o
OBJS-$(debug_support) += debug.o
OBJS-$(have_syslog) += syslog.o
OBJS-$(have_glob) += glob.o
OBJS-$(have_posix_sigs) += signal.o
+OBJS-$(have_termios) += linenoise/linenoise.o
EXTRA_OBJS-$(add_win_res) += win/txr.res
ifneq ($(have_git),)