xref: /phasta/svLS/Makefile (revision 712d3df0b59ebebaaeaea358162c8d2c043c6e08)
1*1e99f302SBen Matthews# Hey emacs, this is a -*- makefile -*-
2*1e99f302SBen Matthews
3*1e99f302SBen Matthews# Copyright (c) 2014-2015 The Regents of the University of California.
4*1e99f302SBen Matthews# All Rights Reserved.
5*1e99f302SBen Matthews#
6*1e99f302SBen Matthews# Copyright (c) 2009-2011 Open Source Medical Software Corporation,
7*1e99f302SBen Matthews#                         University of California, San Diego.
8*1e99f302SBen Matthews#
9*1e99f302SBen Matthews# All rights reserved.
10*1e99f302SBen Matthews#
11*1e99f302SBen Matthews# Portions Copyright (c) 2000-2007, Stanford University,
12*1e99f302SBen Matthews#    Rensselaer Polytechnic Institute, Kenneth E. Jansen,
13*1e99f302SBen Matthews#    Charles A. Taylor (see SimVascular Acknowledgements file
14*1e99f302SBen Matthews#    for additional contributors to the source code).
15*1e99f302SBen Matthews#
16*1e99f302SBen Matthews# All rights reserved.
17*1e99f302SBen Matthews#
18*1e99f302SBen Matthews# Redistribution and use in source and binary forms, with or without
19*1e99f302SBen Matthews# modification, are permitted provided that the following conditions
20*1e99f302SBen Matthews# are met:
21*1e99f302SBen Matthews#
22*1e99f302SBen Matthews# Redistributions of source code must retain the above copyright notice,
23*1e99f302SBen Matthews# this list of conditions and the following disclaimer.
24*1e99f302SBen Matthews# Redistributions in binary form must reproduce the above copyright
25*1e99f302SBen Matthews# notice, this list of conditions and the following disclaimer in the
26*1e99f302SBen Matthews# documentation and/or other materials provided with the distribution.
27*1e99f302SBen Matthews# Neither the name of the Stanford University or Rensselaer Polytechnic
28*1e99f302SBen Matthews# Institute nor the names of its contributors may be used to endorse or
29*1e99f302SBen Matthews# promote products derived from this software without specific prior
30*1e99f302SBen Matthews# written permission.
31*1e99f302SBen Matthews#
32*1e99f302SBen Matthews# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33*1e99f302SBen Matthews# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34*1e99f302SBen Matthews# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
35*1e99f302SBen Matthews# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
36*1e99f302SBen Matthews# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
37*1e99f302SBen Matthews# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
38*1e99f302SBen Matthews# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
39*1e99f302SBen Matthews# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
40*1e99f302SBen Matthews# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
41*1e99f302SBen Matthews# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
42*1e99f302SBen Matthews# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
43*1e99f302SBen Matthews# DAMAGE.
44*1e99f302SBen Matthews
45*1e99f302SBen Matthews
46*1e99f302SBen MatthewsTOP=../../../../BuildWithMake
47*1e99f302SBen Matthews
48*1e99f302SBen Matthewsinclude $(TOP)/include.mk
49*1e99f302SBen Matthews
50*1e99f302SBen Matthews# ==============
51*1e99f302SBen Matthews# Compiler flags
52*1e99f302SBen Matthews# ==============
53*1e99f302SBen Matthews
54*1e99f302SBen MatthewsFFLAGS   = $(GLOBAL_FFLAGS) $(MPI_INCDIR) $(METIS_INCDIR)
55*1e99f302SBen Matthews
56*1e99f302SBen Matthewsifeq ($(MAKE_WITH_SOURCE_CODE_SVLS),1)
57*1e99f302SBen Matthews  FSRCS    =	        ADDBCMUL.f \
58*1e99f302SBen Matthews			BC.f \
59*1e99f302SBen Matthews			CGRAD.f \
60*1e99f302SBen Matthews			COMMU.f \
61*1e99f302SBen Matthews			CPUT.f \
62*1e99f302SBen Matthews			DOT.f \
63*1e99f302SBen Matthews			GE.f \
64*1e99f302SBen Matthews			GMRES.f \
65*1e99f302SBen Matthews			INCOMMU.f \
66*1e99f302SBen Matthews			LHS.f \
67*1e99f302SBen Matthews			LS.f \
68*1e99f302SBen Matthews			NORM.f \
69*1e99f302SBen Matthews			NSSOLVER.f \
70*1e99f302SBen Matthews			PRECOND.f \
71*1e99f302SBen Matthews			SOLVE.f \
72*1e99f302SBen Matthews			SPARMUL.f
73*1e99f302SBen Matthews TARGET_LIB_NAME = simvascular_svLS_$(MPI_NAME)
74*1e99f302SBen Matthewsendif
75*1e99f302SBen Matthews
76*1e99f302SBen Matthewsifeq ($(MAKE_WITH_DUMMY_SVLS),1)
77*1e99f302SBen Matthews  FSRCS      = dummy_prototypes.f
78*1e99f302SBen Matthews  TARGET_LIB_NAME = simvascular_dummy_svLS
79*1e99f302SBen Matthewsendif
80*1e99f302SBen Matthews
81*1e99f302SBen MatthewsOBJ_DIR = $(BUILD_MPI_DIR)
82*1e99f302SBen Matthews
83*1e99f302SBen Matthewsinclude $(TOP)/targetlib.mk
84*1e99f302SBen Matthews
85*1e99f302SBen Matthews
86