endif
LIBUCW_MODS= \
+ threads \
alloc alloc_str realloc mempool mempool-str mempool-fmt \
mmap pagecache partmap hashfunc \
lists slists simple-lists sorter bitsig \
bbuf
LIBUCW_INCLUDES= \
- lib.h config.h math.h \
+ lib.h config.h threads.h math.h \
mempool.h pagecache.h \
sorter.h arraysort.h \
lists.h clists.h \
base64.h base224.h \
qache.h
+ifdef CONFIG_UCW_THREADS
+# Some modules require threading
+LIBS+=-lpthread
+LIBUCW_MODS+=threads-conf workqueue
+LIBUCW_INCLUDES+=workqueue.h
+endif
+
ifdef CONFIG_OWN_REGEX
include $(s)/lib/regex/Makefile
endif