summaryrefslogtreecommitdiff
path: root/libxqilla/rules.make
diff options
context:
space:
mode:
Diffstat (limited to 'libxqilla/rules.make')
-rw-r--r--libxqilla/rules.make30
1 files changed, 30 insertions, 0 deletions
diff --git a/libxqilla/rules.make b/libxqilla/rules.make
new file mode 100644
index 0000000..e0cb416
--- /dev/null
+++ b/libxqilla/rules.make
@@ -0,0 +1,30 @@
+# file : build/import/libxqilla/rules.make
+# author : Boris Kolpackov <boris@kolpackov.net>
+# copyright : Copyright (c) 2005-2010 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(dcf_root)/import/libxqilla/%: root := $(libxqilla_root)
+
+ifeq ($(libxqilla_type),archive)
+
+$(dcf_root)/import/libxqilla/xqilla.l: $(libxqilla_root)/.libs/libxqilla.a
+ @echo $< >$@
+else
+
+$(dcf_root)/import/libxqilla/xqilla.l: $(libxqilla_root)/.libs/libxqilla.so
+ @echo $< >$@
+ @echo rpath:$(root)/.libs >>$@
+endif
+
+$(dcf_root)/import/libxqilla/xqilla.l.cpp-options:
+ @echo include: -I$(root)/include >$@
+
+
+ifndef %foreign%
+
+disfigure::
+ $(call message,rm $(dcf_root)/import/libxqilla/xqilla.l,\
+rm -f $(dcf_root)/import/libxqilla/xqilla.l)
+ $(call message,,rm -f $(dcf_root)/import/libxqilla/xqilla.l.cpp-options)
+
+endif