# Makefile for auth/slurm plugin

AUTOMAKE_OPTIONS = foreign

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

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

pkglib_LTLIBRARIES = auth_slurm.la

# Slurm authentication plugin.
auth_slurm_la_SOURCES = \
	auth_slurm.c \
	auth_slurm.h \
	cred_slurm.c \
	external.c \
	internal.c \
	net_aliases.c \
	sack.c \
	sbcast.c \
	util.c
auth_slurm_la_LDFLAGS = $(PLUGIN_FLAGS) $(JWT_LDFLAGS)
auth_slurm_la_LIBADD = \
	$(top_builddir)/src/plugins/auth/common/libauth_common.la \
	$(top_builddir)/src/plugins/cred/common/libcred_common.la \
	$(JWT_LIBS)

force:
$(auth_slurm_la_LIBADD) : force
	@cd `dirname $@` && $(MAKE) `basename $@`
