#! /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. # # # ######################################################################## # Copy this file to src/MACHINE to install. # # This file is appropriate for: Sun UltraSPARC platforms using the # SC4.2 or SC4.0 compilers. # # 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" # # # IF PROGRAMS CRASH, try adding '-fast' to L0 # setenv MACHINE "Sun SPARC" setenv MACH SPARC # Note - sparc has a fortran erfc routine, but it yields # different results than others (different function) # so -DHAS_FTN_ERFC is omitted setenv MACHINEFLAGS "-DISTAR2 -DMEM_ALLOC " # CPP is the cpp for this machine setenv CPP /usr/lib/cpp # SYSDIR is the name of the system-specific source directory relative to src/*/ setenv SYSDIR Machine/bsd # COMPILER ALIASES: # LOADER/LINKER: setenv LOAD "f77 -fast -stackvar -xtarget=ultra -xarch=v8plus " setenv LOADLIB " -lm" #little or no optimization: setenv L0 "f77 -c -O2 -stackvar -xtarget=ultra -xarch=v8plus " # modest optimization (local scalar): setenv L1 "f77 -c -fast -O3 -stackvar -xtarget=ultra -xarch=v8plus " # high scalar optimization (but not vectorization): setenv L2 "f77 -c -fast -stackvar -xtarget=ultra -xarch=v8plus " # high optimization (may be vectorization, not parallelization): setenv L3 "f77 -c -fast -O4 -stackvar -xtarget=ultra -xarch=v8plus " # ranlib, if it exists setenv RANLIB ranlib # spasms configuration #SPASMS MACHINE.sparc_spasms_config #SPASMS unix #SPASMS n390 #SPASMS large