mariadb/BUILD/SETUP.sh
unknown 447b5534d0 - 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
2000-12-18 23:24:19 +02:00

43 lines
1.5 KiB
Bash

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