Skip to content
Snippets Groups Projects

Change clone to fetch

Merged Loic Hausammann requested to merge new_implementation into master
Files
5
+ 0
68
# This file is part of PySWIFTsim.
# Copyright (c) 2019 Loic Hausammann (loic.hausammann@epfl.ch).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Add the non-standard paths to the included library headers
AM_CFLAGS = -I$(top_srcdir)/../src $(HDF5_CPPFLAGS) $(GSL_INCS) $(FFTW_INCS) $(NUMA_INCS) $(GRACKLE_INCS) $(PYTHON_INCS)
# Assign a "safe" version number
AM_LDFLAGS = $(HDF5_LDFLAGS) $(FFTW_LIBS) -version-info 0:0:0
# The git command, if available.
GIT_CMD = @GIT_CMD@
# Additional dependencies for shared libraries.
EXTRA_LIBS = $(HDF5_LIBS) $(FFTW_LIBS) $(NUMA_LIBS) $(PROFILER_LIBS) $(TCMALLOC_LIBS) \
$(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(GRACKLE_LIBS) $(GSL_LIBS) $(PYTHON_LIBS) \
$(top_srcdir)/src/.libs
# MPI libraries.
MPI_LIBS = $(PARMETIS_LIBS) $(METIS_LIBS) $(MPI_THREAD_LIBS)
MPI_FLAGS = -DWITH_MPI $(PARMETIS_INCS) $(METIS_INCS)
# Build the libswiftsim library
lib_LTLIBRARIES = libpyswiftsim.la
# Build a MPI-enabled version too?
if HAVEMPI
lib_LTLIBRARIES += libpyswiftsim_mpi.la
endif
# List required headers
include_HEADERS = chemistry_wrapper.h cooling_wrapper.h \
cosmology_wrapper.h parser_wrapper.h part_wrapper.h \
pyswiftsim_tools.h units_wrapper.h
# Common source files
AM_SOURCES = chemistry_wrapper.c cooling_wrapper.c cosmology_wrapper.c \
parser_wrapper.c part_wrapper.c pyswiftsim_tools.c \
units_wrapper.c wrapper.c
# Include files for distribution, not installation.
nobase_noinst_HEADERS =
# Sources and flags for regular library
libpyswiftsim_la_SOURCES = $(AM_SOURCES)
libpyswiftsim_la_CFLAGS = $(AM_CFLAGS)
libpyswiftsim_la_LDFLAGS = $(AM_LDFLAGS) $(EXTRA_LIBS) -lswiftsim
libpyswiftsim_la_LIBADD = $(GRACKLE_LIBS) $(VELOCIRAPTOR_LIBS)
# Sources and flags for MPI library
libpyswiftsim_mpi_la_SOURCES = $(AM_SOURCES)
libpyswiftsim_mpi_la_CFLAGS = $(AM_CFLAGS) $(MPI_FLAGS)
libpyswiftsim_mpi_la_LDFLAGS = $(AM_LDFLAGS) $(MPI_LIBS) $(EXTRA_LIBS) -lswiftsim_mpi
libpyswiftsim_mpi_la_SHORTNAME = mpi
libpyswiftsim_mpi_la_LIBADD = $(GRACKLE_LIBS) $(VELOCIRAPTOR_LIBS)
Loading