35 lines
634 B
Makefile
35 lines
634 B
Makefile
.PHONY : clean debug
|
|
|
|
OBJS = evga-icx.o evga-card.o icx3.o board-sensors.o zen3-rapl.o
|
|
LDLIBS = -li2c -lm
|
|
CFLAGS = -MD -I/usr/local/cuda/targets/x86_64-linux/include/
|
|
|
|
ifdef USE_NVML
|
|
LDLIBS += -lnvidia-ml -L/usr/local/cuda/targets/x86_64-linux/lib/stubs/
|
|
CFLAGS += -DUSE_NVML
|
|
OBJS += nvidia-sensors.o
|
|
endif
|
|
|
|
ifdef USE_DCGM
|
|
LDLIBS += -ldcgm
|
|
CFLAGS += -DUSE_DCGM -I/usr/include/datacenter-gpu-manager-4/
|
|
OBJS += nvidia-dcgm.o
|
|
endif
|
|
|
|
ifdef USE_LIBPCI
|
|
LDLIBS += -lpci
|
|
CFLAGS += -DUSE_LIBPCI
|
|
OBJS += gddr6.o
|
|
endif
|
|
|
|
evga-icx : $(OBJS)
|
|
|
|
debug : CFLAGS += -g -Og
|
|
debug : evga-icx
|
|
|
|
clean :
|
|
rm evga-icx
|
|
rm *.o
|
|
rm *.d
|
|
|
|
-include $(OBJS:.o=.d) |