Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSDS Reader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Loic Hausammann
CSDS Reader
Commits
cfd58a34
Commit
cfd58a34
authored
4 years ago
by
loikki
Browse files
Options
Downloads
Patches
Plain Diff
Fix compilation issues
parent
9811b735
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.am
+5
-1
5 additions, 1 deletion
Makefile.am
src/Makefile.am
+3
-9
3 additions, 9 deletions
src/Makefile.am
tests/Makefile.am
+3
-3
3 additions, 3 deletions
tests/Makefile.am
with
11 additions
and
13 deletions
Makefile.am
+
5
−
1
View file @
cfd58a34
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
3
−
9
View file @
cfd58a34
...
...
@@ -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 =
This diff is collapsed.
Click to expand it.
tests/Makefile.am
+
3
−
3
View file @
cfd58a34
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment