Skip to content
Snippets Groups Projects
Commit bd68a69a authored by floreal.risso's avatar floreal.risso
Browse files

auto configure nvml

parent 856c5a6e
Branches
No related tags found
2 merge requests!9fix sensor example (doc),!5Add dev name to labels
......@@ -191,8 +191,9 @@ fi
try gen_sensors_h "$sensors" "$nb_sensors" >"$target_hdr"
try gen_sensors_mk "$sensors" >"$target_mk"
try printf "LDFLAGS += %s\n" "$NVML_LDFLAGS" >>"$target_mk"
try printf "IFLAGS += %s\n" "$NVML_IFLAGS" >>"$target_mk"
try printf "NVML_LDFLAGS = %s\n" "$NVML_LDFLAGS" >>"$target_mk"
try printf "NVML_IFLAGS = %s\n" "$NVML_IFLAGS" >>"$target_mk"
printf -- 'Run `make` to build `bin/mojitos`.\n' >&2
printf -- 'The resulting binary will have the %d following sensors:\n' "$nb_sensors" >&2
......
......@@ -9,8 +9,8 @@ TESTS_DIR = tests
BIN = mojitos
CAPTOR_OBJ =
IFLAGS =
LDFLAGS =
NVML_LDFLAGS =
NVML_IFLAGS =
include ./sensors.mk
......@@ -19,9 +19,9 @@ OBJ = \
$(OBJ_DIR)/util.o
CC = gcc
CPPFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -Wno-unused-function -I./lib $(IFLAGS)
CPPFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -Wno-unused-function -I./lib $(NVML_IFLAGS)
CFLAGS = $(CPPFLAGS) -O3 -Werror
LDFLAGS +=
LDFLAGS = $(NVML_LDFLAGS)
ASTYLE = astyle --style=kr -xf -s4 -k3 -n -Z -Q
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment