source: git/dyn_modules/callpolymake/Makefile.am @ b7b2c5

jengelh-datetimespielwiese
Last change on this file since b7b2c5 was b7b2c5, checked in by Martin Lee <martinlee84@…>, 9 years ago
attempt to fix polymake dynamic module
  • Property mode set to 100644
File size: 1.2 KB
Line 
1ACLOCAL_AMFLAGS = -I ../../m4
2
3moduledir = $(libexecdir)/singular/MOD
4
5if SING_HAVE_POLYMAKE
6if ENABLE_P_PROCS_DYNAMIC
7  module_LTLIBRARIES=polymake.la
8endif
9endif
10
11# forcefully enable exceptions for polymake
12POLYMAKE_CFLAGS = -fexceptions -frtti
13
14AM_LDFLAGS      = -release ${PACKAGE_VERSION} ${PM_LDFLAGS}
15
16SOURCES = polymake_conversion.cc polymake_documentation.cc polymake_wrapper.cc
17
18CXXFLAGS += $(POLYMAKE_CXXFLAGS)
19
20polymake_la_SOURCES = $(SOURCES)
21
22MYINCLUDES = -I${top_srcdir} -I${top_builddir} -I${srcdir} \
23-I${top_srcdir}/libpolys -I${top_builddir}/libpolys  \
24-I${top_builddir}/factory/include $(GMP_CFLAGS) $(PM_INC) $(PM_CFLAGS) \
25$(POLYMAKE_CFLAGS) $(FACTORY_CFLAGS)
26
27P_PROCS_CPPFLAGS_COMMON = -DDYNAMIC_VERSION
28
29polymake_la_CPPFLAGS = ${MYINCLUDES} ${P_PROCS_CPPFLAGS_COMMON} ${POLYMAKE_CFLAGS}
30polymake_la_CXXFLAGS = ${POLYMAKE_CFLAGS}
31polymake_la_CFLAGS = ${POLYMAKE_CFLAGS}
32
33if ENABLE_P_PROCS_DYNAMIC
34  P_PROCS_MODULE_LDFLAGS = ${AM_LDFLAGS} -shared -module
35else
36  P_PROCS_MODULE_LDFLAGS = ${AM_LDFLAGS}
37endif
38
39# Add under Mac OS X: -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup
40polymake_la_LDFLAGS = ${P_PROCS_MODULE_LDFLAGS}
41polymake_la_LIBADD = ${PM_LIBS}
Note: See TracBrowser for help on using the repository browser.