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