File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
tools/snippets/benchmark/c/native Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4646 fPIC ?= -fPIC
4747endif
4848
49- # List of includes:
49+ # List of includes (e.g., `-I /foo/bar -I /beep/boop/include`) :
5050INCLUDE ?=
5151
5252# List of source files:
5353SOURCE_FILES ?=
5454
55+ # List of libraries (e.g., `-lopenblas -lpthread`):
56+ LIBRARIES ?=
57+
58+ # List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
59+ LIBPATH ?=
60+
5561# List of C targets:
5662c_targets := TODO.out
5763
@@ -72,7 +78,7 @@ all: $(c_targets)
7278# This target compiles C source files.
7379
7480$(c_targets ) : % .out: % .c
75- $(QUIET ) $(CC ) $(CFLAGS ) $(fPIC ) $(INCLUDE ) -o $@ $(SOURCE_FILES ) $< -lm
81+ $(QUIET ) $(CC ) $(CFLAGS ) $(fPIC ) $(INCLUDE ) -o $@ $(SOURCE_FILES ) $< $( LIBPATH ) -lm $( LIBRARIES )
7682
7783
7884# Run a benchmark.
You can’t perform that action at this time.
0 commit comments