#============================================================================== # AMBER Makefile configuration for compiler/architecture: pgf90 # Generated via command: ./configure -p4 pgf90 # # 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/rcw/amber_testing/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= gcc CPLUSPLUS=g++ CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -m32 CPPFLAGS= $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -P $(AMBERBUILDFLAGS) FPP= cpp -traditional $(FPPFLAGS) FC= pgf90 FFLAGS= -tp p7 -O1 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -tp p7 -Mscalarsse -Mvect=sse -Mflushz -fast -O3 $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -Mfree #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= pgf90 -tp p7 -fastsse -O3 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= gcc -m32 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= LM= -lm LOADPTRAJ= pgf90 -tp p7 -fastsse -O3 -Mnomain $(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=-module $(EMPTY) 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 $@ $<