#============================================================================== # AMBER Makefile configuration for compiler/architecture: ifort_x86_64 # Generated via command: ./configure -static -nopar ifort_x86_64 # # Configuration script written mainly by Joe Krahn, Scott Brozell, and # Dave Case, with contributions from lots of people. #============================================================================== #------------------------------------------------------------------------------ # Main AMBER source root directory #------------------------------------------------------------------------------ AMBER_SRC=/usr/local/amber10/serial//src #------------------------------------------------------------------------------ # 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) USE_LMODLIB=$(LMOD_UNAVAILABLE) #------------------------------------------------------------------------------ # C compiler #------------------------------------------------------------------------------ CC= gcc CPLUSPLUS=g++ CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -m64 -O2 CPPFLAGS= $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -P -DMKL $(AMBERBUILDFLAGS) FPP= cpp -traditional $(FPPFLAGS) FC= ifort FFLAGS= -w95 -mp1 -O0 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -w95 -mp1 -ip -O3 -tpp7 -axWP $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -FR #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= ifort -static $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= gcc -static $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= /opt/intel/mkl/8.0.2//lib/em64t/libmkl_lapack.a /opt/intel/mkl/8.0.2//lib/em64t/libmkl_em64t.a -L/opt/intel/mkl/8.0.2//lib/em64t -lguide -lpthread LM= -lm LOADPTRAJ= ifort -static -nofor_main $(LOCALFLAGS) $(AMBERBUILDFLAGS) XHOME= /usr/X11R6 XLIBS= -L/usr/X11R6/lib64 -L /usr/X11R6/lib #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 EMPTY= AR=ar rv $(EMPTY) M4=m4 RANLIB=ranlib SFX= NETCDF= NETCDFLIB= MODULEDIR=-I MAKEDEPEND=$(AMBER_SRC)/../bin/amber_makedepend SLKO=skipDFTB # default rules for Fortran and C compilation: .f.o: $< $(FPP) $< > _$< $(FC) -c $(FFLAGS) -o $@ _$< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<