Skip to content

Commit b6a3c60

Browse files
committed
Update Makefile
1 parent 9c67668 commit b6a3c60

File tree

1 file changed

+10
-4
lines changed
  • tools/snippets/benchmark/c/native

1 file changed

+10
-4
lines changed

tools/snippets/benchmark/c/native/Makefile

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

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

25-
# Determine the OS:
27+
# Determine the OS ([1][1], [2][2]).
2628
#
2729
# [1]: https://en.wikipedia.org/wiki/Uname#Examples
2830
# [2]: http://stackoverflow.com/a/27776822/2225624
@@ -35,6 +37,10 @@ ifneq (, $(findstring MSYS,$(OS)))
3537
else
3638
ifneq (, $(findstring CYGWIN,$(OS)))
3739
OS := WINNT
40+
else
41+
ifneq (, $(findstring Windows_NT,$(OS)))
42+
OS := WINNT
43+
endif
3844
endif
3945
endif
4046
endif
@@ -53,7 +59,7 @@ CFLAGS ?= \
5359
-Wall \
5460
-pedantic
5561

56-
# Determine whether to generate [position independent code][1]:
62+
# Determine whether to generate position independent code ([1][1], [2][2]).
5763
#
5864
# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
5965
# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
@@ -90,7 +96,7 @@ c_targets := TODO.out
9096
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
9197
# @param {string} [C_COMPILER] - C compiler
9298
# @param {string} [CFLAGS] - C compiler flags
93-
# @param {(string|void)} [fPIC] - flag indicating whether to generate position independent code
99+
# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
94100
#
95101
# @example
96102
# make
@@ -112,7 +118,7 @@ all: $(c_targets)
112118
# @param {(string|void)} LIBPATH - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
113119
# @param {string} CC - C compiler
114120
# @param {string} CFLAGS - C compiler flags
115-
# @param {(string|void)} fPIC - flag indicating whether to generate position independent code
121+
# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
116122
#/
117123
$(c_targets): %.out: %.c
118124
$(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)

0 commit comments

Comments
 (0)