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

# this is usually overridden
TARGET_TO_MAKE = $(shell basename `pwd`)

ifndef SRCDIR
  SRCDIR = .
endif
SRCTOPDIR = $(SRCDIR)/$(TOPDIR)

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@

LIBINT_VERSION = @LIBINT_VERSION@
BUILDID = @BUILDID@

# The object code suffix
OBJSUF = @OBJSUF@

# The library suffix
LIBSUF = @LIBSUF@

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

CXX = @CXX@
CXXCOMP = @CXX@
CXXGEN = @CXXGEN@
CXX_COMPATIBLE_WITH_CXXGEN = @CXX_COMPATIBLE_WITH_CXXGEN@
CXXGEN_SUPPORTS_CPP11 = @CXXGEN_SUPPORTS_CPP11@

CXXDEPEND = @CXXDEPEND@

AR = @AR@
ARFLAGS = @ARFLAGS@

LD = @LD@
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=@libintincludedir@

RANLIB = @RANLIB@
COMPRESS = gzip
UNCOMPRESS = gzip -d
PYTHON = @PYTHON@

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

CPPFLAGS = $(DEFINES) $(INCLUDE)
CXXFLAGS = @CXXFLAGS@
CXXGENFLAGS = @CXXGENFLAGS@

SYSLIBS = @LIBS@

TARGET_HEADERS = $(HEADERS:%=$(top_objdir)/include/libint/%)

LIBINT_HAS_EIGEN = @LIBINT_HAS_EIGEN@
