summaryrefslogtreecommitdiff
path: root/libz/rules.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-05-03 09:51:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-05-03 09:51:56 +0200
commit1e552b818ee2f6680dd6f318c8aaea0b1f857955 (patch)
tree3a3aabb6ee7bcdf9975d7235328d0a48ff46bfe5 /libz/rules.make
Start tracking import stubs with git
Diffstat (limited to 'libz/rules.make')
-rw-r--r--libz/rules.make29
1 files changed, 29 insertions, 0 deletions
diff --git a/libz/rules.make b/libz/rules.make
new file mode 100644
index 0000000..952dad0
--- /dev/null
+++ b/libz/rules.make
@@ -0,0 +1,29 @@
+# file : build/import/libz/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/libz/%: root := $(libz_root)
+
+ifeq ($(libz_type),archive)
+
+$(dcf_root)/import/libz/z.l: $(libz_root)/libz.a
+ @echo $< >$@
+else
+
+$(dcf_root)/import/libz/z.l: $(libz_root)/libz.so
+ @echo $< >$@
+ @echo rpath:$(root) >>$@
+endif
+
+$(dcf_root)/import/libz/z.l.cpp-options:
+ @echo include: -I$(root) >$@
+
+ifndef %foreign%
+
+disfigure::
+ $(call message,rm $(dcf_root)/import/libz/z.l,\
+rm -f $(dcf_root)/import/libz/z.l)
+ $(call message,,rm -f $(dcf_root)/import/libz/z.l.cpp-options)
+
+endif