You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.0 KiB

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