aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-29 13:33:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-29 13:33:50 +0200
commitd6ceed8279573277d92dd150d21ac01d7a6683dd (patch)
treefe17987c249a7fa343df2403108985e644c4900f /build
parent08c773c71968fb92330572e95694b9ee3f37d267 (diff)
Build system improvements
Add support for building with bundled build. Update boost import stub.
Diffstat (limited to 'build')
-rw-r--r--build/bootstrap.make11
-rw-r--r--build/import/libboost/configuration-rules.make2
-rwxr-xr-xbuild/import/libboost/configure48
-rw-r--r--build/import/libboost/date-time/rules.make39
-rw-r--r--build/import/libboost/date-time/stub.make32
-rw-r--r--build/import/libboost/filesystem/rules.make6
-rw-r--r--build/import/libboost/filesystem/stub.make4
-rw-r--r--build/import/libboost/regex/rules.make38
-rw-r--r--build/import/libboost/regex/stub.make32
-rw-r--r--build/import/libboost/version2
10 files changed, 32 insertions, 182 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 9897964..25dc2d8 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -5,7 +5,16 @@
project_name := libxsd-frontend
-include build-0.3/bootstrap.make
+# 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
#
diff --git a/build/import/libboost/configuration-rules.make b/build/import/libboost/configuration-rules.make
index 2e89c6e..bfe3116 100644
--- a/build/import/libboost/configuration-rules.make
+++ b/build/import/libboost/configuration-rules.make
@@ -1,6 +1,6 @@
# file : build/import/libboost/configuration-rules.make
# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
+# copyright : Copyright (c) 2005-2008 Boris Kolpackov
# license : GNU GPL v2; see accompanying LICENSE file
$(dcf_root)/import/libboost/configuration-dynamic.make: | $(dcf_root)/import/libboost/.
diff --git a/build/import/libboost/configure b/build/import/libboost/configure
index 9bb9085..2c62d45 100755
--- a/build/import/libboost/configure
+++ b/build/import/libboost/configure
@@ -2,7 +2,7 @@
# file : build/import/libboost/configure
# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
+# copyright : Copyright (c) 2005-2008 Boris Kolpackov
# license : GNU GPL v2; see accompanying LICENSE file
@@ -26,30 +26,13 @@ $echo
installed=`read_y_n y`
-path=
-type=
-
if [ "$installed" = "n" ]; then
- version=
-
- while [ -z "$version" ]; do
-
- $echo
- $echo "Please enter the 'boost' root directory."
- $echo
-
- root=`read_path --directory --exist`
-
- version=`sed -e 's/^#define BOOST_LIB_VERSION "\(.*\)"[ ]*$/\1/' -e t -e d \
-$root/boost/version.hpp 2>/dev/null`
-
- if [ $? != 0 -o -z "$version" ]; then
+ $echo
+ $echo "Please enter the 'boost' root directory."
+ $echo
- version=
- echo "Unable to read version information from $root/boost/version.hpp"
- fi
- done
+ root=`read_path --directory --exist`
$echo
$echo "Please select the library type you would like to use:"
@@ -59,25 +42,24 @@ $root/boost/version.hpp 2>/dev/null`
$echo
type=`read_option "archive shared" "shared"`
+fi
- $echo
- $echo "For boost 1.34.0 and later, please enter the toolset version"
- $echo "that is embedded into the library names. For example, for"
- $echo "gcc34 enter 34. For previous versions of boost leave this"
- $echo "field blank."
- $echo
+$echo
+$echo "Please enter optional suffix that may be embedded into the"
+$echo "boost library names. For example, if your library names are in"
+$echo "the libboost_regex-gcc41-mt-d.so form, then enter -gcc41-mt-d"
+$echo "Otherwise leave this field blank."
+$echo
- toolset=
- read -e -p "[]: " toolset
-fi
+suffix=
+read -e -p "[]: " suffix
echo libboost_installed := $installed >$1
+echo libboost_suffix := $suffix >>$1
if [ "$installed" = "n" ]; then
echo libboost_root := $root >>$1
echo libboost_type := $type >>$1
- echo libboost_version := $version >>$1
- echo libboost_toolset := $toolset >>$1
fi
diff --git a/build/import/libboost/date-time/rules.make b/build/import/libboost/date-time/rules.make
deleted file mode 100644
index f136cc4..0000000
--- a/build/import/libboost/date-time/rules.make
+++ /dev/null
@@ -1,39 +0,0 @@
-# file : build/import/libboost/date-time/rules.make
-# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libboost/%: root := $(libboost_root)
-
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- | $(dcf_root)/import/libboost/date-time/.
-
-ifeq ($(libboost_type),archive)
-
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- $(libboost_root)/stage/lib/libboost_date_time-gcc$(libboost_toolset)-$(libboost_version).a
- @echo $< >$@
-
-else
-
-$(dcf_root)/import/libboost/date-time/date-time.l: \
- $(libboost_root)/stage/lib/libboost_date_time-gcc$(libboost_toolset)-$(libboost_version).so
- @echo $< >$@
- @echo rpath:$(root)/stage/lib >>$@
-
-endif
-
-
-$(dcf_root)/import/libboost/date-time/date-time.l.cpp-options: \
- | $(dcf_root)/import/libboost/date-time/.
- @echo include: -I$(root) >$@
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libboost/date-time/date-time.l,\
-rm -f $(dcf_root)/import/libboost/date-time/date-time.l)
- $(call message,,\
-rm -f $(dcf_root)/import/libboost/date-time/date-time.l.cpp-options)
-
-endif
diff --git a/build/import/libboost/date-time/stub.make b/build/import/libboost/date-time/stub.make
deleted file mode 100644
index 5f57a42..0000000
--- a/build/import/libboost/date-time/stub.make
+++ /dev/null
@@ -1,32 +0,0 @@
-# file : build/import/libboost/date-time/stub.make
-# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libboost/configuration-rules.make,$(dcf_root))
-
-libboost_installed :=
-
-$(call -include,$(dcf_root)/import/libboost/configuration-dynamic.make)
-
-ifdef libboost_installed
-
-ifeq ($(libboost_installed),y)
-
-$(call export,l: -lboost_date_time,cpp_options: )
-
-else
-
-$(call include-once,$(scf_root)/import/libboost/date-time/rules.make,$(dcf_root))
-
-$(call export,\
- l: $(dcf_root)/import/libboost/date-time/date-time.l,\
- cpp-options: $(dcf_root)/import/libboost/date-time/date-time.l.cpp-options)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libboost/filesystem/rules.make b/build/import/libboost/filesystem/rules.make
index 8a1666e..6ecea6c 100644
--- a/build/import/libboost/filesystem/rules.make
+++ b/build/import/libboost/filesystem/rules.make
@@ -1,6 +1,6 @@
# file : build/import/libboost/filesystem/rules.make
# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
+# copyright : Copyright (c) 2005-2008 Boris Kolpackov
# license : GNU GPL v2; see accompanying LICENSE file
#@@ Should use message everywhere.
@@ -14,13 +14,13 @@ $(dcf_root)/import/libboost/filesystem/filesystem.l: \
ifeq ($(libboost_type),archive)
$(dcf_root)/import/libboost/filesystem/filesystem.l: \
- $(libboost_root)/stage/lib/libboost_filesystem-gcc$(libboost_toolset)-$(libboost_version).a
+ $(libboost_root)/stage/lib/libboost_filesystem$(libboost_suffix).a
@echo $< >$@
else
$(dcf_root)/import/libboost/filesystem/filesystem.l: \
- $(libboost_root)/stage/lib/libboost_filesystem-gcc$(libboost_toolset)-$(libboost_version).so
+ $(libboost_root)/stage/lib/libboost_filesystem$(libboost_suffix).so
@echo $< >$@
@echo rpath:$(root)/stage/lib >>$@
diff --git a/build/import/libboost/filesystem/stub.make b/build/import/libboost/filesystem/stub.make
index d5e5500..70e5356 100644
--- a/build/import/libboost/filesystem/stub.make
+++ b/build/import/libboost/filesystem/stub.make
@@ -1,6 +1,6 @@
# file : build/import/libboost/filesystem/stub.make
# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
+# copyright : Copyright (c) 2005-2008 Boris Kolpackov
# license : GNU GPL v2; see accompanying LICENSE file
$(call include-once,$(scf_root)/import/libboost/configuration-rules.make,$(dcf_root))
@@ -13,7 +13,7 @@ ifdef libboost_installed
ifeq ($(libboost_installed),y)
-$(call export,l: -lboost_filesystem,cpp_options: )
+$(call export,l: -lboost_filesystem$(libboost_suffix),cpp_options: )
else
diff --git a/build/import/libboost/regex/rules.make b/build/import/libboost/regex/rules.make
deleted file mode 100644
index 10303be..0000000
--- a/build/import/libboost/regex/rules.make
+++ /dev/null
@@ -1,38 +0,0 @@
-# file : build/import/libboost/regex/rules.make
-# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(dcf_root)/import/libboost/%: root := $(libboost_root)
-
-$(dcf_root)/import/libboost/regex/regex.l: \
- | $(dcf_root)/import/libboost/regex/.
-
-ifeq ($(libboost_type),archive)
-
-$(dcf_root)/import/libboost/regex/regex.l: \
- $(libboost_root)/stage/lib/libboost_regex-gcc$(libboost_toolset)-$(libboost_version).a
- @echo $< >$@
-
-else
-
-$(dcf_root)/import/libboost/regex/regex.l: \
- $(libboost_root)/stage/lib/libboost_regex-gcc$(libboost_toolset)-$(libboost_version).so
- @echo $< >$@
- @echo rpath:$(root)/stage/lib >>$@
-
-endif
-
-
-$(dcf_root)/import/libboost/regex/regex.l.cpp-options: \
- | $(dcf_root)/import/libboost/regex/.
- @echo include: -I$(root) >$@
-
-ifndef %foreign%
-
-disfigure::
- $(call message,rm $(dcf_root)/import/libboost/regex/regex.l,\
-rm -f $(dcf_root)/import/libboost/regex/regex.l)
- $(call message,,rm -f $(dcf_root)/import/libboost/regex/regex.l.cpp-options)
-
-endif
diff --git a/build/import/libboost/regex/stub.make b/build/import/libboost/regex/stub.make
deleted file mode 100644
index 9af79d2..0000000
--- a/build/import/libboost/regex/stub.make
+++ /dev/null
@@ -1,32 +0,0 @@
-# file : build/import/libboost/regex/stub.make
-# author : Boris Kolpackov <boris@kolpackov.net>
-# copyright : Copyright (c) 2005-2009 Boris Kolpackov
-# license : GNU GPL v2; see accompanying LICENSE file
-
-$(call include-once,$(scf_root)/import/libboost/configuration-rules.make,$(dcf_root))
-
-libboost_installed :=
-
-$(call -include,$(dcf_root)/import/libboost/configuration-dynamic.make)
-
-ifdef libboost_installed
-
-ifeq ($(libboost_installed),y)
-
-$(call export,l: -lboost_regex,cpp_options: )
-
-else
-
-$(call include-once,$(scf_root)/import/libboost/regex/rules.make,$(dcf_root))
-
-$(call export,\
- l: $(dcf_root)/import/libboost/regex/regex.l,\
- cpp-options: $(dcf_root)/import/libboost/regex/regex.l.cpp-options)
-
-endif
-
-else
-
-.NOTPARALLEL:
-
-endif
diff --git a/build/import/libboost/version b/build/import/libboost/version
index 1d0ba9e..a918a2a 100644
--- a/build/import/libboost/version
+++ b/build/import/libboost/version
@@ -1 +1 @@
-0.4.0
+0.6.0