aboutsummaryrefslogtreecommitdiff
path: root/build/import/libmysqlclient_r/rules.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:54:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:54:44 +0200
commit47317b091245f7ab5df305953270bedcef3374fb (patch)
tree62571eeb8ba8d28f77bfa4f8c55e1209ffc95ec8 /build/import/libmysqlclient_r/rules.make
parent4753ee4a133e1e6b23b86b6f1b61e3e4e840417f (diff)
Add stub for multi-threaded version of MySQL client library
Diffstat (limited to 'build/import/libmysqlclient_r/rules.make')
-rw-r--r--build/import/libmysqlclient_r/rules.make31
1 files changed, 31 insertions, 0 deletions
diff --git a/build/import/libmysqlclient_r/rules.make b/build/import/libmysqlclient_r/rules.make
new file mode 100644
index 0000000..a0d4604
--- /dev/null
+++ b/build/import/libmysqlclient_r/rules.make
@@ -0,0 +1,31 @@
+# file : build/import/libmysqlclient_r/rules.make
+# author : Boris Kolpackov <boris@kolpackov.net>
+# copyright : Copyright (c) 2009-2010 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(dcf_root)/import/libmysqlclient_r/%: root := $(libmysqlclient_r_root)
+
+ifeq ($(libmysqlclient_r_type),archive)
+
+$(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l: $(libmysqlclient_r_root)/libmysql/.libs/libmysqlclient_r.a
+ @echo $< >$@
+else
+
+$(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l: $(libmysqlclient_r_root)/libmysql/.libs/libmysqlclient_r.so
+ @echo $< >$@
+ @echo rpath:$(root)/libmysql/.libs >>$@
+endif
+
+$(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l.cpp-options:
+ @ln -s $(root)/include $(dcf_root)/import/libmysqlclient_r/mysql
+ @echo include: -I$(dcf_root)/import/libmysqlclient_r >$@
+
+ifndef %foreign%
+
+disfigure::
+ $(call message,rm $(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l,\
+rm -f $(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l)
+ $(call message,,rm -f $(dcf_root)/import/libmysqlclient_r/mysql)
+ $(call message,,rm -f $(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l.cpp-options)
+
+endif