diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-06-04 16:41:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-06-04 16:41:28 +0200 |
commit | 073918a2f4bff3a6f12cfd722db50e3fb0a6db0d (patch) | |
tree | 3262b129c9d4762af7188a7eeb884ee95254ac49 /build/import/libmysqlclient/rules.make | |
parent | 1478050feff847b4899bbda3795a7bbe8a337444 (diff) |
Add libmysqlclient import stub
Diffstat (limited to 'build/import/libmysqlclient/rules.make')
-rw-r--r-- | build/import/libmysqlclient/rules.make | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/build/import/libmysqlclient/rules.make b/build/import/libmysqlclient/rules.make new file mode 100644 index 0000000..6b0ca89 --- /dev/null +++ b/build/import/libmysqlclient/rules.make @@ -0,0 +1,31 @@ +# file : build/import/libmysqlclient/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/%: root := $(libmysqlclient_root) + +ifeq ($(libmysqlclient_type),archive) + +$(dcf_root)/import/libmysqlclient/mysqlclient.l: $(libmysqlclient_root)/libmysql/.libs/libmysqlclient.a + @echo $< >$@ +else + +$(dcf_root)/import/libmysqlclient/mysqlclient.l: $(libmysqlclient_root)/libmysql/.libs/libmysqlclient.so + @echo $< >$@ + @echo rpath:$(root)/libmysql/.libs >>$@ +endif + +$(dcf_root)/import/libmysqlclient/mysqlclient.l.cpp-options: + @ln -s $(root)/include $(dcf_root)/import/libmysqlclient/mysql + @echo include: -I$(dcf_root)/import/libmysqlclient >$@ + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/import/libmysqlclient/mysqlclient.l,\ +rm -f $(dcf_root)/import/libmysqlclient/mysqlclient.l) + $(call message,,rm -f $(dcf_root)/import/libmysqlclient/mysql) + $(call message,,rm -f $(dcf_root)/import/libmysqlclient/mysqlclient.l.cpp-options) + +endif |