make/solaris/build.sh

Print this page


   1 #! /bin/sh
   2 #
   3 # Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #  
  24 #
  25 
  26 # Make sure the variable JAVA_HOME is set before running this script.
  27 
  28 set -u
  29 
  30 
  31 usage() {
  32     (
  33         echo "Usage : $0 [-sb | -sbfast] config ws_path"
  34         echo ""
  35         echo "Where:"
  36         echo "    -sb     ::= enable source browser info generation for"
  37         echo "                all configs during compilation"
  38         echo ""
  39         echo "    -sbfast ::= enable source browser info generation for"
  40         echo "                all configs without compilation"
  41         echo ""
  42         echo "    config  ::= debug     | debug1     | debugcore"
  43         echo "                fastdebug | fastdebug1 | fastdebugcore"
  44         echo "                jvmg      | jvmg1      | jvmgcore"
  45         echo "                optimized | optimized1 | optimizedcore"
  46         echo "                profiled  | profiled1  | profiledcore"
  47         echo "                product   | product1   | productcore"
  48         echo ""
  49         echo "    ws_path ::= path to HotSpot workspace"
  50     ) >&2
  51     exit 1
  52 }
  53 
  54 # extract possible options
  55 options=""
  56 if [ $# -gt 2 ]; then 
  57     case "$1" in
  58     -sb)
  59         options="CFLAGS_BROWSE=-xsb"
  60         shift
  61         ;;
  62     -sbfast)
  63         options="CFLAGS_BROWSE=-xsbfast"
  64         shift
  65         ;;
  66     *)


   1 #! /bin/sh
   2 #
   3 # Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 #
  25 
  26 # Make sure the variable JAVA_HOME is set before running this script.
  27 
  28 set -u
  29 
  30 
  31 usage() {
  32     (
  33         echo "Usage : $0 [-sb | -sbfast] config ws_path"
  34         echo ""
  35         echo "Where:"
  36         echo "    -sb     ::= enable source browser info generation for"
  37         echo "                all configs during compilation"
  38         echo ""
  39         echo "    -sbfast ::= enable source browser info generation for"
  40         echo "                all configs without compilation"
  41         echo ""
  42         echo "    config  ::= fastdebug | fastdebug1 | fastdebugcore"
  43         echo "                debug     | debug1     | debugcore"

  44         echo "                optimized | optimized1 | optimizedcore"

  45         echo "                product   | product1   | productcore"
  46         echo ""
  47         echo "    ws_path ::= path to HotSpot workspace"
  48     ) >&2
  49     exit 1
  50 }
  51 
  52 # extract possible options
  53 options=""
  54 if [ $# -gt 2 ]; then
  55     case "$1" in
  56     -sb)
  57         options="CFLAGS_BROWSE=-xsb"
  58         shift
  59         ;;
  60     -sbfast)
  61         options="CFLAGS_BROWSE=-xsbfast"
  62         shift
  63         ;;
  64     *)