1
1
# /
2
2
# @license Apache-2.0
3
3
#
4
- # Copyright (c) 2024 The Stdlib Authors.
4
+ # Copyright (c) 2025 The Stdlib Authors.
5
5
#
6
6
# Licensed under the Apache License, Version 2.0 (the "License");
7
7
# you may not use this file except in compliance with the License.
@@ -88,15 +88,15 @@ c_targets := benchmark.out
88
88
# RULES #
89
89
90
90
# /
91
- # Compiles source files.
91
+ # Compiles C source files.
92
92
#
93
- # @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
94
- # @param {string} [CFLAGS] - C compiler options
95
- # @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
96
- # @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
97
- # @param {string} [SOURCE_FILES] - list of source files
93
+ # @param {string} SOURCE_FILES - list of C source files
94
+ # @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
95
+ # @param {string} [LIBRARIES] - list of libraries (e.g., `-lpthread -lblas`)
98
96
# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
99
- # @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
97
+ # @param {string} [C_COMPILER] - C compiler
98
+ # @param {string} [CFLAGS] - C compiler flags
99
+ # @param {(string|void)} [fPIC] - compiler flag indicating whether to generate position independent code
100
100
#
101
101
# @example
102
102
# make
@@ -112,13 +112,13 @@ all: $(c_targets)
112
112
# Compiles C source files.
113
113
#
114
114
# @private
115
- # @param {string} CC - C compiler (e.g., `gcc`)
116
- # @param {string} CFLAGS - C compiler options
117
- # @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC `)
118
- # @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
119
- # @param {string} SOURCE_FILES - list of source files
120
- # @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
121
- # @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
115
+ # @param {string} SOURCE_FILES - list of C source files
116
+ # @param {( string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
117
+ # @param {(string|void)} LIBRARIES - list of libraries (e.g., `-lpthread -lblas `)
118
+ # @param {( string|void)} LIBPATH - list of library paths (e.g., `-L /foo/bar -L /beep/boop `)
119
+ # @param {string} CC - C compiler
120
+ # @param {string} CFLAGS - C compiler flags
121
+ # @param {( string|void)} fPIC - compiler flag indicating whether to generate position independent code
122
122
# /
123
123
$(c_targets ) : % .out: % .c
124
124
$(QUIET ) $(CC ) $(CFLAGS ) $(fPIC ) $(INCLUDE ) -o $@ $(SOURCE_FILES ) $< $(LIBPATH ) -lm $(LIBRARIES )
0 commit comments