summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-01 13:25:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-01 13:25:36 +0200
commit510def1daff70f0227487cbba86907b424cb69b0 (patch)
tree8cdac789dd56f42a9706512c5867cb1fd2a95259
parent0b49bfc996c2fca0f3fb7e1b043976df93ed28f8 (diff)
Build only requested database runtimes
-rwxr-xr-xtest/windows/odb/mingw/build27
1 files changed, 9 insertions, 18 deletions
diff --git a/test/windows/odb/mingw/build b/test/windows/odb/mingw/build
index 31c1dc6..b5c6ad0 100755
--- a/test/windows/odb/mingw/build
+++ b/test/windows/odb/mingw/build
@@ -87,27 +87,18 @@ fi
make
cd ..
-# Build libodb-sqlite
+# Build libodb-<db>
#
-cd libodb-sqlite
-
-if [ $rebuild = y -o ! -f Makefile ]; then
- ./configure --with-libodb=../libodb CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
-fi
-
-make
-cd ..
-
-# Build libodb-mysql
-#
-cd libodb-mysql
+for d in $db; do
+ cd libodb-$d
-if [ $rebuild = y -o ! -f Makefile ]; then
- ./configure --with-libodb=../libodb CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
-fi
+ if [ $rebuild = y -o ! -f Makefile ]; then
+ ./configure --with-libodb=../libodb CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
+ fi
-make
-cd ..
+ make
+ cd ..
+done
# Build libodb-tracer
#