From e01115702ad73c32efdf11b97d84a81f59300e1d Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 23 Dec 2016 02:01:39 +0100 Subject: common: thread-pool: initial work --- Makefile.am | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 219d843..b7388a0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,6 +65,7 @@ noinst_HEADERS = \ src/common/error.h \ src/common/file.h \ src/common/stdin.h \ + src/common/thread-pool.h \ src/common/utf8.h \ src/common/utils.h \ $(NULL) @@ -111,6 +112,12 @@ noinst_LTLIBRARIES += \ $(NULL) endif +if USE_THREADS +noinst_LTLIBRARIES += \ + libblogc_common_tp.la \ + $(NULL) +endif + check_PROGRAMS = \ $(NULL) @@ -152,6 +159,22 @@ libblogc_common_la_CFLAGS = \ $(NULL) +if USE_THREADS +libblogc_common_tp_la_SOURCES = \ + src/common/thread-pool.c \ + $(NULL) + +libblogc_common_tp_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(PTHREAD_CFLAGS) \ + $(NULL) + +libblogc_common_tp_la_LIBADD = \ + $(PTHREAD_LIBS) \ + $(NULL) +endif + + blogc_SOURCES = \ src/blogc/main.c \ $(NULL) -- cgit v1.2.3-18-g5258