ACLOCAL_AMFLAGS = -I ../m4


if HAVE_GFANLIB
# We build libgfan as a libtool convenience library.
# It is not installed; instead, its objects will be spliced into the
# module Singular/dyn_modules/gfanlib
noinst_LTLIBRARIES = libgfan.la
endif

AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} -DGMPRATIONAL

# forcefully enable exceptions
CXXFLAGS+= $(FEXCEPTIONSFRTTI_CXXFLAGS)

AM_CXXFLAGS = @CXX11_FLAG@


SOURCES = gfanlib_circuittableint.cpp gfanlib_mixedvolume.cpp gfanlib_paralleltraverser.cpp gfanlib_polyhedralfan.cpp gfanlib_polymakefile.cpp gfanlib_symmetriccomplex.cpp gfanlib_symmetry.cpp gfanlib_traversal.cpp gfanlib_zcone.cpp gfanlib_zfan.cpp
libgfan_la_SOURCES = $(SOURCES)
libgfan_la_LDFLAGS = $(SINGULAR_LDFLAGS)
libgfan_la_CPPFLAGS= $(GMP_CPPFLAGS) $(CDDGMPCPPFLAGS)

# Despite the naming convention, $CDDGMPLDFLAGS contains "-lcddgmp"
# and the rest of the $GMP_LIBS flags.
libgfan_la_LIBADD = $(CDDGMPLDFLAGS) $(GMP_LIBS)

noinst_HEADERS = config.h gfanlib_mixedvolume.h gfanlib_polymakefile.h gfanlib_symmetry.h gfanlib_vector.h gfanlib_z.h _config.h  gfanlib.h gfanlib_paralleltraverser.h gfanlib_q.h  gfanlib_traversal.h gfanlib_zcone.h gfanlib_circuittableint.h gfanlib_matrix.h gfanlib_polyhedralfan.h gfanlib_symmetriccomplex.h gfanlib_tropicalhomotopy.h gfanlib_zfan.h

DISTCLEANFILES =  config.h
