# $Id$
# Makefile for auth/munge plugin

AUTOMAKE_OPTIONS = foreign

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

INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src/common

# Add your plugin to this line, following the naming conventions.
if WITH_MUNGE
MUNGE = auth_munge.la
endif

pkglib_LTLIBRARIES = $(MUNGE)

# Munge authentication plugin
auth_munge_la_SOURCES = auth_munge.c
auth_munge_la_LDFLAGS = $(SO_LDFLAGS) $(PLUGIN_FLAGS)

if HAVE_AIX
auth_munge_la_LIBADD =  -lmunge \
			$(top_builddir)/src/common/libcommon.la
else
auth_munge_la_LIBADD =   -lmunge 
endif
