Skip to content

Commit 904142e

Browse files
committed
Update Makefile
1 parent 222236d commit 904142e

File tree

1 file changed

+10
-4
lines changed
  • tools/snippets/benchmark/cpp/boost

1 file changed

+10
-4
lines changed

tools/snippets/benchmark/cpp/boost/Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020

2121
ifndef VERBOSE
2222
QUIET := @
23+
else
24+
QUIET :=
2325
endif
2426

2527
# Specify the path to Boost:
2628
BOOST ?=
2729

28-
# Determine the OS:
30+
# Determine the OS ([1][1], [2][2]).
2931
#
3032
# [1]: https://en.wikipedia.org/wiki/Uname#Examples
3133
# [2]: http://stackoverflow.com/a/27776822/2225624
@@ -38,6 +40,10 @@ ifneq (, $(findstring MSYS,$(OS)))
3840
else
3941
ifneq (, $(findstring CYGWIN,$(OS)))
4042
OS := WINNT
43+
else
44+
ifneq (, $(findstring Windows_NT,$(OS)))
45+
OS := WINNT
46+
endif
4147
endif
4248
endif
4349
endif
@@ -56,7 +62,7 @@ CXXFLAGS ?= \
5662
-Wall \
5763
-pedantic
5864

59-
# Determine whether to generate [position independent code][1]:
65+
# Determine whether to generate position independent code ([1][1], [2][2]).
6066
#
6167
# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
6268
# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
@@ -78,7 +84,7 @@ cxx_targets := benchmark.out
7884
# @param {string} BOOST - Boost include directory
7985
# @param {string} [CXX_COMPILER] - C++ compiler
8086
# @param {string} [CXXFLAGS] - C++ compiler flags
81-
# @param {(string|void)} [fPIC] - flag indicating whether to generate position independent code
87+
# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
8288
#
8389
# @example
8490
# make
@@ -96,7 +102,7 @@ all: $(cxx_targets)
96102
# @private
97103
# @param {string} CXX - C++ compiler
98104
# @param {string} CXXFLAGS - C++ compiler flags
99-
# @param {(string|void)} fPIC - flag indicating whether to generate position independent code
105+
# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
100106
# @param {string} BOOST - Boost include directory
101107
#/
102108
$(cxx_targets): %.out: %.cpp $(BOOST)

0 commit comments

Comments
 (0)