#============================================================================== # AMBER Makefile configuration for compiler/architecture: xlf90_suse # Generated via command: ./configure -mpich2 xlf90_suse # # 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=/home/b23/barran/bin/amber9/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=$(SOURCE_COMPILED) USE_LAPACKLIB=$(SOURCE_COMPILED) USE_LMODLIB=$(LMOD_UNAVAILABLE) #------------------------------------------------------------------------------ # C compiler #------------------------------------------------------------------------------ CC= cc CPLUSPLUS=xlC CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 CPPFLAGS=-DCLINK_PLAIN $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -I/bgl/BlueLight/ppcfloor/bglsys/include -P -DMPI -DCLINK_PLAIN -DXLF90 $(AMBERBUILDFLAGS) FPP= /opt/ibmcmp/xlf/10.1/exe/cpp -I/bgl/BlueLight/ppcfloor/bglsys/include $(FPPFLAGS) FC= mpixlf90 # I changed this and all other "mpif90" references to "mpixlf90" (mpif90 doesn't exist) FFLAGS= -qfixed -c $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -qfixed -O3 -qmaxmem=-1 -qarch=auto -qtune=auto -c $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -qfree=f90 #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= mpixlf90 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= cc $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= -L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich LM= -lm LOADPTRAJ= mpixlf90 $(LOCALFLAGS) $(AMBERBUILDFLAGS) XHOME= /usr/X11R6 XLIBS= -L /usr/X11R6/lib #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 EMPTY= AR=ar rvs $(EMPTY) M4=m4 RANLIB=/bin/true 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 $@ $<