#! /bin/csh -f

##/***************************************************************************/
##/*                                                                         */
##/* VolVis is a volume visualization system for investigating, manipulating */
##/* and rendering geometric and volumetric data.                            */
##/*                                                                         */
##/* Copyright (C) 1993 by the Research Foundation of the State University   */
##/*                           of New York                                   */
##/*                                                                         */
##/* This program is free software; you can redistribute it and/or modify    */
##/* it under the terms of the GNU General Public License as published by    */
##/* the Free Software Foundation; either version 1, or (at your option)     */
##/* any later version.                                                      */
##/*                                                                         */
##/* This program is distributed in the hope that it will be useful,         */
##/* but WITHOUT ANY WARRANTY; without even the implied warranty of          */
##/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           */
##/* GNU General Public License for more details.                            */
##/*                                                                         */
##/* You should have received a copy of the GNU General Public License       */
##/* along with this program; if not, write to the Free Software             */
##/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.               */
##/*                                                                         */
##/* For information on VolVis, contact us at:                               */
##/*                                                                         */
##/*               volvis@cs.sunysb.edu                         (email)      */
##/*                                                                         */
##/*               Lisa Sobierajski & Ricardo Avila             (US Mail)    */
##/*               Department of Computer Science                            */
##/*               State University of New York at Stony Brook               */
##/*               Stony Brook, New York  11794-4400                         */
##/*                                                                         */
##/***************************************************************************/


##
##  Silicon Graphics Case
##

switch ( `hostname` )
    case sbcube2:
    case merlin:
	sgi_loop:
	echo	" "
	echo	"         Compilation Options:"
	echo	" "
	echo	"              1) MOTIF only VolVis System"
	echo 	"              2) MOTIF and GL VolVis System"
	echo	" "
	echo -n "Please Answer 1 or 2: "
	set ans = $<
	switch ( $ans )
		case "1":
			echo "Making a MOTIF only version of VolVis"
			echo " "
			setenv VV_TARGET SGI_MOTIF_VolVis
			make -f Makefiles/Makefile
			breaksw;
		case "2":
			echo "Making a MOTIF and GL version of VolVis"
			echo " "
			setenv VV_TARGET SGI_GL_VolVis
			make -f Makefiles/Makefile
			breaksw;
		default:
			echo "INCORRECT CHOICE  Please Answer with 1 or 2."
			goto sgi_loop;
			breaksw;
	endsw
	breaksw;
##
##  Hewlett Packard Case
##
    case sbcube11:
        hp_loop:
        echo    " "
        echo    "         Compilation Options:"
        echo    " "       
        echo    "              1) MOTIF only VolVis System"
        echo    "              2) MOTIF and StarBase VolVis System"
        echo    " "
	echo -n "Please Answer 1 or 2: "
        set ans = $<
        switch ( $ans )
                case "1":
                        echo "Making a MOTIF only version of VolVis"
			echo " "
			setenv VV_TARGET HP_MOTIF_VolVis
			make -f Makefiles/Makefile
                        breaksw;
                case "2":
			echo "Making a MOTIF and StarBase version of VolVis"
			echo " "
			setenv VV_TARGET HP_SB_VolVis
			make -f Makefiles/Makefile
                        breaksw;
                default:
                        echo "INCORRECT CHOICE  Please Answer with 1 or 2."
                        goto hp_loop;
        endsw
        breaksw;
##
##  Sun Case
##
    case sparcy:
	sun_loop:
	echo	" "
	echo	"	Compilation Options:"
	echo	" "
	echo	"	1) MOTIF only VolVis System"
	echo	" "
	echo -n "Please Answer 1 or 2: "
	set ans = $<
	switch ( $ans)
		case "1":
			echo " Making a MOTIF only version of VolVis"
			echo " "
			setenv VV_TARGET SUN_MOTIF_VolVis
			make -f Makefiles/Makefile
			breaksw;
		default:
			echo "INCORRECT CHOICE Please Answer with 1."
			goto sun_loop;
	endsw
	breaksw;
    default:
        echo "I don't know how to make volvis for this machine"
	echo "Please edit the vvmake file and add this machine"
	breaksw;
endsw

