Skip to content
Snippets Groups Projects
Commit 4f43c44f authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Logger: python library compiled only with autotools

parent 1176b1a2
No related branches found
No related tags found
1 merge request!685Logger loader
...@@ -1040,7 +1040,7 @@ if test "x$with_python" != "xno"; then ...@@ -1040,7 +1040,7 @@ if test "x$with_python" != "xno"; then
fi fi
AC_SUBST([PYTHON_LIBS]) AC_SUBST([PYTHON_LIBS])
AC_SUBST([PYTHON_INCS]) AC_SUBST([PYTHON_INCS])
AM_CONDITIONAL([HAVEPYTHON],[test -n "$PYTHON_LIBS"]) AM_CONDITIONAL([HAVEPYTHON],[test -n "$PYTHON_INCS"])
# Check for HDF5. This is required. # Check for HDF5. This is required.
......
...@@ -16,16 +16,19 @@ ...@@ -16,16 +16,19 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# Add the non-standard paths to the included library headers # Add the non-standard paths to the included library headers
AM_CFLAGS = $(PYTHON_INCS) AM_CFLAGS = $(PYTHON_INCS) -I$(top_srcdir)/src $(HDF5_CPPFLAGS) $(GSL_INCS) $(FFTW_INCS) $(GRACKLE_INCS)
AM_LDFLAGS = $(HDF5_LDFLAGS)
# Assign a "safe" version number # Assign a "safe" version number
AM_LDFLAGS = -version-info 0:0:0 BIN_LDFLAGS = -version-info 0:0:0
# The git command, if available. # The git command, if available.
GIT_CMD = @GIT_CMD@ GIT_CMD = @GIT_CMD@
# Additional dependencies for shared libraries. # Additional dependencies for shared libraries.
EXTRA_LIBS = $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(PYTHON_LIBS) EXTRA_LIBS = $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(PYTHON_LIBS) $(HDF5_LIBS) $(FFTW_LIBS) $(GRACKLE_LIBS) $(VELOCIRAPTOR_LIBS) $(GSL_LIBS)
# MPI libraries. # MPI libraries.
# MPI_LIBS = $(MPI_THREAD_LIBS) # MPI_LIBS = $(MPI_THREAD_LIBS)
...@@ -42,19 +45,18 @@ lib_LTLIBRARIES = libswiftlogger.la ...@@ -42,19 +45,18 @@ lib_LTLIBRARIES = libswiftlogger.la
include_HEADERS = header.h io.h particle.h timeline.h logger_tools.h include_HEADERS = header.h io.h particle.h timeline.h logger_tools.h
# Common source files # Common source files
AM_SOURCES = header.c io.c particle.c timeline.c AM_SOURCES = header.c io.c particle.c timeline.c logger_tools.c
if HAVEPYTHON if HAVEPYTHON
AM_SOURCES += logger_loader.c AM_SOURCES += logger_loader.c
endif endif
# Include files for distribution, not installation. # Include files for distribution, not installation.
nobase_noinst_HEADERS = nobase_noinst_HEADERS =
# Sources and flags for regular library # Sources and flags for regular library
libswiftlogger_la_SOURCES = $(AM_SOURCES) libswiftlogger_la_SOURCES = $(AM_SOURCES)
libswiftlogger_la_CFLAGS = $(AM_CFLAGS) libswiftlogger_la_CFLAGS = $(AM_CFLAGS)
libswiftlogger_la_LDFLAGS = $(AM_LDFLAGS) $(EXTRA_LIBS) libswiftlogger_la_LDFLAGS = $(AM_LDFLAGS) $(EXTRA_LIBS) $(BIN_LDFLAGS)
# Sources and flags for MPI library # Sources and flags for MPI library
# libswiftlogger_mpi_la_SOURCES = $(AM_SOURCES) # libswiftlogger_mpi_la_SOURCES = $(AM_SOURCES)
...@@ -63,7 +65,6 @@ libswiftlogger_la_LDFLAGS = $(AM_LDFLAGS) $(EXTRA_LIBS) ...@@ -63,7 +65,6 @@ libswiftlogger_la_LDFLAGS = $(AM_LDFLAGS) $(EXTRA_LIBS)
# libswiftlogger_mpi_la_SHORTNAME = mpi # libswiftlogger_mpi_la_SHORTNAME = mpi
# libswiftlogger_mpi_la_LIBADD = # libswiftlogger_mpi_la_LIBADD =
# Versioning. If any sources change then update the version_string.h file with # Versioning. If any sources change then update the version_string.h file with
# the current git revision and package version. # the current git revision and package version.
# May have a checkout without a version_string.h file and no git command (tar/zip # May have a checkout without a version_string.h file and no git command (tar/zip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment