#============================================================================== # AMBER Makefile configuration for compiler/architecture: sgi_mips # Generated via command: ./configure_amber -mpi sgi_mips # # Configuration script written mainly by Joe Krahn, Scott Brozell, and # Dave Case, with contributions from lots of people. #============================================================================== #------------------------------------------------------------------------------ # AMBERBUILDFLAGS provides a hook into the build process for installers; # for example, to build debug versions of the amber programs # make -e AMBERBUILDFLAGS="-DDEBUG -g" #------------------------------------------------------------------------------ AMBERBUILDFLAGS= #------------------------------------------------------------------------------ # LOCALFLAGS is intended for program specific modifications to the # Fortran build process and may be modified by the program's local makefile #------------------------------------------------------------------------------ LOCALFLAGS= #------------------------------------------------------------------------------ # Availability and method of delivery of math and optional libraries #------------------------------------------------------------------------------ USE_BLASLIB=$(VENDOR_SUPPLIED) USE_LAPACKLIB=$(VENDOR_SUPPLIED) #------------------------------------------------------------------------------ # C compiler #------------------------------------------------------------------------------ CC= cc CPLUSPLUS=CC CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -n32 -mips4 -r14000 -O2 -DSYSV $(AMBERBUILDFLAGS) CPPFLAGS=-LANG:std -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -n32 -mips4 -r14000 -O2 -DSYSV -DBINTRAJ -I../netcdf/include $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -P -DSGI -DnoVDINVSQRT -DBINTRAJ -DMPI $(AMBERBUILDFLAGS) FPP= /lib/cpp $(FPPFLAGS) FC= f90 FFLAGS= -n32 -mips4 -r14000 -O0 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -n32 -mips4 -r14000 -O3 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -freeform #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= f90 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= cc -n32 -mips4 -r14000 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= -lmpi -lscs -lfastm LM= -lm XHOME= /usr/lib32 XLIBS= -L/usr/lib32 #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 EMPTY= AR=ar rvs $(EMPTY) M4=m4 -B50000 RANLIB=/bin/true SFX= NETCDF=netcdf.mod NETCDFLIB=../netcdf/lib/libnetcdf.a MODULEDIR=-I testsanderDIVCON=test.sander.DIVCON INCDIVCON=divcon LIBDIVCON=../dcqtp/src/qmmm/libdivcon.a # Location for executables, etc: BINDIR=/n2/rchaud/amber10/bin LIBDIR=/n2/rchaud/amber10/lib INCDIR=/n2/rchaud/amber10/include DATDIR=/n2/rchaud/amber10/dat # default rules for Fortran and C compilation: .f.o: $< $(FPP) $< > _$< $(FC) -c $(FFLAGS) -o $@ _$< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<