# Emacs should use -*- Makefile -*- mode.

LOCALMAKEFILE_FOUND=yes

host = @host@
host_cpu = @host_cpu@
host_vendor = @host_vendor@
host_os = @host_os@

target = @target@
target_cpu = @target_cpu@
target_vendor = @target_vendor@
target_os = @target_os@

SC_VERSION = @SC_VERSION@
SC_SO_VERSION = @SC_SO_VERSION@
BUILDID = @BUILDID@

# set to 'YES' if doxygen man pages are to be built by default
DOXYGEN_MAN=@DOXYGEN_MAN@

# The template repository
TMPLREPO = @TMPLREPO@

# "yes", if the contents of TMPLREPO should be put into libraries
TMPLINLIB = @TMPLINLIB@

# "yes", if libraries should be prelinked to force templates to
# be instantiated
TMPLINST = @TMPLINST@

# The object code suffix
OBJSUF = @OBJSUF@

# The library suffix
LIBSUF = @LIBSUF@

ENABLESHARED = @ENABLESHARED@

ifeq ($(ENABLESHARED),yes)
  LIBTOOL= $(SHELL) $(TOPDIR)/libtool
  LTLINK = $(LIBTOOL) --mode=link
  ifneq ($(BUILDID),)
    LTLINKLIBOPTS = -rpath $(libdir) -release $(BUILDID) -version-info $(SC_SO_VERSION)
  else
    LTLINKLIBOPTS = -rpath $(libdir) -version-info $(SC_SO_VERSION)
  endif
  LTLINKBINOPTS =
  LTCOMP = $(LIBTOOL) --mode=compile
  LTINST = $(LIBTOOL) --mode=install
  
else
  LIBTOOL= 
  LTLINK = 
  LTLINKLIBOPTS = 
  LTLINKBINOPTS = 
  LTCOMP = 
  LTINST = 
endif

# The suffix generated by the -M compiler option
CCDEPENDSUF = @CCDEPENDSUF@
CXXDEPENDSUF = @CXXDEPENDSUF@
CCDEPENDFLAGS = @CCDEPENDFLAGS@
CXXDEPENDFLAGS = @CXXDEPENDFLAGS@

CC  = @CC@
CXX = @CXX@
FC = @F77@

CCDEPEND = @CC@
CXXDEPEND = @CXX@
AR = @AR@
ARFLAGS = @ARFLAGS@

LD = $(CXX)
LDFLAGS = @LDFLAGS@

INSTALL = @INSTALL@
INSTALLDIROPT = -d -m 0755
INSTALLLIBOPT = -m 0644
INSTALLBINOPT = -m 0755
INSTALLSCRIPTOPT = -m 0755

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
libdir=@libdir@
includedir=@scincludedir@
datadir=@datadir@
scdatadir=@scdatadir@

WISH = @WISH@
RANLIB = @RANLIB@
PERL = @PERL@
NIAMACFG = @NIAMACFG@
COMPRESS = gzip
UNCOMPRESS = gzip -d
LISTLIBS= $(PERL) $(SRCTOPDIR)/bin/listlibs.pl -DLIBSUF=$(LIBSUF)
MKF77SYM= $(PERL) $(TOPDIR)/bin/mkf77sym.pl

# first check for generated include files in the machine dependent directories
# and then for include files in the src directory
INCLUDE = -I$(TOPDIR)/src/lib -I$(SRCTOPDIR)/include -I$(SRCTOPDIR)/src/lib \
	  @CPPFLAGS@
DEFINES = @DEFS@ @EXTRADEFINES@

CPPFLAGS = $(DEFINES) $(INCLUDE)

CFLAGS = @CFLAGS@
HIGHOPT_CFLAGS = $(CFLAGS)
NOALIAS_CFLAGS =

CXXFLAGS = @CXXFLAGS@
HIGHOPT_CXXFLAGS = $(CXXFLAGS)
NOALIAS_CXXFLAGS = $(NOALIAS_CFLAGS)

FFLAGS = @FFLAGS@
HIGHOPT_FFLAGS = $(FFLAGS)

HAVE_SYSV_IPC = @HAVE_SYSV_IPC@
HAVE_MPI = @HAVE_MPI@
HAVE_ARMCI = @HAVE_ARMCI@
HAVE_MPIIO = @HAVE_MPIIO@
HAVE_PTHREAD = @HAVE_PTHREAD@
HAVE_PERF = @HAVE_PERF@
HAVE_LIBINT = @HAVE_LIBINT@
HAVE_LIBR12 = @HAVE_LIBR12@
HAVE_LIBDERIV = @HAVE_LIBDERIV@

SYSLIBS = @LIBS@ @FLIBS@

#
# variables for CCA component code
#

ENABLECCA=@ENABLECCA@

CCA_CHEM_REPO=@CCA_CHEM_REPO@

# specs
CCA_SPEC_BABEL_INCLUDE=@CCA_SPEC_BABEL_INCLUDE@
CCA_SPEC_BABEL_LIB=@CCA_SPEC_BABEL_LIB@
CCA_SPEC_BABEL_SHARE=@CCA_SPEC_BABEL_SHARE@
CCA_SPEC_CLASSIC_INCLUDE=@CCA_SPEC_CLASSIC_INCLUDE@

# babel
BABEL=@BABEL_BIN@/babel
BABEL_INCLUDE=@BABEL_INCLUDE@
BABEL_LIB=@BABEL_LIB@

# caffeine and classic for parameter ports
CCAFE_LIB=@CCAFE_LIB@
CCAFE_SHARE=@CCAFE_SHARE@

# cca-chem libs
CCA_CHEM_LIB=@CCA_CHEM_LIB@

ifeq ($(ENABLECCA),yes)
  LTLINKLIBOPTS += -rpath $(libdir)/cca
endif

# intv3 or cca/cints ordering?
INTV3_ORDER=no


