2020
2121ifndef VERBOSE
2222 QUIET := @
23+ else
24+ QUIET :=
2325endif
2426
2527# Specify the path to Boost:
2628BOOST ?=
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)))
3840else
3941ifneq (, $(findstring CYGWIN,$(OS ) ) )
4042 OS := WINNT
43+ else
44+ ifneq (, $(findstring Windows_NT,$(OS ) ) )
45+ OS := WINNT
46+ endif
4147endif
4248endif
4349endif
@@ -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