-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.site
44 lines (36 loc) · 1.25 KB
/
Makefile.site
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
# Define the following paths:
# - GTESTDIR: Path to the google test directory
GTESTDIR = $(HOME)/Documents/googletest/googletest
# Define the following compiler-related flags
# - CXXCOMPNAME: Name of C++ compiler {gnu, pgi, xl, clang}
# - CXXCOMP: The desired C++ compiler command or path
# - CXXFLAGS_PROD, CXXFLAGS_DEBUG: The set of compiler flags. The debug option
# will be chosen if --debug (or -d) is included in the setup command,
# otherwise the production flags will be used.
CXXCOMPNAME = gnu
CXXCOMP = mpicxx
ifeq ($(CXXCOMPNAME),gnu)
CXXFLAGS_PROD = -g -O3
else ifeq ($(CXXCOMPNAME), pgi)
CXXFLAGS_PROD = -g -O2 -gopt -fast
else
CXXFLAGS_PROD = -g -O0
endif
CXXFLAGS_DEBUG = -g -O0 \
-Wall -Wextra -pedantic -Wconversion\
-Wno-vla-extension \
-Werror
LDFLAGS_STD = -lstdc++
# Library related
#I don't need includes since I have gtest installed system wide
CXXFLAGS_GTEST =
LIB_GTEST = -lgtest
# Define the follwing paths for generating code coverage reports.
# - LCOV: path or command for the coverage tool (lcov)
# - GENHTML: path or command for generating html reports (genhtml).
# - CXXFLAGS_COV
# - LDFLAGS_COV
LCOV = lcov
GENHTML = genhtml
CXXFLAGS_COV = -fprofile-arcs -ftest-coverage
LDFLAGS_COV = --coverage