|
| 1 | +############################################################################### |
| 2 | +# Copyright (c) 2015-2018, Lawrence Livermore National Security, LLC. |
| 3 | +# |
| 4 | +# Produced at the Lawrence Livermore National Laboratory |
| 5 | +# |
| 6 | +# LLNL-CODE-716457 |
| 7 | +# |
| 8 | +# All rights reserved. |
| 9 | +# |
| 10 | +# Please also read apcomp/LICENSE |
| 11 | +# |
| 12 | +# Redistribution and use in source and binary forms, with or without |
| 13 | +# modification, are permitted provided that the following conditions are met: |
| 14 | +# |
| 15 | +# * Redistributions of source code must retain the above copyright notice, |
| 16 | +# this list of conditions and the disclaimer below. |
| 17 | +# |
| 18 | +# * Redistributions in binary form must reproduce the above copyright notice, |
| 19 | +# this list of conditions and the disclaimer (as noted below) in the |
| 20 | +# documentation and/or other materials provided with the distribution. |
| 21 | +# |
| 22 | +# * Neither the name of the LLNS/LLNL nor the names of its contributors may |
| 23 | +# be used to endorse or promote products derived from this software without |
| 24 | +# specific prior written permission. |
| 25 | +# |
| 26 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 27 | +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 28 | +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 29 | +# ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY, |
| 30 | +# LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY |
| 31 | +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 32 | +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 33 | +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 34 | +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 35 | +# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 36 | +# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 37 | +# POSSIBILITY OF SUCH DAMAGE. |
| 38 | +# |
| 39 | +############################################################################### |
| 40 | + |
| 41 | +############################################################################### |
| 42 | +# file: apcomp_config.mk |
| 43 | +############################################################################### |
| 44 | +# |
| 45 | +# A CMake-generated Make include file Defines the following Make variables: |
| 46 | +# |
| 47 | +###### |
| 48 | +# APCOMP_INCLUDE_FLAGS |
| 49 | +# APCOMP_LIB_FLAGS |
| 50 | +# APCOMP_MPI_LIB_FLAGS |
| 51 | +###### |
| 52 | +# |
| 53 | +# For us in another Makefile build system |
| 54 | +############################################################################ |
| 55 | + |
| 56 | + |
| 57 | +APCOMP_DIR = @CMAKE_INSTALL_PREFIX@ |
| 58 | + |
| 59 | +APCOMP_OPENMP_LINK_FLAGS = @OpenMP_CXX_FLAGS@ |
| 60 | + |
| 61 | +APCOMP_MPI_LIBS =@APCOMP_CONFIG_MK_MPI_LINK_FLAGS@ |
| 62 | + |
| 63 | +# setup rpath helper |
| 64 | +APCOMP_LINK_RPATH = -Wl,-rpath,$(APCOMP_DIR)/lib |
| 65 | + |
| 66 | +####################### |
| 67 | +# APComp Include Flags |
| 68 | +####################### |
| 69 | +APCOMP_INCLUDE_FLAGS = -I $(APCOMP_DIR)/include/ |
| 70 | + |
| 71 | + |
| 72 | +#################### |
| 73 | +# APComp Lib Flags |
| 74 | +#################### |
| 75 | +# if using apcomp without mpi |
| 76 | +APCOMP_LIB_FLAGS = -L $(APCOMP_DIR)/lib \ |
| 77 | + -lapcomp \ |
| 78 | + $(APCOMP_OPENMP_LINK_FLAGS) |
| 79 | + |
| 80 | +# if using apcomp with mpi |
| 81 | +APCOMP_MPI_LIB_FLAGS = -L $(APCOMP_DIR)/lib \ |
| 82 | + -lapcomp_mpi \ |
| 83 | + $(APCOMP_MPI_LIBS) $(ASCENT_OPENMP_LINK_FLAGS) |
0 commit comments