-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathMakefile.am
178 lines (117 loc) · 6.6 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# This file is part of SWIFT.
# Copyright (c) 2015 [email protected].
#
# 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 source directory and the non-standard paths to the included library headers to CFLAGS
AM_CFLAGS = -I$(top_srcdir)/src $(HDF5_CPPFLAGS) $(GSL_INCS) $(FFTW_INCS) $(NUMA_INCS) $(CHEALPIX_CFLAGS)
AM_LDFLAGS = ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS) $(HDF5_LIBS) $(FFTW_LIBS) $(NUMA_LIBS) $(TCMALLOC_LIBS) $(JEMALLOC_LIBS) $(TBBMALLOC_LIBS) $(GRACKLE_LIBS) $(GSL_LIBS) $(PROFILER_LIBS) $(CHEALPIX_LIBS)
if HAVECSDS
AM_LDFLAGS += ../csds/src/.libs/libcsds_writer.a
endif
# List of programs and scripts to run in the test suite
TESTS = testGreetings testMaths testReading.sh testKernel testKernelLongGrav \
testActivePair.sh test27cells.sh test27cellsPerturbed.sh testExp \
testParser.sh test125cells.sh test125cellsPerturbed.sh testFFT \
testAdiabaticIndex testRandom testRandomSpacing testRandomPoisson testErfc \
testMatrixInversion testThreadpool testDump testCSDS testInteractions.sh \
testGravityDerivatives testPeriodicBC.sh testPeriodicBCPerturbed.sh \
testPotentialSelf testPotentialPair testEOS testUtilities testSelectOutput.sh \
testCbrt testCosmology testRandomCone testOutputList testFormat.sh \
test27cellsStars.sh test27cellsStarsPerturbed.sh testHydroMPIrules \
testAtomic testGravitySpeed testNeutrinoCosmology.sh testNeutrinoFermiDirac \
testLog testDistance testTimeline
# List of test programs to compile
check_PROGRAMS = testGreetings testReading testTimeIntegration testKernelLongGrav \
testActivePair test27cells test27cells_subset test125cells testParser \
testKernel testFFT testInteractions testMaths testRandom testExp \
testSymmetry testDistance testThreadpool testRandomSpacing testErfc \
testAdiabaticIndex testRiemannExact testRiemannTRRS testRandomPoisson testRandomCone \
testRiemannHLLC testMatrixInversion testDump testCSDS \
testPeriodicBC testGravityDerivatives testPotentialSelf testPotentialPair testEOS \
testUtilities testSelectOutput testCbrt testCosmology testOutputList \
test27cellsStars test27cellsStars_subset testCooling testComovingCooling testFeedback \
testHashmap testAtomic testHydroMPIrules testGravitySpeed testNeutrinoCosmology \
testNeutrinoFermiDirac testLog testTimeline
# Rebuild tests when SWIFT is updated.
$(check_PROGRAMS): ../src/.libs/libswiftsim.a
# Sources for the individual programs
testGreetings_SOURCES = testGreetings.c
testMaths_SOURCES = testMaths.c
testAtomic_SOURCES = testAtomic.c
testRandom_SOURCES = testRandom.c
testRandomPoisson_SOURCES = testRandomPoisson.c
testRandomSpacing_SOURCES = testRandomSpacing.c
testRandomCone_SOURCES = testRandomCone.c
testReading_SOURCES = testReading.c
testSelectOutput_SOURCES = testSelectOutput.c
testCosmology_SOURCES = testCosmology.c
testOutputList_SOURCES = testOutputList.c
testDistance_SOURCES = testDistance.c
testSymmetry_SOURCES = testSymmetry.c
# Added because of issues using memcmp on clang 4.x
testSymmetry_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
testNeutrinoCosmology_SOURCES = testNeutrinoCosmology.c
testNeutrinoFermiDirac_SOURCES = testNeutrinoFermiDirac.c
testTimeIntegration_SOURCES = testTimeIntegration.c
testActivePair_SOURCES = testActivePair.c
test27cells_SOURCES = test27cells.c
test27cells_subset_SOURCES = test27cells.c
test27cells_subset_CFLAGS = $(AM_CFLAGS) -DTEST_DOSELF_SUBSET -DTEST_DOPAIR_SUBSET
test27cellsStars_SOURCES = test27cellsStars.c
test27cellsStars_subset_SOURCES = test27cellsStars.c
test27cellsStars_subset_CFLAGS = $(AM_CFLAGS) -DTEST_DOSELF_SUBSET -DTEST_DOPAIR_SUBSET
testPeriodicBC_SOURCES = testPeriodicBC.c
test125cells_SOURCES = test125cells.c
testParser_SOURCES = testParser.c
testKernel_SOURCES = testKernel.c
testKernelLongGrav_SOURCES = testKernelLongGrav.c
testFFT_SOURCES = testFFT.c
testInteractions_SOURCES = testInteractions.c
testAdiabaticIndex_SOURCES = testAdiabaticIndex.c
testRiemannExact_SOURCES = testRiemannExact.c
testRiemannTRRS_SOURCES = testRiemannTRRS.c
testRiemannHLLC_SOURCES = testRiemannHLLC.c
testMatrixInversion_SOURCES = testMatrixInversion.c
testThreadpool_SOURCES = testThreadpool.c
testDump_SOURCES = testDump.c
testCSDS_SOURCES = testCSDS.c
testExp_SOURCES = testExp.c
testErfc_SOURCES = testErfc.c
testGravityDerivatives_SOURCES = testGravityDerivatives.c
testGravitySpeed_SOURCES = testGravitySpeed.c
testPotentialSelf_SOURCES = testPotentialSelf.c
testPotentialPair_SOURCES = testPotentialPair.c
testEOS_SOURCES = testEOS.c
testUtilities_SOURCES = testUtilities.c
testCooling_SOURCES = testCooling.c
testComovingCooling_SOURCES = testComovingCooling.c
testFeedback_SOURCES = testFeedback.c
testHashmap_SOURCES = testHashmap.c
testLog_SOURCES = testLog.c
testTimeline_SOURCES = testTimeline.c
testHydroMPIrules = testHydroMPIrules.c
# Files necessary for distribution
EXTRA_DIST = testReading.sh makeInput.py testActivePair.sh \
test27cells.sh test27cellsPerturbed.sh testParser.sh testPeriodicBC.sh \
testPeriodicBCPerturbed.sh test125cells.sh test125cellsPerturbed.sh testParserInput.yaml \
difffloat.py tolerance_125_normal.dat tolerance_125_perturbed.dat \
tolerance_27_normal.dat tolerance_27_perturbed.dat tolerance_27_perturbed_h.dat tolerance_27_perturbed_h2.dat \
tolerance_testInteractions.dat tolerance_pair_active.dat tolerance_pair_force_active.dat \
fft_params.yml tolerance_periodic_BC_normal.dat tolerance_periodic_BC_perturbed.dat \
testEOS.sh testEOS_plot.sh testSelectOutput.sh selectOutput.yml \
output_list_params.yml output_list_time.txt output_list_redshift.txt \
output_list_scale_factor.txt testEOS.sh testEOS_plot.sh \
test27cellsStars.sh test27cellsStarsPerturbed.sh star_tolerance_27_normal.dat \
star_tolerance_27_perturbed.dat star_tolerance_27_perturbed_h.dat star_tolerance_27_perturbed_h2.dat \
testNeutrinoCosmology.dat testNeutrinoCosmology.sh