summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/.gitignore3
-rw-r--r--build/bootstrap.build10
-rw-r--r--build/bootstrap.make70
-rw-r--r--build/export.build9
-rw-r--r--build/export/libodb-oracle/stub.make8
-rw-r--r--build/import/cli/cli-cxx.make47
-rw-r--r--build/import/cli/configuration-rules.make13
-rwxr-xr-xbuild/import/cli/configure53
-rw-r--r--build/import/cli/stub.make28
-rw-r--r--build/import/liboci/configuration-rules.make13
-rwxr-xr-xbuild/import/liboci/configure70
-rw-r--r--build/import/liboci/rules.make24
-rw-r--r--build/import/liboci/stub.make22
-rw-r--r--build/import/liboci/version1
-rw-r--r--build/import/libodb-oracle/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb-oracle/configure53
-rw-r--r--build/import/libodb-oracle/stub.make28
-rw-r--r--build/import/libodb/configuration-rules.make13
-rwxr-xr-xbuild/import/libodb/configure53
-rw-r--r--build/import/libodb/stub.make28
-rw-r--r--build/root.build19
21 files changed, 0 insertions, 578 deletions
diff --git a/build/.gitignore b/build/.gitignore
deleted file mode 100644
index 4a730a3..0000000
--- a/build/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-config.build
-root/
-bootstrap/
diff --git a/build/bootstrap.build b/build/bootstrap.build
deleted file mode 100644
index 8bb932b..0000000
--- a/build/bootstrap.build
+++ /dev/null
@@ -1,10 +0,0 @@
-# file : build/bootstrap.build
-# license : ODB NCUEL; see accompanying LICENSE file
-
-project = libodb-oracle
-
-using version
-using config
-using dist
-using test
-using install
diff --git a/build/bootstrap.make b/build/bootstrap.make
deleted file mode 100644
index 1b8004f..0000000
--- a/build/bootstrap.make
+++ /dev/null
@@ -1,70 +0,0 @@
-# file : build/bootstrap.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-project_name := libodb-oracle
-
-# First try to include the bundled bootstrap.make if it exist. If that
-# fails, let make search for the external bootstrap.make.
-#
-build := build-0.3
-
--include $(dir $(lastword $(MAKEFILE_LIST)))../../$(build)/bootstrap.make
-
-ifeq ($(patsubst %build/bootstrap.make,,$(lastword $(MAKEFILE_LIST))),)
-include $(build)/bootstrap.make
-endif
-
-
-# Aliases
-#
-.PHONY: $(out_base)/ \
- $(out_base)/.test \
- $(out_base)/.dist \
- $(out_base)/.clean
-
-ifdef %interactive%
-
-.PHONY: test dist clean
-
-test: $(out_base)/.test
-dist: $(out_base)/.dist
-clean: $(out_base)/.clean
-
-ifneq ($(filter $(.DEFAULT_GOAL),test dist clean),)
-.DEFAULT_GOAL :=
-endif
-
-endif
-
-# Make sure the distribution prefix is set if the goal is dist.
-#
-ifneq ($(filter $(MAKECMDGOALS),dist),)
-ifeq ($(dist_prefix),)
-$(error dist_prefix is not set)
-endif
-endif
-
-# If we don't have dependency auto-generation then we need to manually
-# make sure that generated files are generated before C++ file are
-# compiler. To do this we make the object files ($2) depend in order-
-# only on generated files ($3).
-#
-ifeq ($(cxx_id),generic)
-
-define include-dep
-$(if $2,$(eval $2: | $3))
-endef
-
-else
-
-define include-dep
-$(call -include,$1)
-endef
-
-endif
-
-# Don't include dependency info for certain targets.
-#
-ifneq ($(filter $(MAKECMDGOALS),clean disfigure dist),)
-include-dep =
-endif
diff --git a/build/export.build b/build/export.build
deleted file mode 100644
index 00ecc72..0000000
--- a/build/export.build
+++ /dev/null
@@ -1,9 +0,0 @@
-# file : build/export.build
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$out_root/
-{
- include odb/oracle/
-}
-
-export $out_root/odb/oracle/lib{odb-oracle}
diff --git a/build/export/libodb-oracle/stub.make b/build/export/libodb-oracle/stub.make
deleted file mode 100644
index 499f11b..0000000
--- a/build/export/libodb-oracle/stub.make
+++ /dev/null
@@ -1,8 +0,0 @@
-# file : build/export/libodb-oracle/stub.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$(call include-once,$(src_root)/odb/oracle/makefile,$(out_root))
-
-$(call export,\
- l: $(out_root)/odb/oracle/odb-oracle.l,\
- cpp-options: $(out_root)/odb/oracle/odb-oracle.l.cpp-options)
diff --git a/build/import/cli/cli-cxx.make b/build/import/cli/cli-cxx.make
deleted file mode 100644
index 9bdf238..0000000
--- a/build/import/cli/cli-cxx.make
+++ /dev/null
@@ -1,47 +0,0 @@
-# file : build/import/cli/cli-cxx.make
-# license : MIT; see accompanying LICENSE file
-
-# Here we are operating in the importing project's space, not in
-# cli's.
-#
-
-# Get the C++ file extensions.
-#
-$(call include,$(bld_root)/cxx/configuration-static.make)
-
-cli_pattern := \
-$(out_base)/%.$(cxx_s_suffix) \
-$(out_base)/%.$(cxx_h_suffix) \
-$(out_base)/%.$(cxx_i_suffix)
-
-$(cli_pattern): cli_options := \
---hxx-suffix .$(cxx_h_suffix) \
---ixx-suffix .$(cxx_i_suffix) \
---cxx-suffix .$(cxx_s_suffix)
-
-.PRECIOUS: $(cli_pattern)
-
-ifeq ($(out_base),$(src_base))
-
-$(cli_pattern): $(src_base)/%.cli
- $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<)
-
-else
-
-$(cli_pattern): $(src_base)/%.cli | $$(dir $$@).
- $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<)
-
-$(cli_pattern): $(out_base)/%.cli | $$(dir $$@).
- $(call message,cli $<,$(cli) $(cli_options) --output-dir $(dir $@) $<)
-endif
-
-.PHONY: $(out_base)/%.cxx.cli.clean
-
-$(out_base)/%.cxx.cli.clean: cxx_s_suffix := $(cxx_s_suffix)
-$(out_base)/%.cxx.cli.clean: cxx_h_suffix := $(cxx_h_suffix)
-$(out_base)/%.cxx.cli.clean: cxx_i_suffix := $(cxx_i_suffix)
-
-$(out_base)/%.cxx.cli.clean:
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_s_suffix)))
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_h_suffix)))
- $(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_i_suffix)))
diff --git a/build/import/cli/configuration-rules.make b/build/import/cli/configuration-rules.make
deleted file mode 100644
index 6355000..0000000
--- a/build/import/cli/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/cli/configuration-rules.make
-# license : MIT; see accompanying LICENSE file
-
-$(dcf_root)/import/cli/configuration-dynamic.make: | $(dcf_root)/import/cli/.
- $(call message,,$(scf_root)/import/cli/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/cli/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/cli/configuration-dynamic.make)
-
-endif
diff --git a/build/import/cli/configure b/build/import/cli/configure
deleted file mode 100755
index 2a1fde4..0000000
--- a/build/import/cli/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/cli/configure
-# license : MIT; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'cli' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed "
-$echo "version of 'cli' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'cli'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'cli'."
-$eche
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo cli_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/cli/stub.make b/build/import/cli/stub.make
deleted file mode 100644
index 741b371..0000000
--- a/build/import/cli/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/cli/stub.make
-# license : MIT; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/cli/configuration-rules.make,$(dcf_root))
-
-cli_installed :=
-
-$(call -include,$(dcf_root)/import/cli/configuration-dynamic.make)
-
-ifdef cli_installed
-
-ifeq ($(cli_installed),y)
-
-$(call export,cli: cli,cli-rules: $(scf_root)/import/cli/cli-cxx.make)
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/cli/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/liboci/configuration-rules.make b/build/import/liboci/configuration-rules.make
deleted file mode 100644
index dac07e8..0000000
--- a/build/import/liboci/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/liboci/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/liboci/configuration-dynamic.make: | $(dcf_root)/import/liboci/.
- $(call message,,$(scf_root)/import/liboci/configure $@)
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/liboci/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/liboci/configuration-dynamic.make)
-
-endif
diff --git a/build/import/liboci/configure b/build/import/liboci/configure
deleted file mode 100755
index 5fcefa5..0000000
--- a/build/import/liboci/configure
+++ /dev/null
@@ -1,70 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/liboci/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out config file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-$echo
-$echo "Configuring external dependency on 'OCI library' for '$project_name'."
-$echo
-
-$echo
-$echo "Please enter the 'Oracle' home or 'Instant Client' directory."
-$echo
-
-liboci_root=$ORACLE_HOME
-liboci_include=
-liboci_lib=
-
-while [ -z "$liboci_include" ]; do
- liboci_root=`read_path --directory --exist $liboci_root`
-
- if [ -d "$liboci_root/sdk/include" ]; then
- liboci_include="$liboci_root/sdk/include"
-
- liboci_lib=`ls $liboci_root/libclntsh.so 2>/dev/null`
- if [ -z "$liboci_lib" ]; then
- liboci_lib=`ls $liboci_root/libclntsh.so.* 2>/dev/null`
- fi
-
- elif [ -d "$liboci_root/rdbms/public" ]; then
- liboci_include="$liboci_root/rdbms/public"
- liboci_lib=`ls $liboci_root/lib/libclntsh.so 2>/dev/null`
- elif [ -d "$liboci_root/include" ]; then
- liboci_include="$liboci_root/include"
-
- liboci_lib=`ls $liboci_root/lib/libclntsh.so 2>/dev/null`
- if [ -z "$liboci_lib" ]; then
- liboci_lib=`ls $liboci_root/lib/libclntsh.so.* 2>/dev/null`
- fi
- fi
-
- if [ -z "$liboci_include" ]; then
- liboci_root=
-
- $echo
- $echo "The specified directory looks like neither an Instant Client nor"
- $echo "an Oracle home directory."
- $echo
- elif [ -z "$liboci_lib" ]; then
- liboci_root=
- liboci_include=
-
- $echo
- $echo "The libclntsh.so shared library not found."
- $echo
- fi
-
-done
-
-echo liboci_root := $liboci_root > $1
-echo liboci_include := $liboci_include >>$1
-echo liboci_lib := $liboci_lib >>$1
diff --git a/build/import/liboci/rules.make b/build/import/liboci/rules.make
deleted file mode 100644
index 2d0664e..0000000
--- a/build/import/liboci/rules.make
+++ /dev/null
@@ -1,24 +0,0 @@
-# file : build/import/liboci/rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/liboci/%: root := $(liboci_root)
-$(dcf_root)/import/liboci/%: include := $(liboci_include)
-$(dcf_root)/import/liboci/%: lib := $(liboci_lib)
-$(dcf_root)/import/liboci/oci.l: | $(dcf_root)/import/liboci/.
-
-$(dcf_root)/import/liboci/oci.l: $(liboci_lib)
- @echo $(lib) >$@
- @echo rpath:$(dir $(lib)) >>$@
-
-$(dcf_root)/import/liboci/oci.l.cpp-options: | $(dcf_root)/import/liboci/.
- @echo include: -I$(include) >$@
-
-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
diff --git a/build/import/liboci/stub.make b/build/import/liboci/stub.make
deleted file mode 100644
index f419ada..0000000
--- a/build/import/liboci/stub.make
+++ /dev/null
@@ -1,22 +0,0 @@
-# file : build/import/liboci/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/liboci/configuration-rules.make,$(dcf_root))
-
-liboci_root :=
-
-$(call -include,$(dcf_root)/import/liboci/configuration-dynamic.make)
-
-ifdef liboci_root
-
-$(call include-once,$(scf_root)/import/liboci/rules.make,$(dcf_root))
-
-$(call export,\
- l: $(dcf_root)/import/liboci/oci.l,\
- cpp-options: $(dcf_root)/import/liboci/oci.l.cpp-options)
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/liboci/version b/build/import/liboci/version
deleted file mode 100644
index 6e8bf73..0000000
--- a/build/import/liboci/version
+++ /dev/null
@@ -1 +0,0 @@
-0.1.0
diff --git a/build/import/libodb-oracle/configuration-rules.make b/build/import/libodb-oracle/configuration-rules.make
deleted file mode 100644
index cef4150..0000000
--- a/build/import/libodb-oracle/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb-oracle/configuration-rules.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb-oracle/configuration-dynamic.make: | $(dcf_root)/import/libodb-oracle/.
- $(call message,,$(scf_root)/import/libodb-oracle/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb-oracle/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb-oracle/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb-oracle/configure b/build/import/libodb-oracle/configure
deleted file mode 100755
index 81cd5e4..0000000
--- a/build/import/libodb-oracle/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb-oracle/configure
-# license : ODB NCUEL; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb-oracle' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed version"
-$echo "of 'libodb-oracle' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb-oracle'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb-oracle'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_oracle_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb-oracle/stub.make b/build/import/libodb-oracle/stub.make
deleted file mode 100644
index 6861dc7..0000000
--- a/build/import/libodb-oracle/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb-oracle/stub.make
-# license : ODB NCUEL; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb-oracle/configuration-rules.make,$(dcf_root))
-
-libodb_oracle_installed :=
-
-$(call -include,$(dcf_root)/import/libodb-oracle/configuration-dynamic.make)
-
-ifdef libodb_oracle_installed
-
-ifeq ($(libodb_oracle_installed),y)
-
-$(call export,l: -lodb-oracle -lodb -lclntsh,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb-oracle/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libodb/configuration-rules.make b/build/import/libodb/configuration-rules.make
deleted file mode 100644
index 340c418..0000000
--- a/build/import/libodb/configuration-rules.make
+++ /dev/null
@@ -1,13 +0,0 @@
-# file : build/import/libodb/configuration-rules.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libodb/configuration-dynamic.make: | $(dcf_root)/import/libodb/.
- $(call message,,$(scf_root)/import/libodb/configure $@)
-
-ifndef %foreign%
-
-$(dcf_root)/.disfigure::
- $(call message,rm $(dcf_root)/import/libodb/configuration-dynamic.make,\
-rm -f $(dcf_root)/import/libodb/configuration-dynamic.make)
-
-endif
diff --git a/build/import/libodb/configure b/build/import/libodb/configure
deleted file mode 100755
index 261a202..0000000
--- a/build/import/libodb/configure
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /usr/bin/env bash
-
-# file : build/import/libodb/configure
-# license : GNU GPL v2; see accompanying LICENSE file
-
-
-# $1 - out file
-#
-# bld_root - build root
-# project_name - project name
-#
-
-source $bld_root/dialog.bash
-
-
-$echo
-$echo "Configuring external dependency on 'libodb' for '$project_name'."
-$echo
-
-$echo
-$echo "Would you like to configure dependency on the installed "
-$echo "version of 'libodb' as opposed to the development build?"
-$echo
-
-installed=`read_y_n y`
-
-path=
-
-if [ "$installed" = "n" ]; then
-
-$echo
-$echo "Please enter the src_root for 'libodb'."
-$echo
-
-src_root=`read_path --directory --exist`
-
-$echo
-$echo "Please enter the out_root for 'libodb'."
-$echo
-
-out_root=`read_path --directory $src_root`
-
-fi
-
-echo libodb_installed := $installed >$1
-
-if [ "$installed" = "n" ]; then
-
-echo src_root := $src_root >>$1
-echo scf_root := \$\(src_root\)/build >>$1
-echo out_root := $out_root >>$1
-
-fi
diff --git a/build/import/libodb/stub.make b/build/import/libodb/stub.make
deleted file mode 100644
index 04dc786..0000000
--- a/build/import/libodb/stub.make
+++ /dev/null
@@ -1,28 +0,0 @@
-# file : build/import/libodb/stub.make
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libodb/configuration-rules.make,$(dcf_root))
-
-libodb_installed :=
-
-$(call -include,$(dcf_root)/import/libodb/configuration-dynamic.make)
-
-ifdef libodb_installed
-
-ifeq ($(libodb_installed),y)
-
-$(call export,l: -lodb,cpp-options: )
-
-else
-
-# Include export stub.
-#
-$(call include,$(scf_root)/export/libodb/stub.make)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/root.build b/build/root.build
deleted file mode 100644
index 316c276..0000000
--- a/build/root.build
+++ /dev/null
@@ -1,19 +0,0 @@
-# file : build/root.build
-# license : ODB NCUEL; see accompanying LICENSE file
-
-config [bool] config.libodb_oracle.develop ?= false
-
-cxx.std = latest
-
-using cxx
-
-hxx{*}: extension = hxx
-ixx{*}: extension = ixx
-txx{*}: extension = txx
-cxx{*}: extension = cxx
-
-if ($cxx.target.system == 'win32-msvc')
- cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
-
-if ($cxx.class == 'msvc')
- cxx.coptions += /wd4251 /wd4275 /wd4800