~reducedmodelling/fluidity/ROM_Non-intrusive-ann

« back to all changes in this revision

Viewing changes to sediments/Makefile

  • Committer: fangf at ac
  • Date: 2012-11-06 12:21:31 UTC
  • mto: This revision was merged to the branch mainline in revision 3989.
  • Revision ID: fangf@imperial.ac.uk-20121106122131-u2zvt7fxc1r3zeou
updated

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 = /bin/bash
 
28
 
 
29
PACKAGE_NAME = fluidity
 
30
FLUIDITY = $(PACKAGE_NAME)
 
31
 
 
32
FC      = mpif90
 
33
FCFLAGS = -I../include -J../include -fbounds-check -Wall -Wimplicit-interface -Wno-surprising -g -O0 -frecord-marker=4 -DHAVE_NUMPY -I/usr/lib/python2.7/dist-packages/numpy/core/include -ffree-line-length-none -ffixed-line-length-none -finit-integer=-66666 -finit-real=nan  -I/usr/lib/petscdir/3.1/linux-gnu-c-opt/include -I/usr/lib/petscdir/3.1/include -I/usr/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include/spooles -I/usr/include/scotch -I/usr/lib -I/usr/include/suitesparse -fdefault-real-8 -fdefault-double-8 -I/usr/local/include -I./
 
34
 
 
35
CC      = mpicc
 
36
CFLAGS  = -fbounds-check -Wall -g -O0 -I/usr/include/python2.7 -DHAVE_NUMPY -I/usr/lib/python2.7/dist-packages/numpy/core/include -I../include -I/usr/local/include
 
37
 
 
38
CXX     = mpicxx
 
39
CXXFLAGS= -fbounds-check -Wall -g -O0 -I/usr/include/python2.7 -DHAVE_NUMPY -I/usr/lib/python2.7/dist-packages/numpy/core/include -I../include -I/usr/local/include
 
40
 
 
41
MAKE    = make
 
42
AR  = ar
 
43
ARFLAGS = cr
 
44
 
 
45
LIB = ../lib/lib$(FLUIDITY).a
 
46
 
 
47
OBJS = Sediment.o Sediment_Diagnostics.o \
 
48
 
 
49
.SUFFIXES: .f90 .F90 .c .o .a
 
50
 
 
51
.f90.o:
 
52
        @echo "        FC $<"
 
53
        $(FC) $(FCFLAGS) -c $<
 
54
.F90.o:
 
55
        @echo "        FC $<"
 
56
        $(FC) $(FCFLAGS) $(GENFLAGS) -c $< 
 
57
 
 
58
$(LIB): $(OBJS)
 
59
        @mkdir -p ../lib
 
60
 
 
61
default: $(LIB)
 
62
 
 
63
clean:
 
64
        rm -f *.o *.d *.mod
 
65
 
 
66
include Makefile.dependencies