#============================================================================== # AMBER Makefile configuration for compiler/architecture: pgf90 # Generated via command: ./configure_amber -openmpi pgf90 # # 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 -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/sw/mcm/app/openmpi/1.2/5/dynamic/amd64/pgi-7.1//include -P -DBINTRAJ -DMPI $(AMBERBUILDFLAGS) FPP= cpp -traditional $(FPPFLAGS) FC= /sw/mcm/app/openmpi/1.2/5/dynamic/amd64/pgi-7.1//bin/mpif90 FFLAGS= -O1 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -fast -O3 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -Mfree #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= /sw/mcm/app/openmpi/1.2/5/dynamic/amd64/pgi-7.1//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=-module $(EMPTY) testsanderDIVCON=test.sander.DIVCON INCDIVCON=divcon LIBDIVCON=../dcqtp/src/qmmm/libdivcon.a # Location for executables, etc: BINDIR=/sw/mcm/app/amber/10/amd64/ompi-1.2.5/pgi-7.1/amber10/bin LIBDIR=/sw/mcm/app/amber/10/amd64/ompi-1.2.5/pgi-7.1/amber10/lib INCDIR=/sw/mcm/app/amber/10/amd64/ompi-1.2.5/pgi-7.1/amber10/include DATDIR=/sw/mcm/app/amber/10/amd64/ompi-1.2.5/pgi-7.1/amber10/dat # default rules for Fortran and C compilation: .f.o: $< $(FPP) $< > _$< $(FC) -c $(FFLAGS) -o $@ _$< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<