diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-18 14:31:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-18 14:31:14 +0200 |
commit | 62e7abd564f6f9c7a3ab9e7e469853c93bd0e4c9 (patch) | |
tree | 6a7be7644a41053f14bc1b3f3df4b93528beaed8 /build/import/libsqlite/rules.make | |
parent | b0f1eb606642f300eb42095127dd6fbd8ad1f41a (diff) |
Add libsqlite import stub
Diffstat (limited to 'build/import/libsqlite/rules.make')
-rw-r--r-- | build/import/libsqlite/rules.make | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/build/import/libsqlite/rules.make b/build/import/libsqlite/rules.make new file mode 100644 index 0000000..4bc279b --- /dev/null +++ b/build/import/libsqlite/rules.make @@ -0,0 +1,29 @@ +# file : build/import/libsqlite/rules.make +# author : Boris Kolpackov <boris@codesynthesis.com> +# copyright : Copyright (c) 2009-2011 Boris Kolpackov +# license : GNU GPL v2; see accompanying LICENSE file + +$(dcf_root)/import/libsqlite/%: root := $(libsqlite_root) + +ifeq ($(libsqlite_type),archive) + +$(dcf_root)/import/libsqlite/sqlite.l: $(libsqlite_root)/.libs/libsqlite3.a + @echo $< >$@ +else + +$(dcf_root)/import/libsqlite/sqlite.l: $(libsqlite_root)/.libs/libsqlite3.so + @echo $< >$@ + @echo rpath:$(root) >>$@ +endif + +$(dcf_root)/import/libsqlite/sqlite.l.cpp-options: + @echo include: -I$(root) >$@ + +ifndef %foreign% + +disfigure:: + $(call message,rm $(dcf_root)/import/libsqlite/sqlite.l,\ +rm -f $(dcf_root)/import/libsqlite/sqlite.l) + $(call message,,rm -f $(dcf_root)/import/libsqlite/sqlite.l.cpp-options) + +endif |