#! /bin/csh -f ######################################################################## # # # Copyright (c) 1986, 1991, 1995 # # Regents of the University of California # # # # All Rights Reserved # # # # Machine Dependency Handling System # # # # Bill Ross ross@cgl.ucsf.edu # # An extension of work of George Seibel # # # # Dependencies written by various authors. # # # # Permission to use, copy, modify, and distribute this software and # # its documentation for any purpose and without fee is hereby # # granted, provided that the above copyright notice appear in all # # copies and that both that copyright notice and this permission # # notice appear in supporting documentation, and that the name of # # the University of California not be used in advertising or # # publicity pertaining to distribution of the software without # # specific, written prior permission. # # # # THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL # # WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED # # WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE # # UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR # # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, # # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # # # ######################################################################## # # Machine dependencies adapted from f2c version of Thomas Huber. # # When using g77 it is important to resize the COMMON blocks # if you are using ld version less than 2.6! The other option # is to download binutils-2.6 from GNU and the default sizes # works fine. I have done both and there is no problem. # # Dr. R.R. Joshi, Bioinformatics Centre, University of Poona, India # # Copy this file to .../src/MACHINE to install. # # These aliases let us use the same command files for compilation # on Unix systems with different names and/or flags for the fortran # compiler. Environment variables set here specify the location # of system-specific source and control the use of Integer*2. # See install.doc: "Setting Up the Configuration File" # # # setenv MPICH_HOME /usr/local/src/mpich/build/LINUX/ch_p4 if ( ! $?MPICH_HOME ) then echo "****************************************************" echo " MPICH_HOME is not set in src/MACHINE file " echo " set MPICH_HOME environment variable in" echo " shell or in MACHINE file as the location" echo " of the include/ and lib/ directories" echo " containing mpif.h and libmpi.a or libmpich.a" echo " of our mpich distribution." echo " Use: setenv MPICH_HOME /usr/local/src/mpich/build/LINUX/ch_p4" echo " " echo " Also chek the name of the mpi library and adjust" echo " MPICH_LIB in src/MACHINE if necessary. " echo "****************************************************" exit 1 endif setenv MPICH_INCLUDE $MPICH_HOME/include setenv MPICH_LIBDIR $MPICH_HOME/lib setenv MPICH_LIB mpich # setenv MACHINE "linux/FreeBSD PC" setenv MACH Linux setenv MACHINEFLAGS " -DMPI" # CPP is the cpp for this machine setenv CPP "/lib/cpp -traditional -I$MPICH_INCLUDE" # SYSDIR is the name of the system-specific source directory relative to src/*/ setenv SYSDIR Machines/standard # COMPILER ALIASES: # LOADER/LINKER: setenv LOAD "g77 -O6" setenv LOADLIB "-lm -L$MPICH_LIBDIR -l$MPICH_LIB" setenv G77_COMPAT "-fno-globals -ff90 -funix-intrinsics-hide" # little or no optimization: setenv L0 "g77 -c -g" # modest optimization (local scalar): setenv L1 "g77 -c -O -ffast-math -fomit-frame-pointer $G77_COMPAT" # high scalar optimization (but not vectorization): setenv L2 "g77 -c -O3 -ffast-math -fomit-frame-pointer $G77_COMPAT" # high optimization (may be vectorization, not parallelization): setenv L3 "g77 -c -O3 -ffast-math -fomit-frame-pointer $G77_COMPAT" # ranlib, if it exists setenv RANLIB ranlib # spasms configuration #SPASMS MACHINE.f2c_spasms_config #SPASMS unix #SPASMS n390 #SPASMS large