Skip to content

Commit 04a838f

Browse files
committed
chore: use correct Makefile
1 parent 1dd3fdc commit 04a838f

File tree

2 files changed

+12
-52
lines changed
  • lib/node_modules/@stdlib/math/base/special

2 files changed

+12
-52
lines changed

lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/Makefile

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,18 @@ else
6969
fPIC ?= -fPIC
7070
endif
7171

72-
# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
73-
INCLUDE ?=
74-
75-
# List of source files:
76-
SOURCE_FILES ?=
77-
78-
# List of libraries (e.g., `-lopenblas -lpthread`):
79-
LIBRARIES ?=
80-
81-
# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
82-
LIBPATH ?=
83-
8472
# List of C targets:
8573
c_targets := benchmark.out
8674

8775

8876
# RULES #
8977

9078
#/
91-
# Compiles source files.
79+
# Compiles C source files.
9280
#
9381
# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
9482
# @param {string} [CFLAGS] - C compiler options
95-
# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
96-
# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
97-
# @param {string} [SOURCE_FILES] - list of source files
98-
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
99-
# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
83+
# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code (e.g., `-fPIC`)
10084
#
10185
# @example
10286
# make
@@ -112,16 +96,12 @@ all: $(c_targets)
11296
# Compiles C source files.
11397
#
11498
# @private
115-
# @param {string} CC - C compiler (e.g., `gcc`)
116-
# @param {string} CFLAGS - C compiler options
117-
# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
118-
# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
119-
# @param {string} SOURCE_FILES - list of source files
120-
# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
121-
# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
99+
# @param {string} CC - C compiler
100+
# @param {string} CFLAGS - C compiler flags
101+
# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
122102
#/
123103
$(c_targets): %.out: %.c
124-
$(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
104+
$(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm
125105

126106
#/
127107
# Runs compiled benchmarks.

lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/Makefile

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,18 @@ else
6969
fPIC ?= -fPIC
7070
endif
7171

72-
# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
73-
INCLUDE ?=
74-
75-
# List of source files:
76-
SOURCE_FILES ?=
77-
78-
# List of libraries (e.g., `-lopenblas -lpthread`):
79-
LIBRARIES ?=
80-
81-
# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
82-
LIBPATH ?=
83-
8472
# List of C targets:
8573
c_targets := benchmark.out
8674

8775

8876
# RULES #
8977

9078
#/
91-
# Compiles source files.
79+
# Compiles C source files.
9280
#
9381
# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
9482
# @param {string} [CFLAGS] - C compiler options
95-
# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
96-
# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
97-
# @param {string} [SOURCE_FILES] - list of source files
98-
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
99-
# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
83+
# @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code (e.g., `-fPIC`)
10084
#
10185
# @example
10286
# make
@@ -112,16 +96,12 @@ all: $(c_targets)
11296
# Compiles C source files.
11397
#
11498
# @private
115-
# @param {string} CC - C compiler (e.g., `gcc`)
116-
# @param {string} CFLAGS - C compiler options
117-
# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
118-
# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
119-
# @param {string} SOURCE_FILES - list of source files
120-
# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
121-
# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
99+
# @param {string} CC - C compiler
100+
# @param {string} CFLAGS - C compiler flags
101+
# @param {(string|void)} fPIC - compiler flag indicating whether to generate position independent code
122102
#/
123103
$(c_targets): %.out: %.c
124-
$(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
104+
$(QUIET) $(CC) $(CFLAGS) $(fPIC) -o $@ $< -lm
125105

126106
#/
127107
# Runs compiled benchmarks.

0 commit comments

Comments
 (0)