Skip to content

Commit 24d35f8

Browse files
committed
chore: update Makefiles to follow current project conventions
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 43cbf2d commit 24d35f8

File tree

2 files changed

+54
-33
lines changed
  • lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c

2 files changed

+54
-33
lines changed

lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/cephes/Makefile

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
# limitations under the License.
1717
#/
1818

19-
2019
# VARIABLES #
2120

2221
ifndef VERBOSE
2322
QUIET := @
23+
else
24+
QUIET :=
2425
endif
2526

2627
# Specify the path to Cephes:
@@ -29,7 +30,7 @@ CEPHES ?=
2930
# Specify a list of Cephes source files:
3031
CEPHES_SRC ?=
3132

32-
# Determine the OS:
33+
# Determine the OS ([1][1], [2][2]).
3334
#
3435
# [1]: https://en.wikipedia.org/wiki/Uname#Examples
3536
# [2]: http://stackoverflow.com/a/27776822/2225624
@@ -42,6 +43,10 @@ ifneq (, $(findstring MSYS,$(OS)))
4243
else
4344
ifneq (, $(findstring CYGWIN,$(OS)))
4445
OS := WINNT
46+
else
47+
ifneq (, $(findstring Windows_NT,$(OS)))
48+
OS := WINNT
49+
endif
4550
endif
4651
endif
4752
endif
@@ -60,7 +65,7 @@ CFLAGS ?= \
6065
-Wall \
6166
-pedantic
6267

63-
# Determine whether to generate [position independent code][1]:
68+
# Determine whether to generate position independent code ([1][1], [2][2]).
6469
#
6570
# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
6671
# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
@@ -74,39 +79,55 @@ endif
7479
c_targets := benchmark.out
7580

7681

77-
# TARGETS #
82+
# RULES #
7883

79-
# Default target.
84+
#/
85+
# Compiles C source files.
8086
#
81-
# This target is the default target.
82-
87+
# @param {string} CEPHES_SRC - list of Cephes source files
88+
# @param {string} [C_COMPILER] - C compiler
89+
# @param {string} [CFLAGS] - C compiler flags
90+
# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
91+
#
92+
# @example
93+
# make
94+
#
95+
# @example
96+
# make all
97+
#/
8398
all: $(c_targets)
8499

85100
.PHONY: all
86101

87-
88-
# Compile C source.
102+
#/
103+
# Compiles C source files.
89104
#
90-
# This target compiles C source files.
91-
105+
# @private
106+
# @param {string} CC - C compiler
107+
# @param {string} CFLAGS - C compiler flags
108+
# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
109+
# @param {string} CEPHES_SRC - list of Cephes source files
110+
#/
92111
$(c_targets): %.out: %.c
93112
$(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $(CEPHES_SRC) $< -lm
94113

95-
96-
# Run a benchmark.
114+
#/
115+
# Runs compiled benchmarks.
97116
#
98-
# This target runs a benchmark.
99-
117+
# @example
118+
# make run
119+
#/
100120
run: $(c_targets)
101121
$(QUIET) ./$<
102122

103123
.PHONY: run
104124

105-
106-
# Perform clean-up.
125+
#/
126+
# Removes generated files.
107127
#
108-
# This target removes generated files.
109-
128+
# @example
129+
# make clean
130+
#/
110131
clean:
111132
$(QUIET) -rm -f *.o *.out
112133

lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/native/Makefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ c_targets := benchmark.out
8888
# RULES #
8989

9090
#/
91-
# Compiles source files.
91+
# Compiles C source files.
9292
#
93-
# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
94-
# @param {string} [CFLAGS] - C compiler options
95-
# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
96-
# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
97-
# @param {string} [SOURCE_FILES] - list of source files
93+
# @param {string} SOURCE_FILES - list of C source files
94+
# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
95+
# @param {string} [LIBRARIES] - list of libraries (e.g., `-lpthread -lblas`)
9896
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
99-
# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
97+
# @param {string} [C_COMPILER] - C compiler
98+
# @param {string} [CFLAGS] - C compiler flags
99+
# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
100100
#
101101
# @example
102102
# make
@@ -112,13 +112,13 @@ all: $(c_targets)
112112
# Compiles C source files.
113113
#
114114
# @private
115-
# @param {string} CC - C compiler (e.g., `gcc`)
116-
# @param {string} CFLAGS - C compiler options
117-
# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
118-
# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
119-
# @param {string} SOURCE_FILES - list of source files
120-
# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
121-
# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
115+
# @param {string} SOURCE_FILES - list of C source files
116+
# @param {(string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
117+
# @param {(string|void)} LIBRARIES - list of libraries (e.g., `-lpthread -lblas`)
118+
# @param {(string|void)} LIBPATH - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
119+
# @param {string} CC - C compiler
120+
# @param {string} CFLAGS - C compiler flags
121+
# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
122122
#/
123123
$(c_targets): %.out: %.c
124124
$(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)

0 commit comments

Comments
 (0)