source: git/Singular/dyn_modules/gfanlib/Makefile.am @ 3b7b36

spielwiese
Last change on this file since 3b7b36 was 3b7b36, checked in by Erik M. Bray <erik.bray@…>, 7 years ago
Updated configure.ac and Makefile.am files to work on Windows, taking advantage of the new SING_WIN_FLAGS macro. * In configure.ac use SING_WIN_FLAGS, and also use LT_INIT([win32-dll]) to tell libtool to build DLLs. * In Makefile.am add $(SINGULAR_LDFLAGS) to _la_LDFLAGS variables--on most platforms $(SINGULAR_LDFLAGS) will be empty, currently, but this is used on Windows to pass the required -no-undefined flag to libtool. * In some Makefile.am files add/update _la_LIBADD variables to ensure that libSingular.la is found by modules that need symbols from libSingular.
  • Property mode set to 100644
File size: 2.6 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../m4
2
3SOURCES = singularWishlist.cc singularWishlist.h gfanlib_exceptions.h callgfanlib_conversion.cc callgfanlib_conversion.h bbcone.cc bbcone.h bbfan.cc bbfan.h bbpolytope.cc bbpolytope.h gfan.h gitfan.cc gitfan.h std_wrapper.cc std_wrapper.h tropicalDebug.h tropicalDebug.cc tropicalVarietyOfPolynomials.h tropicalVarietyOfPolynomials.cc ppinitialReduction.cc ppinitialReduction.h containsMonomial.cc containsMonomial.h adjustWeights.cc adjustWeights.h tropicalStrategy.cc tropicalStrategy.h initial.cc initial.h witness.cc witness.h lift.cc lift.h flip.cc flip.h tropicalCurves.cc tropicalCurves.h groebnerCone.cc groebnerCone.h startingCone.cc startingCone.h tropicalTraversal.cc tropicalTraversal.h tropicalVarietyOfIdeals.cc tropicalVarietyOfIdeals.h tropicalVariety.cc tropicalVariety.h groebnerFan.cc groebnerFan.h groebnerComplex.cc groebnerComplex.h tropical.cc tropical.h gfanlib.cc
4
5MY_CPPFLAGS = -I${srcdir} -I${top_srcdir} -I${top_builddir} \
6-I${top_srcdir}/libpolys -I${top_builddir}/libpolys \
7${FACTORY_INCLUDES} ${RESOURCES_INCLUDES} ${OMALLOC_INCLUDES} \
8${FLINT_CFLAGS} ${NTL_CFLAGS} ${GMP_CFLAGS} ${PTHREAD_CFLAGS}
9
10if SI_BUILTIN_GFANLIB
11if HAVE_GFANLIB
12  noinst_LTLIBRARIES=gfanlib.la
13endif
14##  moduledir = $(libdir)/singular
15  P_PROCS_CPPFLAGS_COMMON = -DSTATIC_VERSION
16  P_PROCS_MODULE_LDFLAGS  = -module
17else
18if HAVE_GFANLIB
19  module_LTLIBRARIES=gfanlib.la
20endif
21  moduledir = $(libexecdir)/singular/MOD
22  P_PROCS_CPPFLAGS_COMMON = -DDYNAMIC_VERSION
23# Add under Mac OS X: -flat_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
24  P_PROCS_MODULE_LDFLAGS =  -module -export-dynamic -avoid-version -flat_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
25endif
26
27gfanlib_la_SOURCES  = $(SOURCES)
28
29gfanlib_la_CPPFLAGS = ${MY_CPPFLAGS} ${P_PROCS_CPPFLAGS_COMMON} ${CDDGMPCPPFLAGS}
30gfanlib_la_LDFLAGS  = ${P_PROCS_MODULE_LDFLAGS} $(SINGULAR_LDFLAGS)
31
32# forcefully enable exceptions for polymake
33CXXFLAGS+= $(FEXCEPTIONSFRTTI_CXXFLAGS)
34
35gfanlib_la_LIBADD = ${top_builddir}/Singular/libSingular.la
36if HAVE_GFANLIB
37 gfanlib_la_LIBADD   += ${abs_top_builddir}/gfanlib/libgfan.la ${CDDGMPLDFLAGS}
38endif
39
40#AM_COLOR_TESTS=always
41#
42#TESTS_ENVIRONMENT  = SINGULARPATH='${abs_top_builddir}/Singular/LIB:${abs_top_srcdir}/Singular/LIB:${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables:${abs_builddir}/.libs:${abs_srcdir}'
43#TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
44#TESTS_ENVIRONMENT += SINGULAR_BIN_DIR='${abs_top_builddir}/Singular' $(SHELL) -x
45#
46#if WANT_DEBUG
47# TESTS=test_release.sh test_debug.sh
48#else
49# TESTS=test_release.sh
50#endif
51#
52# EXTRA_DIST = gfanlib.tst test.sh $(TESTS)
Note: See TracBrowser for help on using the repository browser.