| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
# Copyright (c) 2005, 2006 MySQL AB |
| 4 |
# Use is subject to license terms |
| 5 |
# |
| 6 |
# This program is free software; you can redistribute it and/or modify |
| 7 |
# it under the terms of the GNU General Public License as published by |
| 8 |
# the Free Software Foundation; version 2 of the License. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program; if not, write to the Free Software |
| 17 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA |
| 18 |
|
| 19 |
path=`dirname $0` |
| 20 |
. "$path/SETUP.sh" |
| 21 |
|
| 22 |
c_warnings="" |
| 23 |
cxx_warnings="" |
| 24 |
fast_cflags="-O3" |
| 25 |
base_cxxflags="-fno-handle-exceptions" |
| 26 |
|
| 27 |
# FIXME do we need to link static, not to depend on CodeWarrior libs? |
| 28 |
|
| 29 |
if [ x$MODE = x ] ; then |
| 30 |
echo "You need to give an argument, 'standard', 'max', 'debug' or 'debug-max'" |
| 31 |
echo "Like: MODE=standard BUILD/compile-darwin-codewarrior" |
| 32 |
exit 1 |
| 33 |
else |
| 34 |
case $MODE in |
| 35 |
standard|pro-gpl) |
| 36 |
# FIXME pro/pro-gpl different libedit/readline |
| 37 |
extra_flags="$ppc_cflags $fast_cflags" |
| 38 |
;; |
| 39 |
pro) |
| 40 |
# FIXME pro/pro-gpl different libedit/readline |
| 41 |
extra_flags="$ppc_cflags $fast_cflags" |
| 42 |
extra_configs="--with-libedit" |
| 43 |
;; |
| 44 |
max) |
| 45 |
extra_flags="$ppc_cflags $fast_cflags" |
| 46 |
extra_configs="$max_configs" |
| 47 |
;; |
| 48 |
debug) |
| 49 |
extra_flags="$ppc_cflags $debug_cflags" |
| 50 |
extra_configs="$debug_configs" |
| 51 |
;; |
| 52 |
debug-max) |
| 53 |
extra_flags="$ppc_cflags $debug_cflags" |
| 54 |
extra_configs="$debug_configs $max_configs" |
| 55 |
;; |
| 56 |
*) |
| 57 |
echo "You need to give an argument, 'standard', 'max', 'debug' or 'debug-max'" |
| 58 |
echo "Like: MODE=standard BUILD/compile-darwin-codewarrior" |
| 59 |
exit 1 |
| 60 |
;; |
| 61 |
esac |
| 62 |
fi |
| 63 |
|
| 64 |
extra_configs="$extra_configs --with-darwin-mwcc" |
| 65 |
|
| 66 |
. "$path/FINISH.sh" |