Makefile.am 1.84 KB
Newer Older
Pedro Gonnet's avatar
Pedro Gonnet committed
1

2
# This file is part of SWIFT.
3
4
# Coypright (c) 2012 Pedro Gonnet (pedro.gonnet@durham.ac.uk),
#                    Matthieu Schaller (matthieu.schaller@durham.ac.uk).
Pedro Gonnet's avatar
Pedro Gonnet committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 
# 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/>.

# Automake stuff
AUTOMAKE_OPTIONS=gnu

Pedro Gonnet's avatar
Pedro Gonnet committed
22
23
24
# Common flags
MYFLAGS = -DTIMER

Pedro Gonnet's avatar
Pedro Gonnet committed
25
26
27
# Add the source directory and debug to CFLAGS
AM_CFLAGS = -g -Wall -Werror -I../src $(OPENMP_CFLAGS) -DCPU_TPS=2.67e9

28
AM_LDFLAGS =
29

Pedro Gonnet's avatar
Pedro Gonnet committed
30
# Set-up the library
Pedro Gonnet's avatar
Pedro Gonnet committed
31
bin_PROGRAMS = test test_fixdt test_mindt test_single
Pedro Gonnet's avatar
Pedro Gonnet committed
32
33
34

# Sources for test
test_SOURCES = test.c
Pedro Gonnet's avatar
Pedro Gonnet committed
35
test_CFLAGS = $(MYFLAGS) $(AM_CFLAGS) -DENGINE_POLICY="engine_policy_multistep | engine_policy_keep"
36
test_LDADD =  ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS)
Pedro Gonnet's avatar
Pedro Gonnet committed
37

Pedro Gonnet's avatar
Pedro Gonnet committed
38
39
40
41
42
43
44
45
46
# Sources for test_fixdt
test_fixdt_SOURCES = test.c
test_fixdt_CFLAGS = $(MYFLAGS) $(AM_CFLAGS) -DENGINE_POLICY="engine_policy_fixdt | engine_policy_keep"
test_fixdt_LDADD =  ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS)

# Sources for test_mindt
test_mindt_SOURCES = test.c
test_mindt_CFLAGS = $(MYFLAGS) $(AM_CFLAGS) -DENGINE_POLICY="engine_policy_keep"
test_mindt_LDADD =  ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS)
47

48
49
# Sources for test_single
test_single_SOURCES = test_single.c
Pedro Gonnet's avatar
Pedro Gonnet committed
50
test_single_CFLAGS = $(MYFLAGS) $(AM_CFLAGS)
51
52
test_single_LDADD =  ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS)