aboutsummaryrefslogtreecommitdiff
path: root/odb/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:51:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:51:09 +0200
commitacb656e605d91971ee4014da66be1b7ba6201ac3 (patch)
tree96bd2145eafe938647c6d510d58dc217a22344c7 /odb/makefile
parentd8b70727fdda5c1de19736724809e76e060b417e (diff)
Add multi-threading primitives
Currently only the pthread-based implementation is present.
Diffstat (limited to 'odb/makefile')
-rw-r--r--odb/makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/makefile b/odb/makefile
index bae84e0..047ff1c 100644
--- a/odb/makefile
+++ b/odb/makefile
@@ -13,6 +13,10 @@ exceptions.cxx \
database.cxx \
transaction.cxx
+# POSIX-based implementation details.
+#
+cxx_tun += details/posix/exceptions.cxx details/posix/thread.cxx
+
cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o))
cxx_od := $(cxx_obj:.o=.o.d)
@@ -26,7 +30,7 @@ clean := $(out_base)/.clean
# Build.
#
-$(odb.l): $(cxx_obj)
+$(odb.l): $(cxx_obj) -lpthread
$(cxx_obj) $(cxx_od): $(odb.l.cpp-options)
$(odb.l.cpp-options): value := -I$(src_root)