Makefile.am revision 4139a7a731f2831963a42b26aac111422be28792
2454dfa32c93c20a8522c6ed42fe057baaac9f9aStephan Boschextra_distcheck_flags =
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif HAVE_DEVSHM
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen extra_distcheck_flags += --with-test-dir=/dev/shm
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo SirainenDISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb \
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainen --enable-all-experimental-features \
39ea5717264668e2c7f9f7986eb821d21785f47fTimo Sirainen $(extra_distcheck_flags)
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo SirainenSUBDIRS = po
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif HAVE_MANPAGES
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenSUBDIRS += src/man
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen# Some old versions of automake don't define builddir
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenbuilddir ?= .
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
f739c92a9237db03327dc82e3792e39c160a1e4dTimo SirainenDOXYGEN = @DOXYGEN@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenDISTSETUPOPTS =
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif HAVE_DEBIAN
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenDISTSETUPOPTS += --install-layout=deb
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssdlibexecdir = $(libexecdir)/sssd
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainensssdlibdir = $(libdir)/sssd
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenldblibdir = @ldblibdir@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_KRB5_LOCATOR_PLUGIN
678d0463849ba777106eb7875f27db07a5d8e3dfTimo Sirainenkrb5plugindir = @krb5pluginpath@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenif BUILD_PAC_RESPONDER
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenkrb5authdata_plugindir = @krb5authdatapluginpath@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssdconfdir = $(sysconfdir)/sssd
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainensssddatadir = $(datadir)/sssd
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainensssdapiplugindir = $(sssddatadir)/sssd.api.d
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74cTimo Sirainendbusintrospectdir = $(datarootdir)/sssd/introspect
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainenlocaledir = @localedir@
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainennsslibdir = @nsslibdir@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenpamlibdir = @pammoddir@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenautofslibdir = @appmodpath@
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainendbpath = @dbpath@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenpluginpath = @pluginpath@
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainenpidpath = @pidpath@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenpipepath = @pipepath@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenmcpath = @mcpath@
055389c58fa3915e12fb4e72ec86782ce77c5c72Timo Siraineninitdir = @initdir@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensystemdunitdir = @systemdunitdir@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenlogpath = @logpath@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenpubconfpath = @pubconfpath@
f323e3f0de9841f399aba5919e3f25652a88fa65Timo Sirainenpkgconfigdir = $(libdir)/pkgconfig
f323e3f0de9841f399aba5919e3f25652a88fa65Timo Sirainenkrb5rcachedir = @krb5rcachedir@
f323e3f0de9841f399aba5919e3f25652a88fa65Timo Sirainensudolibdir = @sudolibpath@
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenUNICODE_LIBS=@UNICODE_LIBS@
10399559650f552a23949772be79eb6a80198c5aTimo Sirainen
10399559650f552a23949772be79eb6a80198c5aTimo SirainenAM_CFLAGS =
a6a6ad107e509cf8952a28f740eb2023284497b9Timo Sirainenif WANT_AUX_INFO
39ea5717264668e2c7f9f7986eb821d21785f47fTimo Sirainen AM_CFLAGS += -aux-info $@.X
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif HAVE_GCC
a6a6ad107e509cf8952a28f740eb2023284497b9Timo Sirainen AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen -Wcast-qual -Wcast-align -Wwrite-strings \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -Werror-implicit-function-declaration \
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainen -fno-strict-aliasing \
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainen -std=gnu99
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainenendif
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainen
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainendist_pkgconfig_DATA =
a6a6ad107e509cf8952a28f740eb2023284497b9Timo Sirainen
f739c92a9237db03327dc82e3792e39c160a1e4dTimo SirainenACLOCAL_AMFLAGS = -I m4 -I .
a6a6ad107e509cf8952a28f740eb2023284497b9Timo Sirainen
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainenif BUILD_SSH
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainenbin_PROGRAMS = \
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainen sss_ssh_authorizedkeys \
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainen sss_ssh_knownhostsproxy
8f2eb1ee9ec07661bd50275da99b5f351972a49aTimo Sirainenendif
eca38954bcf972618f6b85932a3690acbd2b673aTimo Sirainen
8f2eb1ee9ec07661bd50275da99b5f351972a49aTimo Sirainensbin_PROGRAMS = \
8f2eb1ee9ec07661bd50275da99b5f351972a49aTimo Sirainen sssd \
8f2eb1ee9ec07661bd50275da99b5f351972a49aTimo Sirainen sss_useradd \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen sss_userdel \
a6a6ad107e509cf8952a28f740eb2023284497b9Timo Sirainen sss_groupadd \
a6a6ad107e509cf8952a28f740eb2023284497b9Timo Sirainen sss_groupdel \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sss_usermod \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sss_groupmod \
678d0463849ba777106eb7875f27db07a5d8e3dfTimo Sirainen sss_groupshow \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sss_cache \
10399559650f552a23949772be79eb6a80198c5aTimo Sirainen sss_debuglevel \
dc599de6096c51e6c922e069bfbbcb7d68c50ffaStephan Bosch sss_seed
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssdlibexec_PROGRAMS = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sssd_nss \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sssd_pam \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sssd_be \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen krb5_child \
a943ed0f901e312445fd393249b91932797bba79Josef 'Jeff' Sipek ldap_child \
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainen proxy_child
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_SUDO
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssdlibexec_PROGRAMS += sssd_sudo
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_AUTOFS
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssdlibexec_PROGRAMS += sssd_autofs
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_SSH
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssdlibexec_PROGRAMS += sssd_ssh
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainen
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainenif BUILD_PAC_RESPONDER
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainen sssdlibexec_PROGRAMS += sssd_pac
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainenendif
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainen
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainenif HAVE_CHECK
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen non_interactive_check_based_tests = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sysdb-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen strtonum-tests \
62ff6002b1e37a42303c2c0107f324860232e204Timo Sirainen resolv-tests \
62ff6002b1e37a42303c2c0107f324860232e204Timo Sirainen krb5-utils-tests \
62ff6002b1e37a42303c2c0107f324860232e204Timo Sirainen check_and_open-tests \
62ff6002b1e37a42303c2c0107f324860232e204Timo Sirainen files-tests \
62ff6002b1e37a42303c2c0107f324860232e204Timo Sirainen refcount-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen fail_over-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen find_uid-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen auth-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen ipa_ldap_opt-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen ad_ldap_opt-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen simple_access-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen crypto-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen util-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen debug-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen ipa_hbac-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen sss_idmap-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen responder_socket_access-tests
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_PAC_RESPONDER
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen non_interactive_check_based_tests += pac_responder-tests
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_SSH
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen non_interactive_check_based_tests += sysdb_ssh-tests
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif HAVE_CMOCKA
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen non_interactive_cmocka_based_tests = \
a943ed0f901e312445fd393249b91932797bba79Josef 'Jeff' Sipek nss-srv-tests \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen test-find-uid \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen test-io
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenendif
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainencheck_PROGRAMS = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen stress-tests \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen krb5-child-test \
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo Sirainen $(non_interactive_cmocka_based_tests) \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen $(non_interactive_check_based_tests)
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo Sirainen
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo SirainenPYTHON_TESTS =
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_PYTHON_BINDINGS
f739c92a9237db03327dc82e3792e39c160a1e4dTimo SirainenPYTHON_TESTS += src/config/SSSDConfigTest.py \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/tests/pyhbac-test.py \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/tests/pysss_murmur-test.py
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenendif
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen
f739c92a9237db03327dc82e3792e39c160a1e4dTimo SirainenTESTS = \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen $(PYTHON_TESTS) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen $(non_interactive_cmocka_based_tests) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen $(non_interactive_check_based_tests)
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainensssdlib_LTLIBRARIES = \
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainen libsss_ldap.la \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen libsss_krb5.la \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen libsss_proxy.la \
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainen libsss_ipa.la \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen libsss_ad.la \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen libsss_simple.la
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainen
e93184a9055c2530366dfe617e07199603c399ddMartti Rannanjärvildblib_LTLIBRARIES = \
3350b29fce44f8bc8fa015dad57024a8de301d38Timo Sirainen memberof.la
3350b29fce44f8bc8fa015dad57024a8de301d38Timo Sirainen
3350b29fce44f8bc8fa015dad57024a8de301d38Timo Sirainenif BUILD_KRB5_LOCATOR_PLUGIN
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainenkrb5plugin_LTLIBRARIES = \
3350b29fce44f8bc8fa015dad57024a8de301d38Timo Sirainen sssd_krb5_locator_plugin.la
3350b29fce44f8bc8fa015dad57024a8de301d38Timo Sirainenendif
3350b29fce44f8bc8fa015dad57024a8de301d38Timo Sirainen
3350b29fce44f8bc8fa015dad57024a8de301d38Timo Sirainenif BUILD_PAC_RESPONDER
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainenkrb5authdata_plugin_LTLIBRARIES = \
c224fff79d18480a65e9b4504b891b8ea176f5b1Timo Sirainen sssd_pac_plugin.la
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainenendif
bdb0f594a5673a0c5a16b92dc49eb2a8a66bdaceTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainennoinst_LTLIBRARIES =
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenpkglib_LTLIBRARIES = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen libsss_crypt.la
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainenif HAVE_NSS
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen SSS_CRYPT_SOURCES = src/util/crypto/nss/nss_base64.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/util/crypto/nss/nss_hmac_sha1.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/util/crypto/nss/nss_sha512crypt.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/util/crypto/nss/nss_obfuscate.c \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/util/crypto/nss/nss_util.c
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen SSS_CRYPT_CFLAGS = $(NSS_CFLAGS)
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen SSS_CRYPT_LIBS = $(NSS_LIBS)
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainenelse
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen SSS_CRYPT_SOURCES = src/util/crypto/libcrypto/crypto_base64.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/util/crypto/libcrypto/crypto_hmac_sha1.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/util/crypto/libcrypto/crypto_sha512crypt.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/util/crypto/libcrypto/crypto_obfuscate.c
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen SSS_CRYPT_CFLAGS = $(CRYPTO_CFLAGS)
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen SSS_CRYPT_LIBS = $(CRYPTO_LIBS)
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenlibsss_crypt_la_SOURCES = \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen $(SSS_CRYPT_SOURCES)
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainenlibsss_crypt_la_CFLAGS = \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen $(SSS_CRYPT_CFLAGS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(DHASH_CFLAGS)
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainenlibsss_crypt_la_LIBADD = \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen $(SSS_CRYPT_LIBS)
8ad53e0bb29f61350f608fc519210f2442c20775Timo Sirainenlibsss_crypt_la_LDFLAGS = \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen -avoid-version
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainenif BUILD_PYTHON_BINDINGS
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainenpyexec_LTLIBRARIES = \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen pysss.la \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen pyhbac.la \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen pysss_murmur.la
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainendist_noinst_SCRIPTS = \
055389c58fa3915e12fb4e72ec86782ce77c5c72Timo Sirainen $(EXTRA_SCRIPTS) \
055389c58fa3915e12fb4e72ec86782ce77c5c72Timo Sirainen src/config/setup.py \
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainen src/config/SSSDConfig/ipachangeconf.py \
37fed1bc1545f7eb1755b61d6a5ac4d083a693b3Timo Sirainen src/config/SSSDConfig/__init__.py \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/config/SSSDConfigTest.py \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/config/SSSDConfig/sssd_upgrade_config.py \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen contrib/rhel/update_debug_levels.py \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen contrib/fedora/bashrc_sssd \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/tests/pyhbac-test.py \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/tests/pysss_murmur-test.py
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainendist_noinst_DATA = \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/config/testconfigs/sssd-valid.conf \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/config/testconfigs/noparse.api.conf \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/config/testconfigs/sssd-noversion.conf \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/config/testconfigs/sssd-badversion.conf \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/config/testconfigs/sssd-invalid.conf \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen src/config/testconfigs/sssd-invalid-badbool.conf
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen###############################
8d25b6ad05b99e75613cb045a121efd51e6afbb6Timo Sirainen# Global compilation settings #
8d25b6ad05b99e75613cb045a121efd51e6afbb6Timo Sirainen###############################
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenAM_CPPFLAGS = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -Wall \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen -Iinclude \
678d0463849ba777106eb7875f27db07a5d8e3dfTimo Sirainen -I.. \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -I$(srcdir)/include \
c73415e93ecf1c699ef054d2b179b10976fa23f3Timo Sirainen -I$(srcdir)/src/sss_client \
c73415e93ecf1c699ef054d2b179b10976fa23f3Timo Sirainen -I$(srcdir)/src \
c73415e93ecf1c699ef054d2b179b10976fa23f3Timo Sirainen -Iinclude \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen -I. \
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo Sirainen $(POPT_CFLAGS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TALLOC_CFLAGS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TDB_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(TEVENT_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(LDB_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(DBUS_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(PCRE_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(COLLECTION_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(INI_CONFIG_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(DHASH_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(LIBNL_CFLAGS) \
76b4207273534f71365bc7f900c23a5160692802Timo Sirainen $(OPENLDAP_CFLAGS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(GLIB2_CFLAGS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DLIBDIR=\"$(libdir)\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DVARDIR=\"$(localstatedir)\" \
8d25b6ad05b99e75613cb045a121efd51e6afbb6Timo Sirainen -DSHLIBEXT=\"$(SHLIBEXT)\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DSSSD_LIBEXEC_PATH=\"$(sssdlibexecdir)\" \
8d25b6ad05b99e75613cb045a121efd51e6afbb6Timo Sirainen -DSSSD_INTROSPECT_PATH=\"$(dbusinstropectdir)\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DSSSD_CONF_DIR=\"$(sssdconfdir)\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DSSS_NSS_MCACHE_DIR=\"$(mcpath)\" \
055389c58fa3915e12fb4e72ec86782ce77c5c72Timo Sirainen -DSSS_NSS_SOCKET_NAME=\"$(pipepath)/nss\" \
055389c58fa3915e12fb4e72ec86782ce77c5c72Timo Sirainen -DSSS_PAM_SOCKET_NAME=\"$(pipepath)/pam\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DSSS_PAC_SOCKET_NAME=\"$(pipepath)/pac\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DSSS_PAM_PRIV_SOCKET_NAME=\"$(pipepath)/private/pam\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DSSS_SUDO_SOCKET_NAME=\"$(pipepath)/sudo\" \
055389c58fa3915e12fb4e72ec86782ce77c5c72Timo Sirainen -DSSS_AUTOFS_SOCKET_NAME=\"$(pipepath)/autofs\" \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -DSSS_SSH_SOCKET_NAME=\"$(pipepath)/ssh\" \
055389c58fa3915e12fb4e72ec86782ce77c5c72Timo Sirainen -DLOCALEDIR=\"$(localedir)\"
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainen
9c7f6dbf65ca01026e5f9c8c8b67c7e629c0b5e7Timo SirainenEXTRA_DIST = build/config.rpath
8d25b6ad05b99e75613cb045a121efd51e6afbb6Timo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenSSSD_RESPONDER_OBJ = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/common/negcache.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/common/responder_cmd.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/common/responder_common.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/common/responder_dp.c \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen src/responder/common/responder_packet.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/common/responder_get_domains.c
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
dba8af1faaf9fd3957254bb6f2234b285f77096fTimo SirainenSSSD_TOOLS_OBJ = \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen src/tools/sss_sync_ops.c \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen src/tools/tools_util.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/tools/files.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/tools/selinux.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/tools/nscd.c
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo SirainenSSSD_LCL_TOOLS_OBJ = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/sss_client/common.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/tools/tools_mc_util.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(SSSD_TOOLS_OBJ)
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
678d0463849ba777106eb7875f27db07a5d8e3dfTimo SirainenSSSD_RESOLV_OBJ = \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen src/resolv/async_resolv.c \
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74cTimo Sirainen src/resolv/async_resolv_utils.c
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenif BUILD_ARES_DATA
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen SSSD_RESOLV_OBJ += \
7bd72e4deca3cbf757dd1ea298486d9f3bc24226Timo Sirainen src/resolv/ares/ares_parse_srv_reply.c \
a75d470c9223a75801418fcdda258885c36317e0Timo Sirainen src/resolv/ares/ares_data.c
a75d470c9223a75801418fcdda258885c36317e0Timo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenSSSD_FAILOVER_OBJ = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/providers/fail_over.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/providers/fail_over_srv.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(SSSD_RESOLV_OBJ)
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenSSSD_LIBS = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TALLOC_LIBS) \
7bd72e4deca3cbf757dd1ea298486d9f3bc24226Timo Sirainen $(TEVENT_LIBS) \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen $(POPT_LIBS) \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen $(LDB_LIBS) \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen $(DBUS_LIBS) \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen $(PCRE_LIBS) \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen $(INI_CONFIG_LIBS) \
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2Stephan Bosch $(COLLECTION_LIBS) \
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2Stephan Bosch $(DHASH_LIBS) \
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2Stephan Bosch $(SSS_CRYPT_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(OPENLDAP_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TDB_LIBS)
3c63c219ae7854b4f1d44a671a65572aa242cbcfTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenPYTHON_BINDINGS_LIBS = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TALLOC_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TEVENT_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(POPT_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(LDB_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(DBUS_LIBS) \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen $(PCRE_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(DHASH_LIBS) \
7bd72e4deca3cbf757dd1ea298486d9f3bc24226Timo Sirainen $(SSS_CRYPT_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(OPENLDAP_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TDB_LIBS)
7bd72e4deca3cbf757dd1ea298486d9f3bc24226Timo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo SirainenTOOLS_LIBS = \
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainen $(TALLOC_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(TEVENT_LIBS) \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen $(POPT_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(LDB_LIBS) \
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainen $(DBUS_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(PCRE_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(INI_CONFIG_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(COLLECTION_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(DHASH_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(OPENLDAP_LIBS) \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen $(TDB_LIBS)
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainenif BUILD_SELINUX
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen PYTHON_BINDINGS_LIBS += $(SELINUX_LIBS)
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen TOOLS_LIBS += $(SELINUX_LIBS)
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainenendif
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainenif BUILD_SEMANAGE
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen PYTHON_BINDINGS_LIBS += $(SEMANAGE_LIBS)
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen TOOLS_LIBS += $(SEMANAGE_LIBS)
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainenendif
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainendist_noinst_HEADERS = \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/monitor/monitor.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/crypto/sss_crypto.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/dlinklist.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/util.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/io.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/util_errors.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/strtonum.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/sss_nss.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/sss_ldap.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/sss_python.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/sss_krb5.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/sss_selinux.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/sss_utf8.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/sss_ssh.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/refcount.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/find_uid.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/user_info_msg.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/murmurhash3.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/mmap_cache.h \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/atomic_io.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/auth_utils.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/util/authtok.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/monitor/monitor.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/monitor/monitor_interfaces.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/common/responder.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/common/responder_packet.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/common/responder_sbus.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/pam/pamsrv.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/pam/pam_helpers.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/nss/nsssrv.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/nss/nsssrv_private.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/nss/nsssrv_netgroup.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/nss/nsssrv_services.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/nss/nsssrv_mmap_cache.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/pac/pacsrv.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/common/negcache.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/sudo/sudosrv_private.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/autofs/autofs_private.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/responder/ssh/sshsrv_private.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/sbus/sbus_client.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/sbus/sssd_dbus.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/sbus/sssd_dbus_private.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/db/sysdb.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/db/sysdb_sudo.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/db/sysdb_autofs.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/db/sysdb_selinux.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/db/sysdb_private.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/db/sysdb_services.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/db/sysdb_ssh.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/confdb/confdb.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/confdb/confdb_private.h \
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainen src/confdb/confdb_setup.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/providers/data_provider.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/dp_backend.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/fail_over.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/fail_over_srv.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/util/child_common.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/simple/simple_access.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/krb5/krb5_auth.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/krb5/krb5_common.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/krb5/krb5_utils.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/krb5/krb5_init_shared.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/krb5/krb5_opts.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/ldap_common.h \
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo Sirainen src/providers/ldap/sdap.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/providers/ldap/sdap_access.h \
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo Sirainen src/providers/ldap/sdap_async.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/providers/ldap/sdap_async_private.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/sdap_sudo_cache.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/sdap_sudo.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/sdap_autofs.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/sdap_id_op.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/ldap_opts.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/sdap_range.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ldap/sdap_users.h \
c85f661daf164687fc5af22d74902f94c26597d0Timo Sirainen src/providers/ipa/ipa_common.h \
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo Sirainen src/providers/ipa/ipa_config.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/providers/ipa/ipa_access.h \
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo Sirainen src/providers/ipa/ipa_selinux.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/providers/ipa/ipa_hosts.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ipa/ipa_selinux_common.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ipa/ipa_selinux_maps.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ipa/ipa_auth.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ipa/ipa_dyndns.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/providers/ipa/ipa_subdomains.h \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/providers/ipa/ipa_id.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/providers/ipa/ipa_hostid.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/providers/ipa/ipa_opts.h \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/providers/ipa/ipa_srv.h \
c719f74d3fd41d9b9fea0edaea1e00ab90da72dcTimo Sirainen src/providers/proxy/proxy.h \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/tools/tools_util.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/tools/sss_sync_ops.h \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/resolv/async_resolv.h \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/resolv/ares/ares_parse_srv_reply.h \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/resolv/ares/ares_parse_txt_reply.h \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/resolv/ares/ares_data.h \
c719f74d3fd41d9b9fea0edaea1e00ab90da72dcTimo Sirainen src/tests/common.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/tests/common_check.h \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/tests/cmocka/common_mock.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/tests/cmocka/common_mock_resp.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/sss_client/ssh/sss_ssh_client.h \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/lib/idmap/sss_idmap_private.h
c719f74d3fd41d9b9fea0edaea1e00ab90da72dcTimo Sirainen
3bc62efe513ebc7450cffe9a4e8f0b07424bf190Timo Sirainen
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainenif HAVE_NSS
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen dist_noinst_HEADERS += src/util/crypto/nss/nss_util.h
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainenendif
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo SirainenSSSD_DOCS = \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen doc \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen hbac_doc \
c719f74d3fd41d9b9fea0edaea1e00ab90da72dcTimo Sirainen idmap_doc
c719f74d3fd41d9b9fea0edaea1e00ab90da72dcTimo Sirainen
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenif BUILD_SUDO
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen SSSD_DOCS += libsss_sudo_doc
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenendif
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenif HAVE_PTHREAD
f739c92a9237db03327dc82e3792e39c160a1e4dTimo SirainenCLIENT_LIBS = -lpthread
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenendif
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen#####################
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen# Utility libraries #
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen#####################
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenpkglib_LTLIBRARIES += libsss_debug.la
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenlibsss_debug_la_SOURCES = \
b5052fbfdbc2678cc8f12899afe55c998f43b740Timo Sirainen src/util/debug.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/sss_log.c
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenlibsss_debug_la_LDFLAGS = \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen -avoid-version
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainenpkglib_LTLIBRARIES += libsss_child.la
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainenlibsss_child_la_SOURCES = src/util/child_common.c
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainenlibsss_child_la_LDFLAGS = -avoid-version
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenpkglib_LTLIBRARIES += libsss_util.la
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenlibsss_util_la_SOURCES = \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/confdb/confdb.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/db/sysdb.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/db/sysdb_ops.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/db/sysdb_search.c \
678d0463849ba777106eb7875f27db07a5d8e3dfTimo Sirainen src/db/sysdb_selinux.c \
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainen src/db/sysdb_upgrade.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/db/sysdb_services.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/db/sysdb_autofs.c \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen src/db/sysdb_subdomains.c \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen src/db/sysdb_ranges.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/db/sysdb_idmap.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/monitor/monitor_sbus.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/providers/dp_auth_util.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/providers/dp_pam_data_util.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/providers/dp_sbus.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/sbus/sbus_client.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/sbus/sssd_dbus_common.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/sbus/sssd_dbus_connection.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/sbus/sssd_dbus_server.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/util/util.c \
262eeae35ee285981b37294628ec8d054daa1b23Timo Sirainen src/util/memory.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/server.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/signal.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/usertools.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/backup_file.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/strtonum.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/check_and_open.c \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/util/refcount.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/util/sss_nss.c \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/util/sss_utf8.c \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/util/sss_tc_utf8.c \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/util/murmurhash3.c \
97943a36e08923d625898f5ca8ffd38325a3986dTimo Sirainen src/util/atomic_io.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/authtok.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/util/sss_selinux.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/util/domain_info_utils.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/util_lock.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/util_errors.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/util/io.c
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenlibsss_util_la_LIBADD = \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen $(SSSD_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(UNICODE_LIBS) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen libsss_child.la \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen libsss_crypt.la \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen libsss_debug.la
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenif BUILD_SUDO
b66d803de86bfb411165b3465b0d9ef64ecfe2a1Timo Sirainen libsss_util_la_SOURCES += src/db/sysdb_sudo.c
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenendif
4307c886579381dbb1897ea1388ae6978c96f560Timo Sirainenif BUILD_SSH
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenlibsss_util_la_SOURCES += \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/db/sysdb_ssh.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/util/sss_ssh.c
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainenlibsss_util_la_LDFLAGS = -avoid-version
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainenlib_LTLIBRARIES = libipa_hbac.la libsss_idmap.la
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainendist_pkgconfig_DATA += src/providers/ipa/ipa_hbac.pc
e5ff2112aea089f3de2badf9b1635677791d1384Timo Sirainenlibipa_hbac_la_SOURCES = \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/providers/ipa/hbac_evaluator.c \
b141c303bf09b6ae43e1eb4aac1e1a6b796b9d35Timo Sirainen src/util/sss_utf8.c
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainenlibipa_hbac_la_LDFLAGS = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen -version-info 0:1:0 \
e93184a9055c2530366dfe617e07199603c399ddMartti Rannanjärvi $(UNICODE_LIBS)
313c43343f711f04a8d4d1f8dd21aaab5c16b2d2Timo Sirainen
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainendist_pkgconfig_DATA += src/lib/idmap/sss_idmap.pc
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainenlibsss_idmap_la_SOURCES = \
a75d470c9223a75801418fcdda258885c36317e0Timo Sirainen src/lib/idmap/sss_idmap.c \
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainen src/lib/idmap/sss_idmap_conv.c
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainenlibsss_idmap_la_LDFLAGS = \
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainen -version-info 0:1:0
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainen
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Sirainen
1f366614aaafcc9496ff85b25988f19c3254ab7cTimo Siraineninclude_HEADERS = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/providers/ipa/ipa_hbac.h \
3ccab0bac68040f179a7de45c516cec258e28fdbTimo Sirainen src/lib/idmap/sss_idmap.h
efd9d73a7fba2830431aa1186fd65372f6631399Timo Sirainen
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4Timo Sirainen####################
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen# Program Binaries #
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen####################
efd9d73a7fba2830431aa1186fd65372f6631399Timo Sirainensssd_SOURCES = \
4307c886579381dbb1897ea1388ae6978c96f560Timo Sirainen src/monitor/monitor.c \
efd9d73a7fba2830431aa1186fd65372f6631399Timo Sirainen src/monitor/monitor_netlink.c \
efd9d73a7fba2830431aa1186fd65372f6631399Timo Sirainen src/confdb/confdb_setup.c
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssd_LDADD = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(SSSD_LIBS) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen $(LIBNL_LIBS) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen $(KEYUTILS_LIBS) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen libsss_util.la
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen
4307c886579381dbb1897ea1388ae6978c96f560Timo Sirainensssd_nss_SOURCES = \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/responder/nss/nsssrv.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/responder/nss/nsssrv_cmd.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/responder/nss/nsssrv_netgroup.c \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen src/responder/nss/nsssrv_services.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/responder/nss/nsssrv_mmap_cache.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen $(SSSD_RESPONDER_OBJ)
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainensssd_nss_LDADD = \
4307c886579381dbb1897ea1388ae6978c96f560Timo Sirainen $(TDB_LIBS) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen $(SSSD_LIBS) \
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen libsss_util.la
f739c92a9237db03327dc82e3792e39c160a1e4dTimo Sirainen
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssd_pam_SOURCES = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/pam/pam_LOCAL_domain.c \
7b032348d7bbb93ff96188289d3dfc1899b9abb3Josef 'Jeff' Sipek src/responder/pam/pamsrv.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/pam/pamsrv_cmd.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/pam/pamsrv_dp.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/pam/pam_helpers.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen $(SSSD_RESPONDER_OBJ)
c2a66e7950cb4d3fc4d68e4480ea8f39bdd7c871Timo Sirainensssd_pam_LDADD = \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen $(TDB_LIBS) \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen $(SSSD_LIBS) \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen $(SELINUX_LIBS) \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen libsss_util.la
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainenif BUILD_SUDO
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainensssd_sudo_SOURCES = \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/responder/sudo/sudosrv.c \
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainen src/responder/sudo/sudosrv_cmd.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/sudo/sudosrv_get_sudorules.c \
efe78d3ba24fc866af1c79b9223dc0809ba26cadStephan Bosch src/responder/sudo/sudosrv_query.c \
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainen src/responder/sudo/sudosrv_dp.c \
9a382894724292e2af60ef94fc471d761f45e5d5Timo Sirainen $(SSSD_RESPONDER_OBJ)
8bf42ce5ef783b96a2ded67524173e95e9b45adaTimo Sirainensssd_sudo_LDADD = \
9a382894724292e2af60ef94fc471d761f45e5d5Timo Sirainen $(SSSD_LIBS) \
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainen libsss_util.la
9a382894724292e2af60ef94fc471d761f45e5d5Timo Sirainenendif
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen
3954326e793bdef1e94e0ad781ed6cc7e48beebbTimo Sirainenif BUILD_AUTOFS
661998e2ccd772ad92a9d4a75cb712692a8c94b3Timo Sirainensssd_autofs_SOURCES = \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/autofs/autofssrv.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/autofs/autofssrv_cmd.c \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen src/responder/autofs/autofssrv_dp.c \
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen $(SSSD_RESPONDER_OBJ)
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainensssd_autofs_LDADD = \
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen $(SSSD_LIBS) \
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen libsss_util.la
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainenendif
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainenif BUILD_SSH
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainensssd_ssh_SOURCES = \
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen src/responder/ssh/sshsrv.c \
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen src/responder/ssh/sshsrv_dp.c \
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen src/responder/ssh/sshsrv_cmd.c \
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen $(SSSD_RESPONDER_OBJ)
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainensssd_ssh_LDADD = \
ade5567577dadb0b275c840208d3ad21a9f00a36Timo Sirainen $(SSSD_LIBS) \
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainen libsss_util.la
e3fabe8d0faa9aab7cae2d0eee9653f581a3061dTimo Sirainenendif
sssd_pac_SOURCES = \
src/responder/pac/pacsrv.c \
src/responder/pac/pacsrv_cmd.c \
src/responder/pac/pacsrv_utils.c \
$(SSSD_UTIL_OBJ) \
$(SSSD_RESPONDER_OBJ)
sssd_pac_CFLAGS = \
$(AM_CFLAGS) \
$(NDR_KRB5PAC_CFLAGS)
sssd_pac_LDADD = \
$(NDR_KRB5PAC_LIBS) \
$(TDB_LIBS) \
$(SSSD_LIBS) \
libsss_idmap.la \
libsss_util.la
sssd_be_SOURCES = \
src/providers/data_provider_be.c \
src/providers/data_provider_fo.c \
src/providers/data_provider_opts.c \
src/providers/data_provider_callbacks.c \
$(SSSD_FAILOVER_OBJ)
sssd_be_LDADD = \
-ldl \
$(SSSD_LIBS) \
$(CARES_LIBS) \
libsss_util.la
sssd_be_LDFLAGS = \
-Wl,--version-script,$(srcdir)/src/providers/sssd_be.exports \
-export-dynamic \
$(PAM_LIBS)
if BUILD_PYTHON_BINDINGS
sss_obfuscate_pythondir = $(sbindir)
dist_sss_obfuscate_python_SCRIPTS = \
src/tools/sss_obfuscate
endif
dist_noinst_DATA += \
src/examples/sssd-example.conf \
src/examples/sssdproxytest \
src/examples/sudo \
src/examples/logrotate \
src/providers/sssd_be.exports \
src/sss_client/COPYING \
src/sss_client/COPYING.LESSER \
src/m4
######################
# Command-line Tools #
######################
sss_useradd_SOURCES = \
src/tools/sss_useradd.c \
$(SSSD_TOOLS_OBJ)
sss_useradd_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_userdel_SOURCES = \
src/tools/sss_userdel.c \
src/util/find_uid.c \
$(SSSD_LCL_TOOLS_OBJ)
sss_userdel_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_userdel_CFLAGS = $(AM_CFLAGS)
sss_userdel_LDFLAGS = \
$(CLIENT_LIBS)
sss_groupadd_SOURCES = \
src/tools/sss_groupadd.c \
$(SSSD_TOOLS_OBJ)
sss_groupadd_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_groupdel_SOURCES = \
src/tools/sss_groupdel.c \
$(SSSD_LCL_TOOLS_OBJ)
sss_groupdel_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_groupdel_CFLAGS = $(AM_CFLAGS)
sss_groupdel_LDFLAGS = \
$(CLIENT_LIBS)
sss_usermod_SOURCES = \
src/tools/sss_usermod.c \
$(SSSD_LCL_TOOLS_OBJ)
sss_usermod_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_usermod_CFLAGS = $(AM_CFLAGS)
sss_usermod_LDFLAGS = \
$(CLIENT_LIBS)
sss_groupmod_SOURCES = \
src/tools/sss_groupmod.c \
$(SSSD_LCL_TOOLS_OBJ)
sss_groupmod_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_groupmod_CFLAGS = $(AM_CFLAGS)
sss_groupmod_LDFLAGS = \
$(CLIENT_LIBS)
sss_groupshow_SOURCES = \
src/tools/sss_groupshow.c \
$(SSSD_TOOLS_OBJ)
sss_groupshow_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_cache_SOURCES = \
src/tools/sss_cache.c \
$(SSSD_LCL_TOOLS_OBJ)
sss_cache_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_cache_CFLAGS = $(AM_CFLAGS)
sss_cache_LDFLAGS = \
$(CLIENT_LIBS)
sss_debuglevel_SOURCES = \
src/tools/sss_debuglevel.c \
$(SSSD_TOOLS_OBJ)
sss_debuglevel_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
sss_seed_SOURCES = \
src/tools/sss_seed.c \
$(SSSD_TOOLS_OBJ)
sss_seed_LDADD = \
libsss_util.la \
$(TOOLS_LIBS)
if BUILD_SUDO
sss_sudo_cli_SOURCES = \
src/sss_client/common.c \
src/sss_client/sudo/sss_sudo.c \
src/sss_client/sudo/sss_sudo_response.c \
src/sss_client/sudo_testcli/sudo_testcli.c
sss_sudo_cli_CFLAGS = $(AM_CFLAGS)
sss_sudo_cli_LDFLAGS = $(CLIENT_LIBS)
endif
if BUILD_SSH
sss_ssh_authorizedkeys_SOURCES = \
src/sss_client/common.c \
src/sss_client/ssh/sss_ssh_client.c \
src/sss_client/ssh/sss_ssh_authorizedkeys.c
sss_ssh_authorizedkeys_CFLAGS = $(AM_CFLAGS)
sss_ssh_authorizedkeys_LDADD = \
libsss_util.la
sss_ssh_authorizedkeys_LDFLAGS = $(CLIENT_LIBS)
sss_ssh_knownhostsproxy_SOURCES = \
src/sss_client/common.c \
src/sss_client/ssh/sss_ssh_client.c \
src/sss_client/ssh/sss_ssh_knownhostsproxy.c
sss_ssh_knownhostsproxy_CFLAGS = $(AM_CFLAGS)
sss_ssh_knownhostsproxy_LDADD = \
libsss_util.la
sss_ssh_knownhostsproxy_LDFLAGS = $(CLIENT_LIBS)
endif
#################
# Feature Tests #
#################
TESTS_ENVIRONMENT = LDB_MODULES_PATH=$(abs_top_builddir)/ldb_mod_test_dir
ldb_mod_test_dir: memberof.la
mkdir -p $(builddir)/ldb_mod_test_dir
cp $(builddir)/.libs/memberof.so $(builddir)/ldb_mod_test_dir
noinst_LTLIBRARIES += \
libsss_test_common.la
libsss_test_common_la_SOURCES = \
src/tests/common.c
if HAVE_CHECK
libsss_test_common_la_SOURCES += \
src/tests/common_check.c \
src/tests/leak_check.c
sysdb_tests_DEPENDENCIES = \
$(ldblib_LTLIBRARIES)
sysdb_tests_SOURCES = \
src/tests/sysdb-tests.c
sysdb_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
sysdb_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la
sysdb_ssh_tests_DEPENDENCIES = \
$(ldblib_LTLIBRARIES)
sysdb_ssh_tests_SOURCES = \
src/tests/sysdb_ssh-tests.c
sysdb_ssh_tests_CFLAGS = \
$(AM_CFLAGS)\
$(CHECK_CFLAGS)
sysdb_ssh_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la
strtonum_tests_SOURCES = \
src/tests/strtonum-tests.c \
src/util/strtonum.c
strtonum_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
strtonum_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_debug.la \
libsss_test_common.la
krb5_utils_tests_SOURCES = \
src/tests/krb5_utils-tests.c \
src/providers/krb5/krb5_utils.c \
src/providers/krb5/krb5_common.c \
src/util/sss_krb5.c \
src/util/find_uid.c \
src/providers/data_provider_fo.c \
src/providers/data_provider_opts.c \
src/providers/data_provider_callbacks.c \
$(SSSD_FAILOVER_OBJ)
krb5_utils_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
krb5_utils_tests_LDADD = \
$(SSSD_LIBS)\
$(CARES_LIBS) \
$(KRB5_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la
check_and_open_tests_SOURCES = \
src/tests/check_and_open-tests.c \
src/util/check_and_open.c
check_and_open_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
check_and_open_tests_LDADD = \
libsss_debug.la \
$(CHECK_LIBS) \
libsss_test_common.la
FILES_TESTS_LIBS = \
$(CHECK_LIBS) \
$(POPT_LIBS) \
$(TALLOC_LIBS) \
libsss_test_common.la
if BUILD_SELINUX
FILES_TESTS_LIBS += $(SELINUX_LIBS)
endif
if BUILD_SEMANAGE
FILES_TESTS_LIBS += $(SEMANAGE_LIBS)
endif
files_tests_SOURCES = \
src/tests/files-tests.c \
src/util/check_and_open.c \
src/util/atomic_io.c \
src/tools/selinux.c \
src/tools/files.c
files_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
files_tests_LDADD = \
libsss_debug.la \
$(FILES_TESTS_LIBS) \
libsss_test_common.la \
libsss_util.la
SSSD_RESOLV_TESTS_OBJ = \
$(SSSD_RESOLV_OBJ)
if BUILD_ARES_DATA
SSSD_RESOLV_TESTS_OBJ += \
src/resolv/ares/ares_parse_txt_reply.c
endif
resolv_tests_SOURCES = \
src/tests/resolv-tests.c \
src/tests/common.c \
$(SSSD_RESOLV_TESTS_OBJ)
resolv_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS) \
-DBUILD_TXT
resolv_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
$(CARES_LIBS) \
libsss_util.la \
libsss_test_common.la
refcount_tests_SOURCES = \
src/tests/refcount-tests.c \
$(CHECK_OBJ)
refcount_tests_CFLAGS = \
$(CHECK_CFLAGS)
refcount_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la
fail_over_tests_SOURCES = \
src/tests/fail_over-tests.c \
$(SSSD_FAILOVER_OBJ) \
$(CHECK_OBJ)
fail_over_tests_CFLAGS = \
$(CHECK_CFLAGS)
fail_over_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
$(CARES_LIBS) \
libsss_util.la \
libsss_test_common.la
find_uid_tests_SOURCES = \
src/tests/find_uid-tests.c \
src/util/find_uid.c \
src/util/atomic_io.c \
src/util/strtonum.c
find_uid_tests_CFLAGS = \
$(AM_CFLAGS) \
$(TALLOC_CFLAGS) \
$(DHASH_CFLAGS) \
$(CHECK_CFLAGS)
find_uid_tests_LDADD = \
libsss_debug.la \
$(TALLOC_LIBS) \
$(DHASH_LIBS) \
$(CHECK_LIBS) \
libsss_test_common.la
auth_tests_SOURCES = \
src/tests/auth-tests.c
auth_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
auth_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la
ipa_ldap_opt_tests_SOURCES = \
src/providers/ipa/ipa_utils.c \
src/tests/ipa_ldap_opt-tests.c
ipa_ldap_opt_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
ipa_ldap_opt_tests_LDADD = \
$(CHECK_LIBS) \
$(TALLOC_LIBS) \
libsss_test_common.la
ad_ldap_opt_tests_SOURCES = \
src/tests/ad_ldap_opt-tests.c
ad_ldap_opt_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
ad_ldap_opt_tests_LDADD = \
$(CHECK_LIBS) \
$(TALLOC_LIBS) \
libsss_test_common.la
simple_access_tests_SOURCES = \
src/tests/simple_access-tests.c \
src/providers/simple/simple_access_check.c \
src/providers/data_provider_be.c \
src/providers/data_provider_fo.c \
src/providers/data_provider_opts.c \
src/providers/data_provider_callbacks.c \
$(SSSD_FAILOVER_OBJ)
simple_access_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS) \
-DUNIT_TESTING
simple_access_tests_LDADD = \
$(SSSD_LIBS) \
$(CARES_LIBS) \
$(CHECK_LIBS) \
$(PAM_LIBS) \
libsss_util.la \
libsss_test_common.la
util_tests_SOURCES = \
src/tests/util-tests.c
util_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
util_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la
debug_tests_SOURCES = \
src/tests/debug-tests.c \
src/tests/common.c
debug_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
debug_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_util.la
crypto_tests_SOURCES = \
$(SSS_CRYPT_SOURCES) \
src/tests/crypto-tests.c
crypto_tests_CFLAGS = \
$(SSS_CRYPT_CFLAGS) \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
crypto_tests_LDADD = \
libsss_debug.la \
$(SSS_CRYPT_LIBS) \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_test_common.la
ipa_hbac_tests_SOURCES = \
src/tests/ipa_hbac-tests.c
ipa_hbac_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
ipa_hbac_tests_LDADD = \
$(SSSD_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la \
libipa_hbac.la
sss_idmap_tests_SOURCES = \
src/tests/sss_idmap-tests.c
sss_idmap_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
sss_idmap_tests_LDADD = \
$(CHECK_LIBS) \
$(TALLOC_LIBS) \
libsss_test_common.la \
libsss_idmap.la
pac_responder_tests_SOURCES = \
src/tests/pac_responder-tests.c \
src/responder/pac/pacsrv_utils.c
pac_responder_tests_CFLAGS = \
$(AM_CFLAGS) \
$(NDR_KRB5PAC_CFLAGS) \
$(CHECK_CFLAGS)
pac_responder_tests_LDADD = \
$(CHECK_LIBS) \
$(TALLOC_LIBS) \
$(NDR_KRB5PAC_LIBS) \
$(SSSD_LIBS) \
-lm \
libsss_idmap.la \
libsss_debug.la \
libsss_util.la \
libsss_test_common.la
responder_socket_access_tests_SOURCES = \
src/tests/responder_socket_access-tests.c \
src/responder/common/responder_common.c \
src/responder/common/responder_packet.c \
src/responder/common/responder_cmd.c
responder_socket_access_tests_CFLAGS = \
$(AM_CFLAGS) \
$(CHECK_CFLAGS)
responder_socket_access_tests_LDADD = \
$(CHECK_LIBS) \
$(TALLOC_LIBS) \
libsss_test_common.la \
libsss_util.la
endif
stress_tests_SOURCES = \
src/tests/stress-tests.c
stress_tests_LDADD = \
$(SSSD_LIBS) \
libsss_util.la \
libsss_test_common.la
krb5_child_test_SOURCES = \
src/tests/krb5_child-test.c \
src/providers/krb5/krb5_utils.c \
src/providers/krb5/krb5_child_handler.c \
src/providers/krb5/krb5_become_user.c \
src/providers/krb5/krb5_common.c \
src/util/sss_krb5.c \
src/util/find_uid.c \
src/providers/data_provider_fo.c \
src/providers/data_provider_opts.c \
src/providers/data_provider_callbacks.c \
$(SSSD_FAILOVER_OBJ)
krb5_child_test_CFLAGS = \
$(AM_CFLAGS) \
-DKRB5_CHILD_DIR=\"$(builddir)\" \
$(CHECK_CFLAGS)
krb5_child_test_LDADD = \
$(SSSD_LIBS)\
$(CARES_LIBS) \
$(KRB5_LIBS) \
$(CHECK_LIBS) \
libsss_util.la \
libsss_test_common.la
if HAVE_CMOCKA
TEST_MOCK_OBJ = \
src/tests/common.c
TEST_MOCK_RESP_OBJ = \
$(TEST_MOCK_OBJ) \
src/tests/common_tev.c \
src/tests/common_dom.c \
src/tests/cmocka/common_mock_resp.c \
src/responder/common/responder_packet.c \
src/responder/common/responder_cmd.c \
src/responder/common/negcache.c \
src/responder/common/responder_common.c
nss_srv_tests_DEPENDENCIES = \
$(ldblib_LTLIBRARIES)
nss_srv_tests_SOURCES = \
$(TEST_MOCK_RESP_OBJ) \
src/tests/cmocka/test_nss_srv.c \
src/responder/nss/nsssrv_cmd.c \
src/responder/nss/nsssrv_netgroup.c \
src/responder/nss/nsssrv_services.c \
src/responder/nss/nsssrv_mmap_cache.c
nss_srv_tests_CFLAGS = \
$(AM_CFLAGS)
nss_srv_tests_LDFLAGS = \
-Wl,-wrap,sss_ncache_check_user \
-Wl,-wrap,sss_packet_get_body \
-Wl,-wrap,sss_packet_get_cmd \
-Wl,-wrap,sss_cmd_send_empty \
-Wl,-wrap,sss_cmd_done
nss_srv_tests_LDADD = \
$(CMOCKA_LIBS) \
libsss_util.la
test_find_uid_DEPENDENCIES = \
$(ldblib_LTLIBRARIES)
test_find_uid_SOURCES = \
src/tests/cmocka/test_find_uid.c \
src/util/find_uid.c \
src/util/atomic_io.c \
src/util/strtonum.c
test_find_uid_CFLAGS = \
$(AM_CFLAGS) \
$(TALLOC_CFLAGS) \
$(DHASH_CFLAGS)
test_find_uid_LDADD = \
libsss_debug.la \
$(TALLOC_LIBS) \
$(DHASH_LIBS) \
$(CMOCKA_LIBS) \
libsss_util.la
test_io_SOURCES = \
src/tests/cmocka/test_io.c \
src/util/io.c
test_io_CFLAGS = \
$(AM_CFLAGS)
test_io_LDADD = \
$(CMOCKA_LIBS)
endif
noinst_PROGRAMS = pam_test_client
if BUILD_SUDO
noinst_PROGRAMS += sss_sudo_cli
endif
if BUILD_AUTOFS
noinst_PROGRAMS += autofs_test_client
endif
pam_test_client_SOURCES = src/sss_client/pam_test_client.c
pam_test_client_LDFLAGS = -lpam -lpam_misc
if BUILD_AUTOFS
autofs_test_client_SOURCES = \
src/sss_client/autofs/autofs_test_client.c \
src/sss_client/autofs/sss_autofs.c \
src/sss_client/common.c
autofs_test_client_CFLAGS = $(AM_CFLAGS)
autofs_test_client_LDFLAGS = -lpopt $(CLIENT_LIBS)
endif
####################
# Client Libraries #
####################
nsslib_LTLIBRARIES = libnss_sss.la
libnss_sss_la_SOURCES = \
src/sss_client/common.c \
src/sss_client/nss_passwd.c \
src/sss_client/nss_group.c \
src/sss_client/nss_netgroup.c \
src/sss_client/nss_services.c \
src/sss_client/sss_cli.h \
src/sss_client/nss_compat.h \
src/sss_client/nss_mc_common.c \
src/util/io.c \
src/util/murmurhash3.c \
src/sss_client/nss_mc_passwd.c \
src/sss_client/nss_mc_group.c \
src/sss_client/nss_mc.h
libnss_sss_la_LDFLAGS = \
$(CLIENT_LIBS) \
-module \
-version-info 2:0:0 \
-Wl,--version-script,$(srcdir)/src/sss_client/sss_nss.exports
pamlib_LTLIBRARIES = pam_sss.la
pam_sss_la_SOURCES = \
src/sss_client/pam_sss.c \
src/sss_client/common.c \
src/sss_client/sss_cli.h \
src/util/atomic_io.c \
src/sss_client/sss_pam_macros.h
pam_sss_la_LDFLAGS = \
$(CLIENT_LIBS) \
-lpam \
-module \
-avoid-version \
-Wl,--version-script,$(srcdir)/src/sss_client/sss_pam.exports
if BUILD_SUDO
libsss_sudo_la_SOURCES = \
src/sss_client/common.c \
src/sss_client/sss_cli.h \
src/sss_client/sudo/sss_sudo_response.c \
src/sss_client/sudo/sss_sudo.c \
src/sss_client/sudo/sss_sudo.h \
src/sss_client/sudo/sss_sudo_private.h
libsss_sudo_la_LDFLAGS = \
$(CLIENT_LIBS) \
-Wl,--version-script,$(srcdir)/src/sss_client/sss_sudo.exports \
-module \
-avoid-version
sudolib_LTLIBRARIES = libsss_sudo.la
include_HEADERS += \
src/sss_client/sudo/sss_sudo.h
endif
if BUILD_AUTOFS
autofslib_LTLIBRARIES = libsss_autofs.la
libsss_autofs_la_SOURCES = \
src/sss_client/common.c \
src/sss_client/sss_cli.h \
src/sss_client/autofs/sss_autofs.c \
src/sss_client/autofs/sss_autofs_private.h
libsss_autofs_la_LDFLAGS = \
$(CLIENT_LIBS) \
-module \
-avoid-version \
-Wl,--version-script,$(srcdir)/src/sss_client/autofs/sss_autofs.exports
endif
dist_noinst_DATA += \
src/sss_client/sss_nss.exports \
src/sss_client/sss_pam.exports
if BUILD_SUDO
dist_noinst_DATA += src/sss_client/sss_sudo.exports
endif
if BUILD_AUTOFS
dist_noinst_DATA += src/sss_client/autofs/sss_autofs.exports
endif
####################
# Plugin Libraries #
####################
pkglib_LTLIBRARIES += libsss_ldap_common.la
libsss_ldap_common_la_SOURCES = \
src/providers/ldap/ldap_id.c \
src/providers/ldap/ldap_id_enum.c \
src/providers/ldap/ldap_id_cleanup.c \
src/providers/ldap/ldap_id_netgroup.c \
src/providers/ldap/ldap_id_services.c \
src/providers/ldap/ldap_auth.c \
src/providers/ldap/ldap_common.c \
src/providers/ldap/sdap_access.c \
src/providers/ldap/sdap_async.c \
src/providers/ldap/sdap_async_users.c \
src/providers/ldap/sdap_async_groups.c \
src/providers/ldap/sdap_async_nested_groups.c \
src/providers/ldap/sdap_async_groups_ad.c \
src/providers/ldap/sdap_async_initgroups.c \
src/providers/ldap/sdap_async_initgroups_ad.c \
src/providers/ldap/sdap_async_connection.c \
src/providers/ldap/sdap_async_netgroups.c \
src/providers/ldap/sdap_async_services.c \
src/providers/ldap/sdap_child_helpers.c \
src/providers/ldap/sdap_fd_events.c \
src/providers/ldap/sdap_id_op.c \
src/providers/ldap/sdap_idmap.c \
src/providers/ldap/sdap_idmap.h \
src/providers/ldap/sdap_range.c \
src/providers/ldap/sdap_reinit.c \
src/providers/ldap/sdap.c
libsss_ldap_common_la_LDFLAGS = \
-avoid-version
if BUILD_SUDO
libsss_ldap_common_la_SOURCES += \
src/providers/ldap/sdap_sudo_cache.c \
src/providers/ldap/sdap_async_sudo.c \
src/providers/ldap/sdap_async_sudo_timer.c \
src/providers/ldap/sdap_async_sudo_hostinfo.c \
src/providers/ldap/sdap_sudo.c
endif
if BUILD_AUTOFS
libsss_ldap_common_la_SOURCES += \
src/providers/ldap/sdap_autofs.c \
src/providers/ldap/sdap_async_autofs.c
endif
pkglib_LTLIBRARIES += libsss_krb5_common.la
libsss_krb5_common_la_SOURCES = \
src/providers/krb5/krb5_utils.c \
src/providers/krb5/krb5_become_user.c \
src/providers/krb5/krb5_delayed_online_authentication.c \
src/providers/krb5/krb5_renew_tgt.c \
src/providers/krb5/krb5_wait_queue.c \
src/providers/krb5/krb5_common.c \
src/providers/krb5/krb5_auth.c \
src/providers/krb5/krb5_access.c \
src/providers/krb5/krb5_child_handler.c \
src/providers/krb5/krb5_init_shared.c
libsss_krb5_common_la_LDFLAGS = \
-avoid-version
libsss_ldap_la_SOURCES = \
src/util/find_uid.c \
src/providers/ldap/ldap_init.c \
src/providers/ldap/ldap_access.c \
src/providers/krb5/krb5_common.c \
src/providers/krb5/krb5_utils.c \
src/util/user_info_msg.c \
src/util/sss_ldap.c \
src/util/sss_krb5.c
libsss_ldap_la_CFLAGS = \
$(AM_CFLAGS) \
$(LDAP_CFLAGS) \
$(KRB5_CFLAGS)
libsss_ldap_la_LIBADD = \
$(OPENLDAP_LIBS) \
$(DHASH_LIBS) \
$(KRB5_LIBS) \
libsss_util.la \
libsss_ldap_common.la \
libsss_idmap.la
libsss_ldap_la_LDFLAGS = \
-avoid-version \
-module
libsss_proxy_la_SOURCES = \
src/providers/proxy/proxy_init.c \
src/providers/proxy/proxy_id.c \
src/providers/proxy/proxy_netgroup.c \
src/providers/proxy/proxy_services.c \
src/providers/proxy/proxy_auth.c
libsss_proxy_la_CFLAGS = \
$(AM_CFLAGS)
libsss_proxy_la_LIBADD = \
libsss_util.la \
$(PAM_LIBS)
libsss_proxy_la_LDFLAGS = \
-avoid-version \
-module
libsss_simple_la_SOURCES = \
src/providers/simple/simple_access_check.c \
src/providers/simple/simple_access.c
libsss_simple_la_CFLAGS = \
$(AM_CFLAGS)
libsss_simple_la_LIBADD = \
$(PAM_LIBS) \
libsss_util.la
libsss_simple_la_LDFLAGS = \
-avoid-version \
-module
libsss_krb5_la_SOURCES = \
src/providers/krb5/krb5_init.c \
src/util/find_uid.c \
src/util/sss_krb5.c
libsss_krb5_la_CFLAGS = \
$(AM_CFLAGS) \
$(DHASH_CFLAGS)
libsss_krb5_la_LIBADD = \
$(DHASH_LIBS) \
$(KEYUTILS_LIBS) \
$(KRB5_LIBS) \
libsss_util.la \
libsss_krb5_common.la
libsss_krb5_la_LDFLAGS = \
-avoid-version \
-module
libsss_ipa_la_SOURCES = \
src/providers/ipa/ipa_init.c \
src/providers/ipa/ipa_common.c \
src/providers/ipa/ipa_config.c \
src/providers/ipa/ipa_utils.c \
src/providers/ipa/ipa_id.c \
src/providers/ipa/ipa_netgroups.c \
src/providers/ipa/ipa_auth.c \
src/providers/ipa/ipa_access.c \
src/providers/ipa/ipa_dyndns.c \
src/providers/ipa/ipa_hosts.c \
src/providers/ipa/ipa_subdomains.c \
src/providers/ipa/ipa_subdomains_id.c \
src/providers/ipa/ipa_s2n_exop.c \
src/providers/ipa/ipa_hbac_hosts.c \
src/providers/ipa/ipa_hbac_private.h \
src/providers/ipa/ipa_hbac_rules.c \
src/providers/ipa/ipa_hbac_rules.h \
src/providers/ipa/ipa_hbac_services.c \
src/providers/ipa/ipa_hbac_users.c \
src/providers/ipa/ipa_hbac_common.c \
src/providers/ipa/ipa_selinux.c \
src/providers/ipa/ipa_selinux_maps.c \
src/providers/ipa/ipa_selinux_common.c \
src/providers/ipa/ipa_srv.c \
src/util/user_info_msg.c \
src/util/find_uid.c \
src/util/sss_ldap.c \
src/util/sss_krb5.c
libsss_ipa_la_CFLAGS = \
$(AM_CFLAGS) \
$(LDAP_CFLAGS) \
$(DHASH_CFLAGS) \
$(KRB5_CFLAGS)
libsss_ipa_la_LIBADD = \
$(OPENLDAP_LIBS) \
$(DHASH_LIBS) \
$(KEYUTILS_LIBS) \
$(KRB5_LIBS) \
libsss_util.la \
libsss_ldap_common.la \
libsss_krb5_common.la \
libipa_hbac.la \
libsss_idmap.la
libsss_ipa_la_LDFLAGS = \
-avoid-version \
-module
if BUILD_AUTOFS
libsss_ipa_la_SOURCES += \
src/providers/ipa/ipa_autofs.c
endif
if BUILD_SSH
libsss_ipa_la_SOURCES += src/providers/ipa/ipa_hostid.c
endif
libsss_ad_la_SOURCES = \
src/providers/ad/ad_common.c \
src/providers/ad/ad_common.h \
src/providers/ad/ad_init.c \
src/providers/ad/ad_id.c \
src/providers/ad/ad_id.h \
src/providers/ad/ad_access.c \
src/providers/ad/ad_access.h \
src/providers/ad/ad_opts.h \
src/util/find_uid.c \
src/util/user_info_msg.c \
src/util/sss_krb5.c \
src/util/sss_ldap.c
libsss_ad_la_CFLAGS = \
$(AM_CFLAGS) \
$(LDAP_CFLAGS) \
$(DHASH_CFLAGS) \
$(KRB5_CFLAGS)
libsss_ad_la_LIBADD = \
$(OPENLDAP_LIBS) \
$(DHASH_LIBS) \
$(KEYUTILS_LIBS) \
$(KRB5_LIBS) \
libsss_util.la \
libsss_ldap_common.la \
libsss_krb5_common.la \
libsss_idmap.la
libsss_ad_la_LDFLAGS = \
-avoid-version \
-module
krb5_child_SOURCES = \
src/providers/krb5/krb5_become_user.c \
src/providers/krb5/krb5_child.c \
src/providers/dp_pam_data_util.c \
src/util/user_info_msg.c \
src/util/sss_krb5.c \
src/util/atomic_io.c \
src/util/authtok.c \
src/util/util.c \
src/util/signal.c \
src/sss_client/common.c
krb5_child_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS) \
$(KRB5_CFLAGS)
krb5_child_LDADD = \
libsss_debug.la \
libsss_child.la \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(DHASH_LIBS) \
$(KRB5_LIBS) \
$(CLIENT_LIBS)
ldap_child_SOURCES = \
src/providers/ldap/ldap_child.c \
src/util/sss_krb5.c \
src/util/atomic_io.c \
src/util/authtok.c \
src/util/util.c \
src/util/signal.c
ldap_child_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS) \
$(KRB5_CFLAGS)
ldap_child_LDADD = \
libsss_debug.la \
libsss_child.la \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(OPENLDAP_LIBS) \
$(DHASH_LIBS) \
$(KRB5_LIBS)
proxy_child_SOURCES = \
src/providers/proxy/proxy_child.c
proxy_child_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS)
proxy_child_LDADD = \
$(PAM_LIBS) \
$(SSSD_LIBS) \
libsss_util.la
memberof_la_SOURCES = \
src/ldb_modules/memberof.c \
src/util/util.c
memberof_la_CFLAGS = \
$(AM_CFLAGS)
memberof_la_LIBADD = \
libsss_debug.la \
$(LDB_LIBS) \
$(DHASH_LIBS)
memberof_la_LDFLAGS = \
-avoid-version \
-module
if BUILD_KRB5_LOCATOR_PLUGIN
sssd_krb5_locator_plugin_la_SOURCES = \
src/krb5_plugin/sssd_krb5_locator_plugin.c \
src/util/atomic_io.c
sssd_krb5_locator_plugin_la_CFLAGS = \
$(AM_CFLAGS) \
$(KRB5_CFLAGS)
sssd_krb5_locator_plugin_la_LDFLAGS = \
-avoid-version \
-module
endif
sssd_pac_plugin_la_SOURCES = \
src/sss_client/sssd_pac.c \
src/sss_client/common.c \
src/sss_client/sss_cli.h \
src/sss_client/krb5_authdata_int.h
sssd_pac_plugin_la_CFLAGS = \
$(AM_CFLAGS) \
$(KRB5_CFLAGS)
sssd_pac_plugin_la_LDFLAGS = \
$(CLIENT_LIBS) \
-lkrb5 \
-avoid-version \
-module
if BUILD_PYTHON_BINDINGS
pysss_la_SOURCES = \
$(SSSD_TOOLS_OBJ) \
src/python/pysss.c
pysss_la_CFLAGS = \
$(AM_CFLAGS) \
$(PYTHON_CFLAGS)
pysss_la_LIBADD = \
$(PYTHON_BINDINGS_LIBS) \
$(PYTHON_LIBS) \
libsss_util.la
pysss_la_LDFLAGS = \
-avoid-version \
-module
pyhbac_la_SOURCES = \
src/python/pyhbac.c \
src/util/sss_python.c
pyhbac_la_CFLAGS = \
$(AM_CFLAGS) \
$(PYTHON_CFLAGS)
pyhbac_la_LIBADD = \
$(PYTHON_LIBS) \
libipa_hbac.la
pyhbac_la_LDFLAGS = \
-avoid-version \
-module
pysss_murmur_la_SOURCES = \
src/python/pysss_murmur.c \
src/util/murmurhash3.c
pysss_murmur_la_CFLAGS = \
$(AM_CFLAGS) \
$(PYTHON_CFLAGS)
pysss_murmur_la_LIBADD = \
$(PYTHON_LIBS)
pysss_murmur_la_LDFLAGS = \
-avoid-version \
-module
endif
################
# TRANSLATIONS #
################
update-po:
if HAVE_MANPAGES
$(MAKE) -C src/man update-po
endif
$(MAKE) -C po update-po
#######################
# Installation Extras #
#######################
dist_init_SCRIPTS =
dist_systemdunit_DATA =
if HAVE_SYSTEMD_UNIT
dist_systemdunit_DATA += \
src/sysv/systemd/sssd.service
else
if HAVE_SUSE
dist_init_SCRIPTS += \
src/sysv/SUSE/sssd
else
if HAVE_GENTOO
dist_init_SCRIPTS += \
src/sysv/gentoo/sssd
else
dist_init_SCRIPTS += \
src/sysv/sssd
endif
endif
endif
dist_sssddata_DATA = \
src/config/etc/sssd.api.conf
dist_sssdapiplugin_DATA = \
src/config/etc/sssd.api.d/sssd-ipa.conf \
src/config/etc/sssd.api.d/sssd-ad.conf \
src/config/etc/sssd.api.d/sssd-krb5.conf \
src/config/etc/sssd.api.d/sssd-ldap.conf \
src/config/etc/sssd.api.d/sssd-local.conf \
src/config/etc/sssd.api.d/sssd-proxy.conf \
src/config/etc/sssd.api.d/sssd-simple.conf
installsssddirs::
mkdir -p \
$(DESTDIR)$(includedir) \
$(DESTDIR)$(libdir) \
$(DESTDIR)$(bindir) \
$(DESTDIR)$(sbindir) \
$(DESTDIR)$(mandir) \
$(DESTDIR)$(pluginpath) \
$(DESTDIR)$(libdir)/ldb \
$(DESTDIR)$(dbusintrospectdir) \
$(DESTDIR)$(pipepath)/private \
$(DESTDIR)$(sssdlibdir) \
$(DESTDIR)$(pkglibdir) \
$(DESTDIR)$(sssdconfdir) \
$(DESTDIR)$(sssddatadir) \
$(DESTDIR)$(dbpath) \
$(DESTDIR)$(mcpath) \
$(DESTDIR)$(pidpath) \
$(DESTDIR)$(logpath) \
$(DESTDIR)$(pubconfpath) \
$(DESTDIR)$(pubconfpath)/krb5.include.d \
$(DESTDIR)$(sudolibdir) \
$(DESTDIR)$(autofslibdir)
if HAVE_DOXYGEN
docs:
$(DOXYGEN) src/doxy.config
$(DOXYGEN) src/providers/ipa/ipa_hbac.doxy
$(DOXYGEN) src/lib/idmap/sss_idmap.doxy
if BUILD_SUDO
$(DOXYGEN) src/sss_client/sudo/sss_sudo.doxy
endif BUILD_SUDO
else !HAVE_DOXYGEN
docs:
@echo "Doxygen not installed, cannot generate documentation"
@exit 1
endif !HAVE_DOXYGEN
if BUILD_PYTHON_BINDINGS
$(abs_builddir)/src/config/SSSDConfig/ipachangeconf.py:
-cp $(srcdir)/src/config/SSSDConfig/ipachangeconf.py $(builddir)/src/config/SSSDConfig/
$(abs_builddir)/src/config/SSSDConfig/sssd_upgrade_config.py:
-cp $(srcdir)/src/config/SSSDConfig/sssd_upgrade_config.py $(builddir)/src/config/SSSDConfig/
SSSDCONFIG_MODULES = \
$(abs_builddir)/src/config/SSSDConfig/ipachangeconf.py \
$(abs_builddir)/src/config/SSSDConfig/sssd_upgrade_config.py
else
SSSSCONFIG_MODULES =
endif
all-local: ldb_mod_test_dir $(SSSDCONFIG_MODULES)
if BUILD_PYTHON_BINDINGS
cd $(builddir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config
endif
install-exec-hook: installsssddirs
if BUILD_PYTHON_BINDINGS
if [ "$(DESTDIR)" = "" ]; then \
cd $(builddir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --record=$(abs_builddir)/src/config/.files; \
else \
cd $(builddir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --root=$(DESTDIR) --record=$(abs_builddir)/src/config/.files; \
fi
endif
for doc in $(SSSD_DOCS); do \
mkdir -p $$doc $(DESTDIR)/$(docdir); \
cp -a $$doc $(DESTDIR)/$(docdir)/; \
done;
if HAVE_SYSTEMD_UNIT
mkdir -p $(DESTDIR)$(systemdunitdir)
else
mkdir -p $(DESTDIR)$(initdir)
endif
install-data-hook:
rm $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2 \
$(DESTDIR)/$(nsslibdir)/libnss_sss.so
mv $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2.0.0 $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2
if [ ! $(krb5rcachedir) = "__LIBKRB5_DEFAULTS__" ]; then \
mkdir -p $(DESTDIR)/$(krb5rcachedir) ; \
fi
uninstall-hook:
if [ -f $(abs_builddir)/src/config/.files ]; then \
cat $(abs_builddir)/src/config/.files | xargs -iq rm -f $(DESTDIR)/q; \
rm $(abs_builddir)/src/config/.files ; \
fi
for doc in $(SSSD_DOCS); do \
rm -Rf $(DESTDIR)/$(docdir)/$$doc; \
done;
clean-local:
if BUILD_PYTHON_BINDINGS
if [ ! $(srcdir)/src/config/SSSDConfig/ipachangeconf.py -ef $(builddir)/src/config/SSSDConfig/ipachangeconf.py ]; then \
rm -f $(builddir)/src/config/SSSDConfig/ipachangeconf.py ; \
fi
if [ ! $(srcdir)/src/config/SSSDConfig/ipachangeconf.py -ef $(builddir)/src/config/SSSDConfig/ipachangeconf.py ]; then \
rm -f $(builddir)/src/config/SSSDConfig/sssd_upgrade_config.py ; \
fi
cd $(builddir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config clean --all
endif
for doc in $(SSSD_DOCS); do \
rm -Rf $$doc; \
done;
rm -Rf ldb_mod_test_dir
CLEANFILES = *.X */*.X */*/*.X
tests: all $(check_PROGRAMS)
# RPM-related tasks
RPMBUILD ?= $(PWD)/rpmbuild
dist_noinst_DATA += \
m4 \
contrib/sssd.spec.in \
contrib/sssd-1.9-man-change-default-ccache.patch \
BUILD.txt \
COPYING
rpmroot:
mkdir -p $(RPMBUILD)/BUILD
mkdir -p $(RPMBUILD)/RPMS
mkdir -p $(RPMBUILD)/SOURCES
mkdir -p $(RPMBUILD)/SPECS
mkdir -p $(RPMBUILD)/SRPMS
rpmbrprep: dist-gzip rpmroot
cp $(builddir)/contrib/sssd.spec $(RPMBUILD)/SPECS
cp $(distdir).tar.gz $(RPMBUILD)/SOURCES
cp $(srcdir)/contrib/*.patch $(RPMBUILD)/SOURCES
rpms: rpmbrprep
cd $(RPMBUILD); \
rpmbuild --define "_topdir $(RPMBUILD)" -ba SPECS/sssd.spec
if GIT_CHECKOUT
prerelease-rpms:
cp $(srcdir)/version.m4 $(srcdir)/version.m4.orig
sed -e "s/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.`date +%Y%m%d.%H%M`.git`git log -1 --pretty=format:%h`\])/" < $(srcdir)/version.m4.orig > $(srcdir)/version.m4
$(MAKE) rpms
mv $(srcdir)/version.m4.orig $(srcdir)/version.m4
endif
# make srpms will use the old digest algorithm to be compatible
# with RHEL5
srpm: rpmbrprep
cd $(RPMBUILD); \
rpmbuild --define "_topdir $(RPMBUILD)" \
--define _source_filedigest_algorithm=1 \
-bs SPECS/sssd.spec
if GIT_CHECKOUT
prerelease-srpm:
cp $(srcdir)/version.m4 $(srcdir)/version.m4.orig
sed -e "s/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])/m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.`date +%Y%m%d.%H%M`.git`git log -1 --pretty=format:%h`\])/" < $(srcdir)/version.m4.orig > $(srcdir)/version.m4
$(MAKE) srpm
mv $(srcdir)/version.m4.orig $(srcdir)/version.m4
endif