aboutsummaryrefslogtreecommitdiff
path: root/build/import/liboci/rules.make
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-09-05 11:54:16 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-09-05 11:54:16 +0200
commitf024d16b9c78d683baa5d87b6e92b3d79a1f3300 (patch)
tree0f2c114c2d046a4abe1fe582f34d18b08f8cc2c0 /build/import/liboci/rules.make
parentdb57fa8ca484a677350299e691f0f6ba721904c8 (diff)
Add initial development infrastructure
Diffstat (limited to 'build/import/liboci/rules.make')
-rw-r--r--build/import/liboci/rules.make24
1 files changed, 24 insertions, 0 deletions
diff --git a/build/import/liboci/rules.make b/build/import/liboci/rules.make
new file mode 100644
index 0000000..6c980b4
--- /dev/null
+++ b/build/import/liboci/rules.make
@@ -0,0 +1,24 @@
+# file : build/import/liboci/rules.make
+# author : Constantin Michael <constantin@codesynthesis.com>
+# copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+# license : ODB NCUEL; see accompanying LICENSE file
+
+$(dcf_root)/import/liboci/%: root := $(liboci_root)
+$(dcf_root)/import/liboci/oci.l: | $(dcf_root)/import/liboci/.
+
+$(dcf_root)/import/liboci/oci.l: $(liboci_root)/lib/libclntsh.so
+ @echo $< >$@
+ @echo rpath:$(root)/lib >>$@
+
+$(dcf_root)/import/liboci/oci.l.cpp-options: | $(dcf_root)/import/liboci/.
+ @echo include: -I$(root)/rdbms/public >$@
+
+ifndef %foreign%
+
+disfigure::
+ $(call message,rm $(dcf_root)/import/liboci/oci.l,\
+rm -f $(dcf_root)/import/liboci/oci.l)
+ $(call message,rm $(dcf_root)/import/liboci/oci.l.cpp-options,\
+rm -f $(dcf_root)/import/liboci/oci.l.cpp-options)
+
+endif