#============================================================================== # AMBER Makefile configuration for compiler/architecture: g95 # Generated via command: ./configure_amber -lamsource -cygwin g95 # # 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= -O2 -m32 $(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/usr/local/amber10/include -P -xassembler-with-cpp -DBINTRAJ -DMPI $(AMBERBUILDFLAGS) FPP= cpp -traditional $(FPPFLAGS) FC= /usr/local/amber10/bin/mpif77 FFLAGS= -O0 -fno-second-underscore $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -O3 -fno-second-underscore $(LOCALFLAGS) $(AMBERBUILDFLAGS) FREEFORMAT_FLAG= -ffree-form #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= /usr/local/amber10/bin/mpif77 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= gcc $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= LM= -lm XHOME= /usr/X11R6 XLIBS= -L/usr/X11R6/lib #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 EMPTY= AR=ar rv M4=m4 RANLIB=ranlib SFX=.exe NETCDF=netcdf.mod NETCDFLIB=../netcdf/lib/libnetcdf.a MODULEDIR=-I testsanderDIVCON=test.sander.DIVCON INCDIVCON=divcon LIBDIVCON=../dcqtp/src/qmmm/libdivcon.a # Location for executables, etc: BINDIR=/usr/local/amber10/bin LIBDIR=/usr/local/amber10/lib INCDIR=/usr/local/amber10/include DATDIR=/usr/local/amber10/dat # default rules for Fortran and C compilation: .f.o: $< $(FPP) $< > _$< $(FC) -c $(FFLAGS) -o $@ _$< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<