#============================================================================== # AMBER Makefile configuration for compiler/architecture: ifort_x86_64 # Generated via command: ./configure_amber -mpich2 ifort # # 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=$(SOURCE_COMPILED) USE_LAPACKLIB=$(SOURCE_COMPILED) #------------------------------------------------------------------------------ # C compiler #------------------------------------------------------------------------------ CC= gcc CPLUSPLUS=g++ CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -m64 -O2 $(AMBERBUILDFLAGS) CPPFLAGS= -DBINTRAJ -I../netcdf/include $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -I/opt/mpich2_107_intel/include -P -DBINTRAJ -DMPI -DUSE_MPI_IN_PLACE $(AMBERBUILDFLAGS) FPP= cpp -traditional $(FPPFLAGS) FC= /opt/mpich2_107_intel/bin/mpif90 FFLAGS= -w95 -vec_report0 -mp1 -O0 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -w95 -vec_report0 -mp1 -ip -O3 -axWP $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -FR #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= /opt/mpich2_107_intel/bin/mpif90 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= gcc $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= LM= -lm XHOME= /usr/X11R6 XLIBS= -L/usr/X11R6/lib64 -L/usr/X11R6/lib #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 EMPTY= AR=ar rv M4=m4 RANLIB=ranlib 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=/opt/Bio/amber10/bin LIBDIR=/opt/Bio/amber10/lib INCDIR=/opt/Bio/amber10/include DATDIR=/opt/Bio/amber10/dat # default rules for Fortran and C compilation: .f.o: $< $(FPP) $< > _$< $(FC) -c $(FFLAGS) -o $@ _$< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<