1
# Copyright (C) 2006 Imperial College London and others.
3
# Please see the AUTHORS file in the main source directory for a full list
4
# of copyright holders.
7
# Applied Modelling and Computation Group
8
# Department of Earth Science and Engineering
9
# Imperial College London
11
# amcgsoftware@imperial.ac.uk
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.
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.
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
30
FCFLAGS = -I../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
35
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
38
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
44
LINKER = mpicxx -rdynamic
46
LIB_FLUIDITY = ../lib/libfluidity.a
47
LIBS = -L../lib $(LIB_FLUIDITY) -lblas -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath \
48
../lib/libadaptivity.a ../lib/libvtkfortran.a \
49
../lib/libspatialindex.a ../lib/libspud.a
51
OBJS = fldmain.o fldgmsh.o fldtriangle.o partition.o
53
FLDECOMP = ../bin/fldecomp
55
.SUFFIXES: .f90 .F90 .c .o .a
59
$(FC) $(FCFLAGS) -c $<
62
$(FC) $(FCFLAGS) -c $<
65
$(CXX) $(CXXFLAGS) -c $<
67
fldecomp: $(LIB) $(OBJS)
68
@$(EVAL) $(LINKER) -o $(FLDECOMP) -I../include/ \
69
$(OBJS) $(LIBS) -lmetis