#============================================================================== # AMBER Makefile configuration for compiler/architecture: SunOS # Generated via command: ./configure -mpi # # 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/usr3/w49313a/amber8/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= -DF90_TIMER #------------------------------------------------------------------------------ # 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=$(VENDOR_SUPPLIED) USE_LAPACKLIB=$(VENDOR_SUPPLIED) USE_LMODLIB=$(LMOD_UNAVAILABLE) #------------------------------------------------------------------------------ # C compiler #------------------------------------------------------------------------------ CC= fcc CPLUSPLUS=FCC ALTCC=fcc CFLAGS= -Kfast_GP=2 -O4 -KV9 -w -DSYSV $(AMBERBUILDFLAGS) ALTCFLAGS= $(AMBERBUILDFLAGS) CPPFLAGS= $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -P -I$(AMBER_SRC)/include $(AMBERBUILDFLAGS) FPP= /lib/cpp $(FPPFLAGS) FC= f90 FFLAGS= -Kfast_GP=2 -O4 -KV9 -X9 -Am -w $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -Kfast_GP=2 -O4 -KV9 -X9 -Am -w $(LOCALFLAGS) $(AMBERBUILDFLAGS) FPP_PREFIX= _ FREEFORMAT_FLAG= -Free #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= mpifrt -Klarge_page=2,V9 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= fcc $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= -lm -SSL2 LOADPTRAJ= frt $(LOCALFLAGS) $(AMBERBUILDFLAGS) XHOME= /usr/openwin #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 SYSDIR=lib AR=ar rv M4=m4 RANLIB=ranlib SFX= MAKEDEPEND=$(AMBER_SRC)/../bin/amber_makedepend # default rules for Fortran and C compilation: .f.o: $< $(FPP) $< > $(FPP_PREFIX)$< $(FC) -c $(FFLAGS) -o $@ $(FPP_PREFIX)$< .f90.o: $< $(FPP) $< > $(FPP_PREFIX)$< $(FC) -c $(FFLAGS) -o $@ $(FPP_PREFIX)$< .c.o: $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<