# -*- mode: makefile -*- # # tor # 8-processor Intel(R) Xeon(TM) MP CPU 2.70GHz system at NCAR # 4 gigs of RAM # using gnu + pgi compilers # # # Compilers # # MPI C Compiler MPICC = mpicc # MPI C++ Compiler MPICXX = mpicxx # MPI F90 Compiler MPIF90 = mpif90 # MPI F77 Compiler MPIF77 = mpif77 # F90 Compiler F90 = pgf90 # F77 Compiler F77 = pgf77 # F90 compiler used for unit testing with funit FC = ${F90} # C Compiler CC = gcc # C++ compiler CXX = g++ # C Preprocessor # note: It's easier to use gnu c preprocessor (cpp) than to muck around with # using the portland group preprocessor since the portland # preprocessor commands require different formatting than cpp. CPP = cpp -P # Archive command (for making static libraries): AR = ar # # Compiler flags # #Cross language flag CROSS = -DLC_UNSC # Arch flag (IBM,T3E,NULL) # Also use -DPGI (if you're using the pgi compiler) ARCH = -DNULL # Optimtization Level #OPTLVL = -g OPTLVL = -O3 # Trapping flags TRAP = -DMPICH_IGNORE_CXX_SEEK -DMPICH_SKIP_MPICXX -DNEWCC #TRAP += -C -Mchkstk -Mpgicoff -traceback # Machine specific opts MACHOPT = -w # Extra compiler flags EXTRA_C_FLAGS = EXTRA_F_FLAGS = # Extra libraries for Fortran, C & C++ code EXTRA_LIBS = -lrt # Fortran libraries # to build MIX: FLIBS = -L/opt/local/pgi-7.2/linux86/7.2/lib -lpgc -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgftnrtl # Note: build MIX requires only "-lpgc -lpgftnrtl". The other libs are for building LFM code # MPI Libraries MPILIBS = -lmpich # Machine-specific libraries: MACHLIB = -lpgsse1 -lpgsse2 # TIEGCM-specific libraries: TIEGCM_FFLAGS = -r8 TIEGCM_LDFLAGS = # common/src/geopack.F ***requires*** 8-byte reals in order to work with CMIT. # This is a compiler-dependent flag! GEOPACK_FFLAGS = -r8 # # External Library information # A++ = /tor/d/schmitt/cism/opt-gnu/A++ P++ = /tor/d/schmitt/cism/opt-gnu/P++ HDF = /tor/d/schmitt/cism/opt-gnu MPI = /tor/d/schmitt/cism/opt-gnu/mpich-1.2.7-gnu4.1-pgf7.1 PVM_ROOT = /tor/d/schmitt/cism/opt-gnu/pvm3 PVM_ARCH = LINUX #INTERCOMM = /tor/d/schmitt/cism/opt-gnu/InterComm-1.6 INTERCOMM = /tor/d/schmitt/cism/opt-gnu/InterComm-1.6.1 #INTERCOMM = /tor/d/schmitt/cism/opt-gnu/InterComm-fix-debug #Overture = /tor/d/schmitt/cism/opt-gnu/overture Overture = /tor/d/schmitt/cism/opt-gnu/overture-no_X11 XLIBS=/usr/X11R6 OpenGL=/usr MOTIF=/usr/X11R6 PERL=/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE # TIEGCM requires netcdf: NETCDF = /opt/local