Tuesday, October 31, 2006

AMBER config.h for g95 on intel mac

Just for your information:

AMBER_SRC=~/amber9/src
AMBERBUILDFLAGS=
LOCALFLAGS=
USE_BLASLIB=$(VENDOR_SUPPLIED)
USE_LAPACKLIB=$(VENDOR_SUPPLIED)
USE_LMODLIB=$(LMOD_UNAVAILABLE)
CC= gcc
CPLUSPLUS=g++
CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -m32
CPPFLAGS= $(AMBERBUILDFLAGS)
FPPFLAGS= -P -xassembler-with-cpp -DHASSECOND $(AMBERBUILDFLAGS)
FPP= cpp -traditional $(FPPFLAGS)
FC= g95
FFLAGS= -O0 -fno-second-underscore $(LOCALFLAGS) $(AMBERBUILDFLAGS)
FOPTFLAGS= -O3 -fno-second-underscore $(LOCALFLAGS) $(AMBERBUILDFLAGS)
FREEFORMAT_FLAG= -ffree-form
LOAD= g95  $(LOCALFLAGS) $(AMBERBUILDFLAGS)
LOADCC= gcc  $(LOCALFLAGS) $(AMBERBUILDFLAGS)
LOADLIB=-Wl,-framework -Wl,Accelerate
LM= -lm
LOADPTRAJ= g95 $(LOCALFLAGS) $(AMBERBUILDFLAGS)
XHOME= /usr/X11R6
XLIBS= -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 $@ $<