X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2FMakefile;h=14018b1c6d6fabda8868bf92ec983a9875ec3aa3;hb=749403f3dfb3d163068d133a25cae31c8994ee9b;hp=15dc0a246d60df199676c55244b9cce182ae0052;hpb=e30a6049a172b94b9e54d502f7b8d96746cd2187;p=libucw.git diff --git a/lib/Makefile b/lib/Makefile index 15dc0a24..14018b1c 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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