~fluidity-core/fluidity/exorcised

« back to all changes in this revision

Viewing changes to radiation/tests/Makefile.in

Latest trunk changes, and modifications to the backward_facing_step_2d example, which are experimental and work is ongoing. It's better than the current trunk example in that at least the k_epsilon code is correct.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#    Copyright (C) 2006 Imperial College London and others.
2
 
#
3
 
#    Please see the AUTHORS file in the main source directory for a full list
4
 
#    of copyright holders.
5
 
#
6
 
#    Prof. C Pain
7
 
#    Applied Modelling and Computation Group
8
 
#    Department of Earth Science and Engineering
9
 
#    Imperial College London
10
 
#
11
 
#    amcgsoftware@imperial.ac.uk
12
 
#
13
 
#    This library is free software; you can redistribute it and/or
14
 
#    modify it under the terms of the GNU Lesser General Public
15
 
#    License as published by the Free Software Foundation,
16
 
#    version 2.1 of the License.
17
 
#
18
 
#    This library is distributed in the hope that it will be useful,
19
 
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21
 
#    Lesser General Public License for more details.
22
 
#
23
 
#    You should have received a copy of the GNU Lesser General Public
24
 
#    License along with this library; if not, write to the Free Software
25
 
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
26
 
#    USA
27
 
SHELL = @SHELL@
28
 
 
29
 
FC      = @FC@
30
 
FCFLAGS = -I../../include @FCFLAGS@ @MODINC_FLAG@../
31
 
 
32
 
CC  = @CC@
33
 
CFLAGS  = @CFLAGS@ -I../../include
34
 
 
35
 
CXX = @CXX@ -I../../include
36
 
CXXFLAGS= @CPPFLAGS@ @CXXFLAGS@ -I../../include
37
 
 
38
 
LDFLAGS  = @LDFLAGS@
39
 
 
40
 
LIBS = ./lib/libadaptivity.a ./lib/libvtkfortran.a ./lib/libspatialindex.a ./lib/libspud.a ./lib/libjudy.a @LIBS@
41
 
LIBFLUIDITY=../../lib/lib@FLUIDITY@.a
42
 
 
43
 
# the test binaries NOT to be built
44
 
DISABLED_TESTS=
45
 
 
46
 
# the test programs to be built:
47
 
TEST_BINARIES=$(filter-out $(DISABLED_TESTS), $(basename $(wildcard *.F90)))
48
 
 
49
 
unittest: $(TEST_BINARIES)
50
 
        ln -sf $(addprefix ../../radiation/tests/,$(TEST_BINARIES)) ../../bin/tests/
51
 
 
52
 
.SUFFIXES: .f90 .F90 .c .cpp .o .a $(.SUFFIXES)
53
 
 
54
 
%.o:    %.f90
55
 
        $(FC) $(FCFLAGS) -c $<
56
 
%.o:    %.F90
57
 
        $(FC) $(FCFLAGS) -c $<
58
 
%.o:    %.c
59
 
        $(CC) $(CFLAGS) -c $<
60
 
%.o:    %.cpp
61
 
        $(CXX) $(CXXFLAGS) -c $<
62
 
 
63
 
# creates a TESTNAME_main.o from test_main.cpp which calls the subroutine
64
 
# TESTNAME, that should be a subroutine in TESTNAME.F90
65
 
%_main.o:
66
 
        $(CXX) $(CXXFLAGS) -D TESTNAME=$(subst _main.o,,$@)_ -o $@ -c test_main.cpp @PROFILING_FLAG@
67
 
 
68
 
# link this TESTNAME_main.o with TESTNAME.o from TESTNAME.F90
69
 
%: %_main.o %.o lib/
70
 
        $(CXX) $(LDFLAGS) -o $@ $(filter %.o,$^) $(LIBFLUIDITY) $(LIBS) @PROFILING_FLAG@
71
 
 
72
 
 
73
 
# make a temp sym-link to the directory containing fluidity, adapt and sam libs
74
 
lib/:
75
 
        ln -s ../../lib
76
 
 
77
 
clean:
78
 
        rm -f $(TEST_BINARIES)
79
 
        rm -f *.o *.mod
80
 
        rm -f lib
81
 
        rm -f tests