#============================================================================== # AMBER Makefile configuration for compiler/architecture: g95 # Generated via command: ./configure -mpich2 g95 # # 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/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 -m64 CPPFLAGS= $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -I/usr/local/mpich2-1.0.7-g95/include -P -DMPI -xassembler-with-cpp $(AMBERBUILDFLAGS) FPP= cpp -traditional $(FPPFLAGS) FC= g95 FFLAGS= -O0 -fno-second-underscore -march=nocona $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -O3 -fno-second-underscore -march=nocona $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -ffree-form #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= g95 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= gcc $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= -L/usr/local/mpich2-1.0.7-g95/lib -lmpichf90 -lmpichf90 -lmpich -lpthread LM= -lm LOADPTRAJ= g95 $(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 $@ $<