diff --git a/CHANGELOG.md b/CHANGELOG.md index 02b8b7517..0ffbd4ac3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,72 @@ +
+ +#### [@stdlib/math/base/ops/cdiv](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cdiv) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/ops/cneg](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cneg) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/ops/cnegf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/ops/cnegf) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + +
#### [@stdlib/math/base/special](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special) @@ -48,6 +114,16 @@ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + +
##### BREAKING CHANGES @@ -66,6 +142,138 @@ +
+ +#### [@stdlib/math/base/special/acos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/acos) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/acosh](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/acosh) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/acoth](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/acoth) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/acovercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/acovercos) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/acoversin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/acoversin) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/ahavercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ahavercos) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + +
#### [@stdlib/math/base/special/ahavercosf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ahavercosf) @@ -100,6 +308,28 @@ This release closes the following issue: +
+ +#### [@stdlib/math/base/special/ahaversin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ahaversin) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + +
#### [@stdlib/math/base/special/ahaversinf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ahaversinf) @@ -122,33 +352,43 @@ This release closes the following issue: -
+
-#### [@stdlib/math/base/special/bernoulli](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/bernoulli) +#### [@stdlib/math/base/special/asech](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/asech)
-
+
-##### Features +##### Reverts -- [`47cfa90`](https://github.com/stdlib-js/stdlib/commit/47cfa907d643a00ac5b3fce9967e655401e110f8) - update the return value for `n=1` in `math/base/special/bernoulli` [(#3108)](https://github.com/stdlib-js/stdlib/pull/3108) +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile
- + -
+
-##### BREAKING CHANGES +
-- [`47cfa90`](https://github.com/stdlib-js/stdlib/commit/47cfa907d643a00ac5b3fce9967e655401e110f8): update return value for `n=1` + - - In order to migrate and preserve prior behavior, users should special case `n=1` and return `0`. The change in this commit aligns return values with SymPy and R; although, other libraries and envs choose to return `-0.5`. +
+ +#### [@stdlib/math/base/special/asin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/asin) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile
- +
@@ -156,33 +396,43 @@ This release closes the following issue: -
+
-#### [@stdlib/math/base/special/cfloorf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cfloorf) +#### [@stdlib/math/base/special/asinh](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/asinh)
-
+
-##### Features +##### Reverts -- [`6556a46`](https://github.com/stdlib-js/stdlib/commit/6556a46aa3a6dffdff6becd4fb98d32421b3e7f2) - add `math/base/special/cfloorf` [(#3058)](https://github.com/stdlib-js/stdlib/pull/3058) +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile
- + -
+
-##### Closed Issues +
-This release closes the following issue: + -[#649](https://github.com/stdlib-js/stdlib/issues/649) +
+ +#### [@stdlib/math/base/special/atan](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/atan) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile
- +
@@ -190,33 +440,43 @@ This release closes the following issue: -
+
-#### [@stdlib/math/base/special/croundf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/croundf) +#### [@stdlib/math/base/special/atan2](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/atan2)
-
+
-##### Features +##### Reverts -- [`d9a93be`](https://github.com/stdlib-js/stdlib/commit/d9a93be954f04720bb5b03512be42c9ce6201088) - add `math/base/special/croundf` [(#3061)](https://github.com/stdlib-js/stdlib/pull/3061) +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile
- + -
+
-##### Closed Issues +
-This release closes the following issue: + -[#649](https://github.com/stdlib-js/stdlib/issues/649) +
+ +#### [@stdlib/math/base/special/atanh](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/atanh) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile
- +
@@ -224,21 +484,21 @@ This release closes the following issue: -
+
-#### [@stdlib/math/base/special/fmodf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/fmodf) +#### [@stdlib/math/base/special/avercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/avercos)
-
+
-##### Features +##### Reverts -- [`7fd112c`](https://github.com/stdlib-js/stdlib/commit/7fd112c799e3a864d975357b2066e45f4196653e) - add `math/base/special/fmodf` [(#3059)](https://github.com/stdlib-js/stdlib/pull/3059) +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile
- +
@@ -246,21 +506,2003 @@ This release closes the following issue: -
+
-#### [@stdlib/math/base/special/gcdf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/gcdf) +#### [@stdlib/math/base/special/aversin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/aversin)
-
+
-##### Features +##### Reverts -- [`f8bcfd8`](https://github.com/stdlib-js/stdlib/commit/f8bcfd832483d46068c710b6854d5f97bcb778fd) - add `math/base/special/gcdf` [(#2997)](https://github.com/stdlib-js/stdlib/pull/2997) +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile
- + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/bernoulli](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/bernoulli) + +
+ +
+ +##### Features + +- [`47cfa90`](https://github.com/stdlib-js/stdlib/commit/47cfa907d643a00ac5b3fce9967e655401e110f8) - update the return value for `n=1` in `math/base/special/bernoulli` [(#3108)](https://github.com/stdlib-js/stdlib/pull/3108) + +
+ + + +
+ +##### BREAKING CHANGES + +- [`47cfa90`](https://github.com/stdlib-js/stdlib/commit/47cfa907d643a00ac5b3fce9967e655401e110f8): update return value for `n=1` + + - In order to migrate and preserve prior behavior, users should special case `n=1` and return `0`. The change in this commit aligns return values with SymPy and R; although, other libraries and envs choose to return `-0.5`. + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/besselj0](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/besselj0) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/besselj1](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/besselj1) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/bessely0](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/bessely0) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/bessely1](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/bessely1) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cbrt](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cbrt) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cbrtf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cbrtf) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/ccis](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ccis) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/ceil](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ceil) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/ceilf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ceilf) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cexp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cexp) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cfloor](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cfloor) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cfloorf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cfloorf) + +
+ +
+ +##### Features + +- [`6556a46`](https://github.com/stdlib-js/stdlib/commit/6556a46aa3a6dffdff6becd4fb98d32421b3e7f2) - add `math/base/special/cfloorf` [(#3058)](https://github.com/stdlib-js/stdlib/pull/3058) + +
+ + + +
+ +##### Closed Issues + +This release closes the following issue: + +[#649](https://github.com/stdlib-js/stdlib/issues/649) + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cfloorn](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cfloorn) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cinv](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cinv) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cos) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cosh](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cosh) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/covercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/covercos) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/coversin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/coversin) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cphase](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cphase) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/cround](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cround) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/croundf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/croundf) + +
+ +
+ +##### Features + +- [`d9a93be`](https://github.com/stdlib-js/stdlib/commit/d9a93be954f04720bb5b03512be42c9ce6201088) - add `math/base/special/croundf` [(#3061)](https://github.com/stdlib-js/stdlib/pull/3061) + +
+ + + +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +##### Closed Issues + +This release closes the following issue: + +[#649](https://github.com/stdlib-js/stdlib/issues/649) + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/dirac-delta](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/dirac-delta) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/erf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/erf) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/erfc](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/erfc) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/exp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/exp) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/exp2](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/exp2) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/expit](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/expit) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/expm1](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/expm1) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/factorialln](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/factorialln) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/fibonacci](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/fibonacci) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/fibonacci-index](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/fibonacci-index) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/fmodf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/fmodf) + +
+ +
+ +##### Features + +- [`7fd112c`](https://github.com/stdlib-js/stdlib/commit/7fd112c799e3a864d975357b2066e45f4196653e) - add `math/base/special/fmodf` [(#3059)](https://github.com/stdlib-js/stdlib/pull/3059) + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/frexp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/frexp) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/gamma](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/gamma) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/gammaln](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/gammaln) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/gcdf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/gcdf) + +
+ +
+ +##### Features + +- [`f8bcfd8`](https://github.com/stdlib-js/stdlib/commit/f8bcfd832483d46068c710b6854d5f97bcb778fd) - add `math/base/special/gcdf` [(#2997)](https://github.com/stdlib-js/stdlib/pull/2997) + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/hacovercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/hacovercos) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/hacoversin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/hacoversin) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/havercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/havercos) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/haversin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/haversin) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/heaviside](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/heaviside) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/ldexp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ldexp) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/ln](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ln) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/log](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/log) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/log10](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/log10) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/log1mexp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/log1mexp) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/log1p](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/log1p) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/log1pexp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/log1pexp) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/log1pmx](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/log1pmx) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/log2](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/log2) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/logaddexp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/logaddexp) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/logit](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/logit) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/lucas](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/lucas) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/max](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/max) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/maxabs](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/maxabs) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/maxabsn](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/maxabsn) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/maxn](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/maxn) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/min](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/min) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/minabs](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/minabs) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/minabsn](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/minabsn) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/minn](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/minn) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/modf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/modf) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/negafibonacci](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/negafibonacci) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/negalucas](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/negalucas) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/pow](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/pow) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/rad2deg](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/rad2deg) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/ramp](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/ramp) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/rampf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/rampf) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/rcbrt](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/rcbrt) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/round](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/round) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/rsqrt](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/rsqrt) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/rsqrtf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/rsqrtf) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/signum](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/signum) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/signumf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/signumf) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/sin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sin) + +
+ +
+ +##### Reverts + +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/sincos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sincos) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/sincospi](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sincospi) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/sinh](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sinh) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/sqrt](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrt) + +
+ +
+ +##### Reverts + +- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/sqrtf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrtf) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/tan](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/tan) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/tanh](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/tanh) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/trunc](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/trunc) + +
+ +
+ +##### Reverts + +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/truncf](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/truncf) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/vercos](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/vercos) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/versin](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/versin) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ + + +
+ +
+ + + +
+ +#### [@stdlib/math/base/special/wrap](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/wrap) + +
+ +
+ +##### Reverts + +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - chore: update to modern benchmark Makefile + +
+ +
@@ -356,6 +2598,10 @@ A total of 5 people contributed to this release. Thank you to the following cont
+- [`1dd3fdc`](https://github.com/stdlib-js/stdlib/commit/1dd3fdcf42490e1d3c93fa3a21a65aca69454932) - **revert:** chore: update to modern benchmark Makefile _(by Philipp Burckhardt)_ +- [`e5ce2d6`](https://github.com/stdlib-js/stdlib/commit/e5ce2d609f303ac075cee06bfc453cddea9d039c) - **revert:** chore: update to modern benchmark Makefile _(by Philipp Burckhardt)_ +- [`d8a4cfb`](https://github.com/stdlib-js/stdlib/commit/d8a4cfb578a949ed07c7a18749e48096f4f9b488) - **revert:** chore: update to modern benchmark Makefile _(by Philipp Burckhardt)_ +- [`dbbb0ba`](https://github.com/stdlib-js/stdlib/commit/dbbb0bab688e9a2de22d967a57eeb31738b93340) - **revert:** chore: update to modern benchmark Makefile _(by Philipp Burckhardt)_ - [`cdaf16f`](https://github.com/stdlib-js/stdlib/commit/cdaf16f9f3c05f153fcffbb00dab12412196cce6) - **chore:** update to modern benchmark Makefile _(by Philipp Burckhardt)_ - [`ac4992b`](https://github.com/stdlib-js/stdlib/commit/ac4992b3eeccbfcceea795f86cf669b2481d8250) - **chore:** update to modern benchmark Makefile _(by Philipp Burckhardt)_ - [`97a27cf`](https://github.com/stdlib-js/stdlib/commit/97a27cf2746042026c3e68416b7c5f9da2bb24d9) - **chore:** update to modern benchmark Makefile _(by Philipp Burckhardt)_ diff --git a/base/ops/cdiv/benchmark/c/Makefile b/base/ops/cdiv/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/ops/cdiv/benchmark/c/Makefile +++ b/base/ops/cdiv/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/ops/cneg/benchmark/c/Makefile b/base/ops/cneg/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/ops/cneg/benchmark/c/Makefile +++ b/base/ops/cneg/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/ops/cnegf/benchmark/c/Makefile b/base/ops/cnegf/benchmark/c/Makefile index 3cbfe3fef..1f0fc61cd 100644 --- a/base/ops/cnegf/benchmark/c/Makefile +++ b/base/ops/cnegf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/acos/benchmark/c/Makefile b/base/special/acos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/acos/benchmark/c/Makefile +++ b/base/special/acos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/acosh/benchmark/c/Makefile b/base/special/acosh/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/acosh/benchmark/c/Makefile +++ b/base/special/acosh/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/acoth/benchmark/c/Makefile b/base/special/acoth/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/acoth/benchmark/c/Makefile +++ b/base/special/acoth/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/acovercos/benchmark/c/Makefile b/base/special/acovercos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/acovercos/benchmark/c/Makefile +++ b/base/special/acovercos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/acoversin/benchmark/c/Makefile b/base/special/acoversin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/acoversin/benchmark/c/Makefile +++ b/base/special/acoversin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ahavercos/benchmark/c/Makefile b/base/special/ahavercos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/ahavercos/benchmark/c/Makefile +++ b/base/special/ahavercos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ahaversin/benchmark/c/Makefile b/base/special/ahaversin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/ahaversin/benchmark/c/Makefile +++ b/base/special/ahaversin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/asech/benchmark/c/Makefile b/base/special/asech/benchmark/c/Makefile index f69e9da2b..ad9fedcd4 100644 --- a/base/special/asech/benchmark/c/Makefile +++ b/base/special/asech/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/asin/benchmark/c/Makefile b/base/special/asin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/asin/benchmark/c/Makefile +++ b/base/special/asin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/asinh/benchmark/c/Makefile b/base/special/asinh/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/asinh/benchmark/c/Makefile +++ b/base/special/asinh/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/atan/benchmark/c/Makefile b/base/special/atan/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/atan/benchmark/c/Makefile +++ b/base/special/atan/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/atan2/benchmark/c/Makefile b/base/special/atan2/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/atan2/benchmark/c/Makefile +++ b/base/special/atan2/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/atanh/benchmark/c/Makefile b/base/special/atanh/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/atanh/benchmark/c/Makefile +++ b/base/special/atanh/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/avercos/benchmark/c/Makefile b/base/special/avercos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/avercos/benchmark/c/Makefile +++ b/base/special/avercos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/aversin/benchmark/c/Makefile b/base/special/aversin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/aversin/benchmark/c/Makefile +++ b/base/special/aversin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/besselj0/benchmark/c/Makefile b/base/special/besselj0/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/besselj0/benchmark/c/Makefile +++ b/base/special/besselj0/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/besselj1/benchmark/c/Makefile b/base/special/besselj1/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/besselj1/benchmark/c/Makefile +++ b/base/special/besselj1/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/bessely0/benchmark/c/Makefile b/base/special/bessely0/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/bessely0/benchmark/c/Makefile +++ b/base/special/bessely0/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/bessely1/benchmark/c/Makefile b/base/special/bessely1/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/bessely1/benchmark/c/Makefile +++ b/base/special/bessely1/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/binet/benchmark/c/Makefile b/base/special/binet/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/binet/benchmark/c/Makefile +++ b/base/special/binet/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cbrt/benchmark/c/Makefile b/base/special/cbrt/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cbrt/benchmark/c/Makefile +++ b/base/special/cbrt/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cbrtf/benchmark/c/Makefile b/base/special/cbrtf/benchmark/c/Makefile index 0577f1d40..9e90af003 100644 --- a/base/special/cbrtf/benchmark/c/Makefile +++ b/base/special/cbrtf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ccis/benchmark/c/Makefile b/base/special/ccis/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/ccis/benchmark/c/Makefile +++ b/base/special/ccis/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ceil/benchmark/c/Makefile b/base/special/ceil/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/ceil/benchmark/c/Makefile +++ b/base/special/ceil/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ceilf/benchmark/c/Makefile b/base/special/ceilf/benchmark/c/Makefile index 0577f1d40..9e90af003 100644 --- a/base/special/ceilf/benchmark/c/Makefile +++ b/base/special/ceilf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cexp/benchmark/c/Makefile b/base/special/cexp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cexp/benchmark/c/Makefile +++ b/base/special/cexp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cfloor/benchmark/c/Makefile b/base/special/cfloor/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cfloor/benchmark/c/Makefile +++ b/base/special/cfloor/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cfloorn/benchmark/c/Makefile b/base/special/cfloorn/benchmark/c/Makefile index 3cbfe3fef..1f0fc61cd 100644 --- a/base/special/cfloorn/benchmark/c/Makefile +++ b/base/special/cfloorn/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cinv/benchmark/c/Makefile b/base/special/cinv/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cinv/benchmark/c/Makefile +++ b/base/special/cinv/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cos/benchmark/c/Makefile b/base/special/cos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cos/benchmark/c/Makefile +++ b/base/special/cos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cosh/benchmark/c/Makefile b/base/special/cosh/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cosh/benchmark/c/Makefile +++ b/base/special/cosh/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/covercos/benchmark/c/Makefile b/base/special/covercos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/covercos/benchmark/c/Makefile +++ b/base/special/covercos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/coversin/benchmark/c/Makefile b/base/special/coversin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/coversin/benchmark/c/Makefile +++ b/base/special/coversin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cphase/benchmark/c/Makefile b/base/special/cphase/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cphase/benchmark/c/Makefile +++ b/base/special/cphase/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/cround/benchmark/c/Makefile b/base/special/cround/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/cround/benchmark/c/Makefile +++ b/base/special/cround/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/croundf/benchmark/c/Makefile b/base/special/croundf/benchmark/c/Makefile index f69e9da2b..ad9fedcd4 100644 --- a/base/special/croundf/benchmark/c/Makefile +++ b/base/special/croundf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/dirac-delta/benchmark/c/Makefile b/base/special/dirac-delta/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/dirac-delta/benchmark/c/Makefile +++ b/base/special/dirac-delta/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/erf/benchmark/c/Makefile b/base/special/erf/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/erf/benchmark/c/Makefile +++ b/base/special/erf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/erfc/benchmark/c/Makefile b/base/special/erfc/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/erfc/benchmark/c/Makefile +++ b/base/special/erfc/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/exp/benchmark/c/Makefile b/base/special/exp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/exp/benchmark/c/Makefile +++ b/base/special/exp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/exp2/benchmark/c/Makefile b/base/special/exp2/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/exp2/benchmark/c/Makefile +++ b/base/special/exp2/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/expit/benchmark/c/Makefile b/base/special/expit/benchmark/c/Makefile index fbec202ab..3f935c4be 100644 --- a/base/special/expit/benchmark/c/Makefile +++ b/base/special/expit/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/expm1/benchmark/c/Makefile b/base/special/expm1/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/expm1/benchmark/c/Makefile +++ b/base/special/expm1/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/factorialln/benchmark/c/Makefile b/base/special/factorialln/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/factorialln/benchmark/c/Makefile +++ b/base/special/factorialln/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/fibonacci-index/benchmark/c/Makefile b/base/special/fibonacci-index/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/fibonacci-index/benchmark/c/Makefile +++ b/base/special/fibonacci-index/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/fibonacci/benchmark/c/Makefile b/base/special/fibonacci/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/fibonacci/benchmark/c/Makefile +++ b/base/special/fibonacci/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/frexp/benchmark/c/Makefile b/base/special/frexp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/frexp/benchmark/c/Makefile +++ b/base/special/frexp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/gamma/benchmark/c/Makefile b/base/special/gamma/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/gamma/benchmark/c/Makefile +++ b/base/special/gamma/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/gammaln/benchmark/c/Makefile b/base/special/gammaln/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/gammaln/benchmark/c/Makefile +++ b/base/special/gammaln/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/hacovercos/benchmark/c/Makefile b/base/special/hacovercos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/hacovercos/benchmark/c/Makefile +++ b/base/special/hacovercos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/hacoversin/benchmark/c/Makefile b/base/special/hacoversin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/hacoversin/benchmark/c/Makefile +++ b/base/special/hacoversin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/havercos/benchmark/c/Makefile b/base/special/havercos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/havercos/benchmark/c/Makefile +++ b/base/special/havercos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/haversin/benchmark/c/Makefile b/base/special/haversin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/haversin/benchmark/c/Makefile +++ b/base/special/haversin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/heaviside/benchmark/c/Makefile b/base/special/heaviside/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/heaviside/benchmark/c/Makefile +++ b/base/special/heaviside/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ldexp/benchmark/c/Makefile b/base/special/ldexp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/ldexp/benchmark/c/Makefile +++ b/base/special/ldexp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ln/benchmark/c/Makefile b/base/special/ln/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/ln/benchmark/c/Makefile +++ b/base/special/ln/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/log/benchmark/c/Makefile b/base/special/log/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/log/benchmark/c/Makefile +++ b/base/special/log/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/log10/benchmark/c/Makefile b/base/special/log10/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/log10/benchmark/c/Makefile +++ b/base/special/log10/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/log1mexp/benchmark/c/Makefile b/base/special/log1mexp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/log1mexp/benchmark/c/Makefile +++ b/base/special/log1mexp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/log1p/benchmark/c/Makefile b/base/special/log1p/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/log1p/benchmark/c/Makefile +++ b/base/special/log1p/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/log1pexp/benchmark/c/Makefile b/base/special/log1pexp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/log1pexp/benchmark/c/Makefile +++ b/base/special/log1pexp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/log1pmx/benchmark/c/Makefile b/base/special/log1pmx/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/log1pmx/benchmark/c/Makefile +++ b/base/special/log1pmx/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/log2/benchmark/c/Makefile b/base/special/log2/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/log2/benchmark/c/Makefile +++ b/base/special/log2/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/logaddexp/benchmark/c/Makefile b/base/special/logaddexp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/logaddexp/benchmark/c/Makefile +++ b/base/special/logaddexp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/logit/benchmark/c/Makefile b/base/special/logit/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/logit/benchmark/c/Makefile +++ b/base/special/logit/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/lucas/benchmark/c/Makefile b/base/special/lucas/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/lucas/benchmark/c/Makefile +++ b/base/special/lucas/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/max/benchmark/c/Makefile b/base/special/max/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/max/benchmark/c/Makefile +++ b/base/special/max/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/maxabs/benchmark/c/Makefile b/base/special/maxabs/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/maxabs/benchmark/c/Makefile +++ b/base/special/maxabs/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/maxabsn/benchmark/c/Makefile b/base/special/maxabsn/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/maxabsn/benchmark/c/Makefile +++ b/base/special/maxabsn/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/maxn/benchmark/c/Makefile b/base/special/maxn/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/maxn/benchmark/c/Makefile +++ b/base/special/maxn/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/min/benchmark/c/Makefile b/base/special/min/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/min/benchmark/c/Makefile +++ b/base/special/min/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/minabs/benchmark/c/Makefile b/base/special/minabs/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/minabs/benchmark/c/Makefile +++ b/base/special/minabs/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/minabsn/benchmark/c/Makefile b/base/special/minabsn/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/minabsn/benchmark/c/Makefile +++ b/base/special/minabsn/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/minn/benchmark/c/Makefile b/base/special/minn/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/minn/benchmark/c/Makefile +++ b/base/special/minn/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/modf/benchmark/c/Makefile b/base/special/modf/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/modf/benchmark/c/Makefile +++ b/base/special/modf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/negafibonacci/benchmark/c/Makefile b/base/special/negafibonacci/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/negafibonacci/benchmark/c/Makefile +++ b/base/special/negafibonacci/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/negalucas/benchmark/c/Makefile b/base/special/negalucas/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/negalucas/benchmark/c/Makefile +++ b/base/special/negalucas/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/pow/benchmark/c/Makefile b/base/special/pow/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/pow/benchmark/c/Makefile +++ b/base/special/pow/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/rad2deg/benchmark/c/Makefile b/base/special/rad2deg/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/rad2deg/benchmark/c/Makefile +++ b/base/special/rad2deg/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/ramp/benchmark/c/Makefile b/base/special/ramp/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/ramp/benchmark/c/Makefile +++ b/base/special/ramp/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/rampf/benchmark/c/Makefile b/base/special/rampf/benchmark/c/Makefile index 0577f1d40..9e90af003 100644 --- a/base/special/rampf/benchmark/c/Makefile +++ b/base/special/rampf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/rcbrt/benchmark/c/Makefile b/base/special/rcbrt/benchmark/c/Makefile index d6b58c7f5..24d41d693 100644 --- a/base/special/rcbrt/benchmark/c/Makefile +++ b/base/special/rcbrt/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/round/benchmark/c/Makefile b/base/special/round/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/round/benchmark/c/Makefile +++ b/base/special/round/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/rsqrt/benchmark/c/Makefile b/base/special/rsqrt/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/rsqrt/benchmark/c/Makefile +++ b/base/special/rsqrt/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/rsqrtf/benchmark/c/Makefile b/base/special/rsqrtf/benchmark/c/Makefile index 0577f1d40..9e90af003 100644 --- a/base/special/rsqrtf/benchmark/c/Makefile +++ b/base/special/rsqrtf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/signum/benchmark/c/Makefile b/base/special/signum/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/signum/benchmark/c/Makefile +++ b/base/special/signum/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/signumf/benchmark/c/Makefile b/base/special/signumf/benchmark/c/Makefile index 0577f1d40..9e90af003 100644 --- a/base/special/signumf/benchmark/c/Makefile +++ b/base/special/signumf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/sin/benchmark/c/Makefile b/base/special/sin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/sin/benchmark/c/Makefile +++ b/base/special/sin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/sincos/benchmark/c/Makefile b/base/special/sincos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/sincos/benchmark/c/Makefile +++ b/base/special/sincos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/sincospi/benchmark/c/Makefile b/base/special/sincospi/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/sincospi/benchmark/c/Makefile +++ b/base/special/sincospi/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/sinh/benchmark/c/Makefile b/base/special/sinh/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/sinh/benchmark/c/Makefile +++ b/base/special/sinh/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/sqrt/benchmark/c/Makefile b/base/special/sqrt/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/sqrt/benchmark/c/Makefile +++ b/base/special/sqrt/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/sqrtf/benchmark/c/Makefile b/base/special/sqrtf/benchmark/c/Makefile index 0577f1d40..9e90af003 100644 --- a/base/special/sqrtf/benchmark/c/Makefile +++ b/base/special/sqrtf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/tan/benchmark/c/Makefile b/base/special/tan/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/tan/benchmark/c/Makefile +++ b/base/special/tan/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/tanh/benchmark/c/Makefile b/base/special/tanh/benchmark/c/Makefile index 0577f1d40..e4542b1e6 100644 --- a/base/special/tanh/benchmark/c/Makefile +++ b/base/special/tanh/benchmark/c/Makefile @@ -1,7 +1,7 @@ #/ # @license Apache-2.0 # -# Copyright (c) 2020 The Stdlib Authors. +# Copyright (c) 2018 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/trunc/benchmark/c/Makefile b/base/special/trunc/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/trunc/benchmark/c/Makefile +++ b/base/special/trunc/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/truncf/benchmark/c/Makefile b/base/special/truncf/benchmark/c/Makefile index 0577f1d40..9e90af003 100644 --- a/base/special/truncf/benchmark/c/Makefile +++ b/base/special/truncf/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/vercos/benchmark/c/Makefile b/base/special/vercos/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/vercos/benchmark/c/Makefile +++ b/base/special/vercos/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/versin/benchmark/c/Makefile b/base/special/versin/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/versin/benchmark/c/Makefile +++ b/base/special/versin/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out diff --git a/base/special/wrap/benchmark/c/Makefile b/base/special/wrap/benchmark/c/Makefile index 2aa4582a4..e4542b1e6 100644 --- a/base/special/wrap/benchmark/c/Makefile +++ b/base/special/wrap/benchmark/c/Makefile @@ -16,15 +16,14 @@ # limitations under the License. #/ + # VARIABLES # ifndef VERBOSE QUIET := @ -else - QUIET := endif -# Determine the OS ([1][1], [2][2]). +# Determine the OS: # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 @@ -37,10 +36,6 @@ ifneq (, $(findstring MSYS,$(OS))) else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT -else -ifneq (, $(findstring Windows_NT,$(OS))) - OS := WINNT -endif endif endif endif @@ -59,7 +54,7 @@ CFLAGS ?= \ -Wall \ -pedantic -# Determine whether to generate position independent code ([1][1], [2][2]). +# Determine whether to generate [position independent code][1]: # # [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options # [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option @@ -69,77 +64,43 @@ else fPIC ?= -fPIC endif -# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`): -INCLUDE ?= - -# List of source files: -SOURCE_FILES ?= - -# List of libraries (e.g., `-lopenblas -lpthread`): -LIBRARIES ?= - -# List of library paths (e.g., `-L /foo/bar -L /beep/boop`): -LIBPATH ?= - # List of C targets: c_targets := benchmark.out -# RULES # +# TARGETS # -#/ -# Compiles source files. +# Default target. # -# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`) -# @param {string} [CFLAGS] - C compiler options -# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`) -# @param {string} [SOURCE_FILES] - list of source files -# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`) -# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`) -# -# @example -# make -# -# @example -# make all -#/ +# This target is the default target. + all: $(c_targets) .PHONY: all -#/ -# Compiles C source files. + +# Compile C source. # -# @private -# @param {string} CC - C compiler (e.g., `gcc`) -# @param {string} CFLAGS - C compiler options -# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`) -# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`) -# @param {string} SOURCE_FILES - list of source files -# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`) -# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`) -#/ +# This target compiles C source files. + $(c_targets): %.out: %.c - $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES) + $(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm -#/ -# Runs compiled benchmarks. + +# Run a benchmark. # -# @example -# make run -#/ +# This target runs a benchmark. + run: $(c_targets) $(QUIET) ./$< .PHONY: run -#/ -# Removes generated files. + +# Perform clean-up. # -# @example -# make clean -#/ +# This target removes generated files. + clean: $(QUIET) -rm -f *.o *.out