summaryrefslogtreecommitdiff
path: root/BUILD/SETUP.sh
diff options
context:
space:
mode:
authorunknown <tim@cane.mysql.fi>2000-12-18 23:24:19 +0200
committerunknown <tim@cane.mysql.fi>2000-12-18 23:24:19 +0200
commit447b5534d02b99327d73ac15edb43bcf5d793e7e (patch)
tree144029d1dacb5aaa27e21b64dbfc97258409e2ab /BUILD/SETUP.sh
parent7cdb2b2d1d1efef069a305d130abf57d099c790e (diff)
downloadmariadb-git-447b5534d02b99327d73ac15edb43bcf5d793e7e.tar.gz
- cleaned up BUILD scripts
- consolidate common functionality into one place - make them detect gmake/make BUILD/compile-alpha: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make BUILD/compile-pentium-debug-no-bdb: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make BUILD/compile-pentium-debug: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make BUILD/compile-pentium-gcov: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make BUILD/compile-pentium-myodbc: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make BUILD/compile-pentium: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make BUILD/compile-solaris-sparc-purify: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make BUILD/compile-solaris-sparc: - cleaned up BUILD scripts - consolidate common functionality into one place - make them detect gmake/make
Diffstat (limited to 'BUILD/SETUP.sh')
-rw-r--r--BUILD/SETUP.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
new file mode 100644
index 00000000000..37c3dc2ea37
--- /dev/null
+++ b/BUILD/SETUP.sh
@@ -0,0 +1,43 @@
+if ! test -f sql/mysqld.cc; then
+ echo "You must run this script from the MySQL top-level directory"
+ exit 1
+fi
+
+set -e # exit on error
+
+AM_MAKEFLAGS="-j4" # XXX: auto-make uses this variable - export it???
+
+# If you are not using codefusion add "-Wpointer-arith" to WARNINGS
+# The following warning flag will give too many warnings:
+# -Wshadow -Wunused -Winline (The later isn't usable in C++ as
+# __attribute()__ doesn't work with gnu C++)
+global_warnings="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wuninitialized -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings"
+c_warnings="$global_warnings -Wunused"
+cxx_warnings="$global_warnings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"
+
+alpha_cflags="-mcpu=ev6 -Wa,-mev6" # not used yet
+pentium_cflags="-mpentiumpro"
+sparc_cflags=""
+
+fast_cflags="-O6 -fomit-frame-pointer"
+debug_cflags="-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -O2"
+
+base_cxxflags="-felide-constructors -fno-exceptions -fno-rtti"
+
+base_configs="--prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-mysqld-ldflags=-all-static --disable-shared"
+alpha_configs="" # not used yet
+pentium_configs=""
+sparc_configs=""
+
+debug_configs="--with-debug"
+
+if gmake --version > /dev/null 2>&1; then
+ make=gmake
+else
+ make=make
+fi
+
+$make -k clean || true
+/bin/rm -f */.deps/*.P config.cache
+
+aclocal; autoheader; aclocal; automake; autoconf