]> mj.ucw.cz Git - libucw.git/blobdiff - lib/Makefile
Remove relics of pre-CONFIG_UCW_THREADS times.
[libucw.git] / lib / Makefile
index 15dc0a246d60df199676c55244b9cce182ae0052..14018b1c6d6fabda8868bf92ec983a9875ec3aa3 100644 (file)
@@ -7,6 +7,7 @@ PROGS+=$(o)/lib/db-tool
 endif
 
 LIBUCW_MODS= \
+       threads \
        alloc alloc_str realloc mempool mempool-str mempool-fmt \
        mmap pagecache partmap hashfunc \
        lists slists simple-lists sorter bitsig \
@@ -32,7 +33,7 @@ LIBUCW_MODS= \
        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 \
@@ -54,6 +55,13 @@ LIBUCW_INCLUDES= \
        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