Skip to content
Snippets Groups Projects
Commit cfd58a34 authored by loikki's avatar loikki
Browse files

Fix compilation issues

parent 9811b735
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# subdirectories
SUBDIRS = src tests
SUBDIRS = src
if !HAVEPYTHON
SUBDIRS += tests
endif
......@@ -30,7 +30,7 @@ GIT_CMD = @GIT_CMD@
# Additional dependencies for shared libraries.
EXTRA_LIBS = $(PROFILER_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(HDF5_LIBS) $(FFTW_LIBS) $(GRACKLE_LIBS) \
$(VELOCIRAPTOR_LIBS) $(GSL_LIBS) -L../src/.libs -lswiftsim
$(VELOCIRAPTOR_LIBS) $(GSL_LIBS) -L../../src/.libs -lswiftsim
# MPI libraries.
# MPI_LIBS = $(MPI_THREAD_LIBS)
......@@ -90,10 +90,11 @@ if HAVEPYTHON
AM_SOURCES += logger_python_wrapper.c
endif
if HAVEPYTHON
# The main python structure is dependent on the version, thus we need to
# remove this one in order to be safe.
PYTHON_EXTRA_COMPILER_FLAG = -Wno-missing-field-initializers -Wno-cast-function-type
PYTHON_EXTRA_COMPILER_FLAG = -Wno-missing-field-initializers -Wno-cast-function-type -Wno-unused-function -Wno-unused-function
endif
# Include files for distribution, not installation.
......@@ -109,10 +110,3 @@ nobase_noinst_HEADERS += star_formation/GEAR/logger_star_formation.h
liblogger_la_SOURCES = $(AM_SOURCES)
liblogger_la_CFLAGS = $(AM_CFLAGS) $(PYTHON_EXTRA_COMPILER_FLAG)
liblogger_la_LDFLAGS = $(AM_LDFLAGS) $(EXTRA_LIBS) $(BIN_LDFLAGS)
# Sources and flags for MPI library
# liblogger_mpi_la_SOURCES = $(AM_SOURCES)
# liblogger_mpi_la_CFLAGS = $(AM_CFLAGS) $(MPI_FLAGS) $(PYTHON_EXTRA_COMPILER_FLAG)
# liblogger_mpi_la_LDFLAGS = $(AM_LDFLAGS) $(MPI_LIBS) $(EXTRA_LIBS)
# liblogger_mpi_la_SHORTNAME = mpi
# liblogger_mpi_la_LIBADD =
......@@ -15,9 +15,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Add the source directory and the non-standard paths to the included library headers to CFLAGS
AM_CFLAGS = $(PYTHON_INCS) -I$(top_srcdir)/src -I$(top_srcdir)/logger $(HDF5_CPPFLAGS) $(GSL_INCS) $(FFTW_INCS)
AM_CFLAGS = $(PYTHON_INCS) -I$(top_srcdir)/src -I$(top_srcdir)/csds/src $(HDF5_CPPFLAGS) $(GSL_INCS) $(FFTW_INCS)
AM_LDFLAGS = ../../src/.libs/libswiftsim.a ../.libs/liblogger.a $(HDF5_LDFLAGS) $(HDF5_LIBS) $(FFTW_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(GRACKLE_LIBS) $(GSL_LIBS) $(PROFILER_LIBS) $(PYTHON_LIBS) -lswiftsim
AM_LDFLAGS = ../src/.libs/liblogger.a $(HDF5_LDFLAGS) $(HDF5_LIBS) $(FFTW_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(GRACKLE_LIBS) $(GSL_LIBS) $(PROFILER_LIBS) $(PYTHON_LIBS) -L../../src/.libs -lswiftsim $(PYTHON_EXTRA_COMPILER_FLAG)
# List of programs and scripts to run in the test suite
TESTS = testLogfileHeader testLogfileReader testTimeArray testQuickSort testVirtualReality
......@@ -26,7 +26,7 @@ TESTS = testLogfileHeader testLogfileReader testTimeArray testQuickSort testVirt
check_PROGRAMS = testLogfileHeader testLogfileReader testTimeArray testQuickSort testVirtualReality
# Rebuild tests when SWIFT is updated.
$(check_PROGRAMS): ../../src/.libs/libswiftsim.a ../.libs/liblogger.a
$(check_PROGRAMS): ../../src/.libs/libswiftsim.a ../src/.libs/liblogger.a
# Sources for the individual programs
testLogfileHeader_SOURCES = testLogfileHeader.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment