#============================================================================== # AMBER Makefile configuration for compiler/architecture: xlf90_aix # Generated via command: ./configure xlf90_aix # # 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/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=-g #------------------------------------------------------------------------------ # 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=$(SOURCE_COMPILED) USE_LMODLIB=$(LMOD_UNAVAILABLE) #------------------------------------------------------------------------------ # C compiler #------------------------------------------------------------------------------ CC= xlc CPLUSPLUS=xlC ALTCC=xlc CFLAGS=-g $(AMBERBUILDFLAGS) ALTCFLAGS= $(AMBERBUILDFLAGS) CPPFLAGS=-DCLINK_PLAIN $(AMBERBUILDFLAGS) #------------------------------------------------------------------------------ # Fortran preprocessing and compiler. # FPPFLAGS holds the main Fortran options, such as whether MPI is used. #------------------------------------------------------------------------------ FPPFLAGS= -P -I$(AMBER_SRC)/include -DNMLEQ -DCLINK_PLAIN -Drs6000 $(AMBERBUILDFLAGS) FPP= /lib/cpp -traditional $(FPPFLAGS) FC= xlf90 FFLAGS= -qfixed -c -g $(LOCALFLAGS) $(AMBERBUILDFLAGS) FOPTFLAGS= -qfixed -g -qmaxmem=-1 -qarch=auto -qtune=auto -c $(LOCALFLAGS) $(AMBERBUILDFLAGS) FPP_PREFIX= _ FREEFORMAT_FLAG= -qfree #------------------------------------------------------------------------------ # Loader: #------------------------------------------------------------------------------ LOAD= xlf90 $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADCC= xlc $(LOCALFLAGS) $(AMBERBUILDFLAGS) LOADLIB= -L/usr/lib -lblas LOADPTRAJ= xlf90 $(LOCALFLAGS) $(AMBERBUILDFLAGS) XHOME= /usr/X11R6 #------------------------------------------------------------------------------ # Other stuff: #------------------------------------------------------------------------------ .SUFFIXES: .f90 SYSDIR=Machines/ibm_aix AR=ar rvs M4=m4 -B50000 RANLIB=/bin/true 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 $@ $<