# Makefile for gpu/rsmi plugin

AUTOMAKE_OPTIONS = foreign

PLUGIN_FLAGS = -module -avoid-version --export-dynamic

AM_CPPFLAGS = -DSLURM_PLUGIN_DEBUG -I$(top_srcdir) $(RSMI_CPPFLAGS)

RSMI_SOURCES = gpu_rsmi.c

pkglib_LTLIBRARIES = gpu_rsmi.la
gpu_rsmi_la_SOURCES = $(RSMI_SOURCES)
gpu_rsmi_la_LDFLAGS = $(NUMA_LIBS) $(PLUGIN_FLAGS)
gpu_rsmi_la_LIBADD = ../common/libgpu_common.la
