summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-01-11 22:17:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-01-11 22:17:15 -0800
commitf46b90032f7bdfee52b699726c42e2687b699a94 (patch)
treeb38b13d3b93cb3b7a2c05f6c38e2e69467c1e572 /Makefile
parent7578fba17d68b6822bd089a0224dd5e736c17365 (diff)
downloadtxr-f46b90032f7bdfee52b699726c42e2687b699a94.tar.gz
txr-f46b90032f7bdfee52b699726c42e2687b699a94.tar.bz2
txr-f46b90032f7bdfee52b699726c42e2687b699a94.zip
* glob.c: New file.
(glob_wrap, glob_init): New functions. (errfunc_thunk): New static function. * glob.h: New file. * txr.c (main): call glob_init if HAVE_GLOB is defined. * configure (have_glob): New variable. (gen_config_make): Add have_glob to config/config.make. Detect glob function and set have_glob, and add HAVE_GLOB to config/config.h. * Makefile (OBJS): Include glob.h if have_glob is "y". * genvim.txr: Scan glob.c for functions and variables also. * txr.1: Documented glob and glob-related variables.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8e1e2733..8cea7f4f 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@ 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 rand.o combi.o sysif.o
OBJS-$(debug_support) += debug.o
OBJS-$(have_syslog) += syslog.o
+OBJS-$(have_glob) += glob.o
OBJS-$(have_posix_sigs) += signal.o
ifneq ($(have_git),)