source: src/Python/Makefile.am@ 1ca493a

Candidate_v1.7.0 stable
Last change on this file since 1ca493a was 1ca493a, checked in by Frederik Heber <frederik.heber@…>, 5 years ago

Allowing python3 usage.

  • Init function name changes on python2/3.
  • added test and AC_DEFINEs to configure.ac.
  • PythonScripting branches on these preprocessor defines.
  • removed ax_python.m4.
  • FIX: boost.m4 overwrites BOOST_PYTHON_LIBS pulled from python-config which caused the issues with ax_python.m4 and boost.m4 checking for different python versions. Added BOOST_PYTHON_LIB which contains the python libs needed.
  • Property mode set to 100644
File size: 3.0 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4PYTHONSOURCE = \
5 Python/exit.cpp \
6 Python/getBoundingBox.cpp \
7 Python/getDomainVolume.cpp \
8 Python/getSelectedMolarMass.cpp \
9 Python/PythonScripting.cpp \
10 Python/reinit.cpp \
11 Python/wait.cpp
12
13PYTHONHEADER = \
14 Python/modules.hpp \
15 Python/PythonScripting_impl.hpp \
16 Python/PythonScripting.hpp
17
18
19noinst_LTLIBRARIES += libMolecuilderPython.la
20libMolecuilderPython_la_includedir = $(includedir)/MoleCuilder/
21libMolecuilderPython_la_CPPFLAGS = $(AM_CPPFLAGS) $(BOOST_PYTHON_CPPFLAGS)
22libMolecuilderPython_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_PYTHON_LDFLAGS)
23libMolecuilderPython_la_LIBADD = \
24 $(BOOST_PYTHON_LIBS) \
25 $(BOOST_PYTHON_LIB) \
26 ${CodePatterns_LIBS}
27
28nobase_libMolecuilderPython_la_include_HEADERS = ${PYTHONHEADER}
29
30## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
31## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
32## will therefore be treated as if it were literally part of the target name,
33## and the variable name derived from that.
34## The file extension .cc is recognized by Automake, and makes it produce
35## rules which invoke the C++ compiler to produce a libtool object file (.lo)
36## from each source file. Note that it is not necessary to list header files
37## which are already listed elsewhere in a _HEADERS variable assignment.
38libMolecuilderPython_la_SOURCES = ${PYTHONSOURCE}
39
40## Instruct libtool to include ABI version information in the generated shared
41## library file (.so). The library ABI version is defined in configure.ac, so
42## that all version information is kept in one place.
43#libMolecuilderPython_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
44
45## The generated configuration header is installed in its own subdirectory of
46## $(libdir). The reason for this is that the configuration information put
47## into this header file describes the target platform the installed library
48## has been built for. Thus the file must not be installed into a location
49## intended for architecture-independent files, as defined by the Filesystem
50## Hierarchy Standard (FHS).
51## The nodist_ prefix instructs Automake to not generate rules for including
52## the listed files in the distribution on 'make dist'. Files that are listed
53## in _HEADERS variables are normally included in the distribution, but the
54## configuration header file is generated at configure time and should not be
55## shipped with the source tarball.
56#libMolecuilderPython_libincludedir = $(libdir)/MoleCuilder/include
57#nodist_libMolecuilderPython_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
58
59## Install the generated pkg-config file (.pc) into the expected location for
60## architecture-dependent package configuration information. Occasionally,
61## pkg-config files are also used for architecture-independent data packages,
62## in which case the correct install location would be $(datadir)/pkgconfig.
63#pkgconfigdir = $(libdir)/pkgconfig
64#pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
Note: See TracBrowser for help on using the repository browser.