forked from XBraid/xbraid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (46 loc) · 1.87 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#BHEADER**********************************************************************
#
# Copyright (c) 2013, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory. Written by
# Jacob Schroder, Rob Falgout, Tzanio Kolev, Ulrike Yang, Veselin
# Dobrev, et al. LLNL-CODE-660355. All rights reserved.
#
# This file is part of XBraid. For support, post issues to the XBraid Github page.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License (as published by the Free Software
# Foundation) version 2.1 dated February 1999.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the IMPLIED WARRANTY OF MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the terms and conditions of the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#EHEADER**********************************************************************
##################################################################
# Import machine specific compilers, options, flags, etc..
##################################################################
.PHONY: all braid clean
all: braid examples
braid:
cd braid; $(MAKE)
examples: ./braid/libbraid.a
cd examples; $(MAKE)
drivers: ./braid/libbraid.a
cd drivers; $(MAKE)
clean:
cd examples; $(MAKE) clean
cd drivers; $(MAKE) clean
cd braid; $(MAKE) clean
info:
@echo "MPICC = `which $(MPICC)`"
@echo "MPICXX = `which $(MPICXX)`"
@echo "MPIF90 = `which $(MPIF90)`"
@echo "CFLAGS = $(CFLAGS)"
@echo "CXXFLAGS = $(CXXFLAGS)"
@echo "FORTFLAGS = $(FORTFLAGS)"
@echo "LFLAGS = $(LFLAGS)"