~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to BUILD/compile-darwin-mwcc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
path=`dirname $0`
 
4
. "$path/SETUP.sh"
 
5
 
 
6
c_warnings=""
 
7
cxx_warnings=""
 
8
fast_cflags="-O3"
 
9
base_cxxflags="-fno-handle-exceptions"
 
10
 
 
11
# FIXME do we need to link static, not to depend on CodeWarrior libs?
 
12
 
 
13
if [ x$MODE = x ] ; then
 
14
  echo "You need to give an argument, 'standard', 'max', 'debug' or 'debug-max'"
 
15
  echo "Like: MODE=standard BUILD/compile-darwin-codewarrior"
 
16
  exit 1
 
17
else
 
18
  case $MODE in
 
19
    standard|pro-gpl)
 
20
      # FIXME pro/pro-gpl different libedit/readline
 
21
      extra_flags="$ppc_cflags $fast_cflags"
 
22
      ;;
 
23
    pro)
 
24
      # FIXME pro/pro-gpl different libedit/readline
 
25
      extra_flags="$ppc_cflags $fast_cflags"
 
26
      extra_configs="--with-libedit"
 
27
      ;;
 
28
    max)
 
29
      extra_flags="$ppc_cflags $fast_cflags"
 
30
      extra_configs="$max_configs"
 
31
      ;;
 
32
    debug)
 
33
      extra_flags="$ppc_cflags $debug_cflags"
 
34
      extra_configs="$debug_configs"
 
35
      ;;
 
36
    debug-max)
 
37
      extra_flags="$ppc_cflags $debug_cflags"
 
38
      extra_configs="$debug_configs $max_configs"
 
39
      ;;
 
40
    *)
 
41
      echo "You need to give an argument, 'standard', 'max', 'debug' or 'debug-max'"
 
42
      echo "Like: MODE=standard BUILD/compile-darwin-codewarrior"
 
43
      exit 1
 
44
      ;;
 
45
  esac
 
46
fi
 
47
 
 
48
extra_configs="$extra_configs --with-darwin-mwcc"
 
49
 
 
50
. "$path/FINISH.sh"