Makefile.am revision 3c02938a2643fdc8ff83d81400334172f0743823
SUBDIRS = po
topdir=.
# Some old versions of automake don't define builddir
builddir ?= .
sssdlibexecdir = $(libexecdir)/sssd
sssdlibdir = $(libdir)/sssd
ldblibdir = $(libdir)/ldb
if BUILD_KRB5_LOCATOR_PLUGIN
krb5plugindir = @krb5pluginpath@
endif
sssdconfdir = $(sysconfdir)/sssd
dbusintrospectdir = $(datarootdir)/sssd/introspect
dbuspolicydir = $(sysconfdir)/dbus-1/system.d
localedir = @localedir@
dbpath = @dbpath@
pluginpath = @pluginpath@
pidpath = @pidpath@
pipepath = @pipepath@
initdir = @initdir@
shadow_utils_path = @shadow_utils_path@
AM_CFLAGS =
if WANT_AUX_INFO
AM_CFLAGS += -aux-info $@.X
endif
if HAVE_GCC
AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
-Wcast-qual -Wcast-align -Wwrite-strings
endif
REPLACE_CFLAGS = \
-I $(srcdir)/../replace
REPLACE_LIBS = \
-L$(builddir)/../replace \
-lreplace
ACLOCAL_AMFLAGS = -I m4 -I .
sbin_PROGRAMS = \
sssd \
sss_useradd \
sss_userdel \
sss_groupadd \
sss_groupdel \
sss_usermod \
sss_groupmod
sssdlibexec_PROGRAMS = \
sssd_nss \
sssd_pam \
sssd_dp \
sssd_be \
krb5_child \
$(sssd_pk) \
$(sssd_info)
dist_sssdlibexec_SCRIPTS = \
if HAVE_CHECK
non_interactive_check_based_tests = \
sysdb-tests \
strtonum-tests \
resolv-tests \
krb5-utils-tests
endif
check_PROGRAMS = \
stress-tests \
$(non_interactive_check_based_tests)
TESTS = \
$(non_interactive_check_based_tests)
sssdlib_LTLIBRARIES = \
ldblib_LTLIBRARIES = \
if BUILD_KRB5_LOCATOR_PLUGIN
krb5plugin_LTLIBRARIES = \
endif
noinst_LTLIBRARIES = \
libsss_crypt_la_SOURCES = \
libsss_crypt_la_CPPFLAGS = \
$(NSS_CFLAGS)
if BUILD_PYTHON_BINDINGS
pyexec_LTLIBRARIES = \
endif
###############################
# Global compilation settings #
###############################
COLLECTION_CFLAGS = \
-I$(srcdir)/../common/collection \
-I$(srcdir)/../common/trace
COLLECTION_LIBS = \
-L$(builddir)/../common/collection/.libs/ \
-lcollection
INI_CFG_CFLAGS = \
-I$(srcdir)/../common/ini
INI_CFG_LIBS = \
-L$(builddir)/../common/ini/.libs/ \
-lini_config
DHASH_CFLAGS = \
-I$(srcdir)/../common/dhash
DHASH_LIBS = \
-L$(builddir)/../common/dhash/.libs/ \
-ldhash
AM_CPPFLAGS = -Wall \
-Iinclude \
-I.. \
-I$(srcdir)/include \
-Iinclude \
-I. \
$(POPT_CFLAGS) \
$(TALLOC_CFLAGS) \
$(TDB_CFLAGS) \
$(TEVENT_CFLAGS) \
$(LDB_CFLAGS) \
$(DBUS_CFLAGS) \
$(PCRE_CFLAGS) \
$(REPLACE_CFLAGS) \
$(COLLECTION_CFLAGS) \
$(INI_CFG_CFLAGS) \
$(DHASH_CFLAGS) \
-DLIBDIR=\"$(libdir)\" \
-DVARDIR=\"$(localstatedir)\" \
-DSHLIBEXT=\"$(SHLIBEXT)\" \
-DSSSD_LIBEXEC_PATH=\"$(sssdlibexecdir)\" \
-DSHADOW_UTILS_PATH=\"$(shadow_utils_path)\" \
-DSSSD_INTROSPECT_PATH=\"$(dbusinstropectdir)\" \
-DSSSD_CONF_DIR=\"$(sssdconfdir)\" \
-DSSS_NSS_SOCKET_NAME=\"$(pipepath)/nss\" \
-DSSS_PAM_SOCKET_NAME=\"$(pipepath)/pam\" \
-DSSS_PAM_PRIV_SOCKET_NAME=\"$(pipepath)/private/pam\" \
-DUSE_MMAP=1 \
-DLOCALEDIR=\"$(localedir)\"
EXTRA_DIST = build/config.rpath
SSSD_DEBUG_OBJ = \
SSSD_UTIL_OBJ = \
$(SSSD_DEBUG_OBJ)
SSSD_RESPONDER_OBJ = \
SSSD_TOOLS_OBJ = \
SSSD_RESOLV_OBJ = \
if BUILD_ARES_PARSE_SRV
SSSD_RESOLV_OBJ += resolv/ares/ares_parse_srv_reply.c
endif
if BUILD_ARES_PARSE_TXT
SSSD_RESOLV_OBJ += resolv/ares/ares_parse_txt_reply.c
endif
SSSD_LIBS = \
$(TALLOC_LIBS) \
$(TDB_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(LDB_LIBS) \
$(DBUS_LIBS) \
$(PCRE_LIBS) \
$(INI_CFG_LIBS) \
$(COLLECTION_LIBS) \
$(DHASH_LIBS) \
$(REPLACE_LIBS) \
$(NSS_LIBS)
PYTHON_BINDINGS_LIBS = \
$(TALLOC_LIBS) \
$(TDB_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(LDB_LIBS) \
$(DBUS_LIBS) \
$(REPLACE_LIBS) \
$(PCRE_LIBS) \
$(NSS_LIBS) \
dist_noinst_HEADERS = \
config.h \
####################
# Program Binaries #
####################
sssd_SOURCES = \
$(SSSD_UTIL_OBJ)
sssd_LDADD = \
$(SSSD_LIBS)
sssd_nss_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_RESPONDER_OBJ)
sssd_nss_LDADD = \
$(SSSD_LIBS)
sssd_pam_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_RESPONDER_OBJ)
sssd_pam_LDADD = \
$(SSSD_LIBS)
sssd_dp_SOURCES = \
$(SSSD_UTIL_OBJ)
sssd_dp_LDADD = $(SSSD_LIBS)
sssd_be_SOURCES = \
$(SSSD_UTIL_OBJ)
sssd_be_LDADD = $(SSSD_LIBS)
sssd_be_LDFLAGS = \
-Wl,--version-script,$(srcdir)/providers/sssd_be.exports \
-export-dynamic
dist_noinst_DATA = \
m4
######################
# Command-line Tools #
######################
sss_useradd_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_TOOLS_OBJ)
sss_useradd_LDADD = \
$(SSSD_LIBS)
sss_userdel_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_TOOLS_OBJ)
sss_userdel_LDADD = \
$(SSSD_LIBS)
sss_groupadd_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_TOOLS_OBJ)
sss_groupadd_LDADD = \
$(SSSD_LIBS)
sss_groupdel_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_TOOLS_OBJ)
sss_groupdel_LDADD = \
$(SSSD_LIBS)
sss_usermod_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_TOOLS_OBJ)
sss_usermod_LDADD = \
$(SSSD_LIBS)
sss_groupmod_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_TOOLS_OBJ)
sss_groupmod_LDADD = \
$(SSSD_LIBS)
#################
# Feature Tests #
#################
if HAVE_CHECK
sysdb_tests_SOURCES = \
$(SSSD_UTIL_OBJ)
sysdb_tests_CFLAGS = \
$(CHECK_CFLAGS)
sysdb_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS)
strtonum_tests_SOURCES = \
strtonum_tests_CFLAGS = \
$(CHECK_CFLAGS)
strtonum_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS)
krb5_utils_tests_SOURCES = \
$(SSSD_DEBUG_OBJ) \
krb5_utils_tests_CFLAGS = \
$(CHECK_CFLAGS)
krb5_utils_tests_LDADD = \
$(CHECK_LIBS) \
$(TALLOC_LIBS)
endif
stress_tests_SOURCES = \
$(SSSD_UTIL_OBJ)
stress_tests_LDADD = \
$(SSSD_LIBS)
if HAVE_CHECK
resolv_tests_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_RESOLV_OBJ)
resolv_tests_CFLAGS = \
$(CHECK_CFLAGS)
resolv_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
$(CARES_LIBS)
endif
####################
# Plugin Libraries #
####################
libsss_ldap_la_SOURCES = \
libsss_ldap_la_CFLAGS = \
$(AM_CFLAGS) \
$(LDAP_CFLAGS)
libsss_ldap_la_LIBADD = \
$(OPENLDAP_LIBS)
libsss_ldap_la_LDFLAGS = \
-version-info 1:0:0 \
-module
libsss_proxy_la_SOURCES = \
libsss_proxy_la_CFLAGS = \
$(AM_CFLAGS)
libsss_proxy_la_LIBADD = \
$(PAM_LIBS)
libsss_proxy_la_LDFLAGS = \
-version-info 1:0:0 \
-module
libsss_krb5_la_SOURCES = \
libsss_krb5_la_CFLAGS = \
$(AM_CFLAGS) \
$(KRB5_CFLAGS)
libsss_krb5_la_LIBADD = \
$(KRB5_LIBS)
libsss_krb5_la_LDFLAGS = \
-version-info 1:0:0 \
-module
krb5_child_SOURCES = \
$(SSSD_DEBUG_OBJ) \
krb5_child_CFLAGS = \
$(AM_CFLAGS) \
$(KRB5_CFLAGS)
krb5_child_LDADD = \
$(TALLOC_LIBS) \
$(KRB5_LIBS)
memberof_la_SOURCES = \
memberof_la_CFLAGS = \
$(AM_CFLAGS)
memberof_la_LIBADD = $(LDB_LIBS)
memberof_la_LDFLAGS = \
-avoid-version \
-module
if BUILD_KRB5_LOCATOR_PLUGIN
sssd_krb5_locator_plugin_la_SOURCES = \
sssd_krb5_locator_plugin_la_CFLAGS = \
$(AM_CFLAGS) \
$(KRB5_CFLAGS)
sssd_krb5_locator_plugin_la_LDFLAGS = \
-avoid-version \
-module
endif
if BUILD_PYTHON_BINDINGS
pysss_la_SOURCES = \
$(SSSD_UTIL_OBJ) \
$(SSSD_TOOLS_OBJ) \
pysss_la_CFLAGS = \
$(AM_CFLAGS) \
$(PYTHON_CFLAGS)
pysss_la_LIBADD = \
$(PYTHON_BINDINGS_LIBS) \
$(PYTHON_LIBS)
pysss_la_LDFLAGS = \
-avoid-version \
-module
endif
############
# MANPAGES #
############
#Special Rules:
export SGML_CATALOG_FILES
XMLLINT_FLAGS = --catalogs --postvalid --nonet --xinclude --noout
XSLTPROC_FLAGS = --catalogs --xinclude --nonet
$(XMLLINT) $(XMLLINT_FLAGS) $<
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
$(XMLLINT) $(XMLLINT_FLAGS) $<
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
$(XMLLINT) $(XMLLINT_FLAGS) $<
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
$(XMLLINT) $(XMLLINT_FLAGS) $<
$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
#######################
# Installation Extras #
#######################
dist_init_SCRIPTS = \
installsssddirs::
mkdir -p \
$(DESTDIR)$(includedir) \
$(DESTDIR)$(libdir) \
$(DESTDIR)$(sbindir) \
$(DESTDIR)$(initdir) \
$(DESTDIR)$(mandir) \
$(DESTDIR)$(pluginpath) \
$(DESTDIR)$(libdir)/ldb \
$(DESTDIR)$(dbuspolicydir) \
$(DESTDIR)$(infpintrospectdir) \
$(DESTDIR)$(dbusintrospectdir) \
$(DESTDIR)$(pipepath)/private \
$(DESTDIR)$(sssdlibdir) \
$(DESTDIR)$(sssdconfdir) \
$(DESTDIR)$(dbpath) \
$(DESTDIR)$(pidpath) \
$(DESTDIR)$(initdir) \
$(DESTDIR)$(shadow_utils_path)
install-exec-hook: installsssddirs
CLEANFILES = *.X */*.X */*/*.X
tests: all $(check_PROGRAMS)