source: git/Singular/dyn_modules/pyobject/Makefile.am @ f6e134

spielwiese
Last change on this file since f6e134 was f6e134, checked in by Erik M. Bray <erik.bray@…>, 7 years ago
Make modules in dyn_modules require libSingular to be built first on Windows only, and only for modules that are not being built as built-in modules.
  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[f476eb]1ACLOCAL_AMFLAGS = -I ../../m4
2
[a3aecc]3if SI_BUILTIN_PYOBJECT
4  noinst_LTLIBRARIES = pyobject.la
5##  moduledir = $(libdir)/singular
6  P_PROCS_CPPFLAGS_COMMON = -DSTATIC_VERSION
[8025d4]7  P_PROCS_MODULE_LDFLAGS  = -module
[a3aecc]8else !SI_BUILTIN_PYOBJECT
9  module_LTLIBRARIES = pyobject.la
[f476eb]10  moduledir = $(libexecdir)/singular/MOD
[75f460]11  P_PROCS_CPPFLAGS_COMMON = -DDYNAMIC_VERSION
[f476eb]12# Add under Mac OS X: -flat_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
[a3aecc]13  P_PROCS_MODULE_LDFLAGS = -module -export-dynamic -avoid-version -flat_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
[f476eb]14###  -export-dynamic -shared -module -avoid-version (add to all DMs?)
[a3aecc]15endif !SI_BUILTIN_PYOBJECT
[f476eb]16
17##########################################################################
[a3aecc]18AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} -I${top_srcdir}/kernel -I${top_builddir}/kernel -I${top_srcdir}/libpolys -I${top_builddir}/libpolys $(FACTORY_INCLUDES)  $(GMP_CFLAGS) $(NTL_CFLAGS) $(FLINT_CFLAGS)
[f476eb]19
20pyobject_la_SOURCES = pyobject.cc
21
[a3aecc]22### if HAVE_PYTHON???
[f476eb]23pyobject_la_CXXFLAGS = $(PYTHON_CSPEC)
24pyobject_la_CPPFLAGS = $(PYTHON_CPPFLAGS)  ${AM_CPPFLAGS} ${P_PROCS_CPPFLAGS_COMMON}
25
[3b7b36]26pyobject_la_LDFLAGS = $(PYTHON_EXTRA_LIBS)  $(PYTHON_LSPEC) ${AM_LDFLAGS} $(PYTHON_EXTRA_LDFLAGS) $(PYTHON_LDFLAGS) ${P_PROCS_MODULE_LDFLAGS} $(SINGULAR_LDFLAGS)
[f6e134]27pyobject_la_LIBADD = $(PYTHON_EXTRA_LIBS) $(PYTHON_LSPEC) $(PYTHON_EXTRA_LDFLAGS) $(PYTHON_LDFLAGS)
28if SING_WIN
29if !SI_BUILTIN_PYOBJECT
30  pyobject_la_LIBADD += ${top_builddir}/Singular/libSingular.la
31endif
32endif
Note: See TracBrowser for help on using the repository browser.