source: git/Singular/dyn_modules/pyobject/Makefile.am @ 61fc1e

spielwiese
Last change on this file since 61fc1e 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
Line 
1ACLOCAL_AMFLAGS = -I ../../m4
2
3if SI_BUILTIN_PYOBJECT
4  noinst_LTLIBRARIES = pyobject.la
5##  moduledir = $(libdir)/singular
6  P_PROCS_CPPFLAGS_COMMON = -DSTATIC_VERSION
7  P_PROCS_MODULE_LDFLAGS  = -module
8else !SI_BUILTIN_PYOBJECT
9  module_LTLIBRARIES = pyobject.la
10  moduledir = $(libexecdir)/singular/MOD
11  P_PROCS_CPPFLAGS_COMMON = -DDYNAMIC_VERSION
12# Add under Mac OS X: -flat_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
13  P_PROCS_MODULE_LDFLAGS = -module -export-dynamic -avoid-version -flat_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
14###  -export-dynamic -shared -module -avoid-version (add to all DMs?)
15endif !SI_BUILTIN_PYOBJECT
16
17##########################################################################
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)
19
20pyobject_la_SOURCES = pyobject.cc
21
22### if HAVE_PYTHON???
23pyobject_la_CXXFLAGS = $(PYTHON_CSPEC)
24pyobject_la_CPPFLAGS = $(PYTHON_CPPFLAGS)  ${AM_CPPFLAGS} ${P_PROCS_CPPFLAGS_COMMON}
25
26pyobject_la_LDFLAGS = $(PYTHON_EXTRA_LIBS)  $(PYTHON_LSPEC) ${AM_LDFLAGS} $(PYTHON_EXTRA_LDFLAGS) $(PYTHON_LDFLAGS) ${P_PROCS_MODULE_LDFLAGS} $(SINGULAR_LDFLAGS)
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.