"Fossies" - the Fresh Open Source Software Archive

Member "sssd-2.2.3/Makefile.am" (30 Nov 2019, 149143 Bytes) of package /linux/misc/sssd-2.2.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 2.2.2_vs_2.2.3.

    1 extra_distcheck_flags =
    2 if HAVE_DEVSHM
    3     extra_distcheck_flags += --with-test-dir=/dev/shm
    4 endif
    5 
    6 if WITH_JOURNALD
    7     extra_distcheck_flags += --with-syslog=journald
    8 endif
    9 
   10 DISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb \
   11                             --disable-dbus-tests \
   12                             --enable-all-experimental-features \
   13                             $(extra_distcheck_flags) \
   14                             $(AUX_DISTCHECK_CONFIGURE_FLAGS)
   15 CLEANFILES = $(NULL)
   16 BUILT_SOURCES = $(NULL)
   17 
   18 SUBDIRS = po
   19 
   20 if HAVE_MANPAGES
   21 SUBDIRS += src/man
   22 endif
   23 
   24 SUBDIRS += . src/tests/cwrap src/tests/intg src/tests/test_CA \
   25              src/tests/test_ECC_CA
   26 
   27 # Some old versions of automake don't define builddir
   28 builddir ?= .
   29 
   30 DOXYGEN = @DOXYGEN@
   31 
   32 DISTSETUPOPTS =
   33 if HAVE_DEBIAN
   34 DISTSETUPOPTS += --install-layout=deb
   35 endif
   36 
   37 sssdlibexecdir = $(libexecdir)/sssd
   38 sssdlibdir = $(libdir)/sssd
   39 sssddefaultconfdir = $(sssdlibdir)/conf
   40 ldblibdir = @ldblibdir@
   41 if BUILD_KRB5_LOCATOR_PLUGIN
   42 krb5plugindir = @krb5pluginpath@
   43 endif
   44 if BUILD_KRB5_LOCALAUTH_PLUGIN
   45 krb5localauth_plugindir = @appmodpath@
   46 endif
   47 if BUILD_PAC_RESPONDER
   48 krb5authdata_plugindir = @krb5authdatapluginpath@
   49 endif
   50 if BUILD_CIFS_IDMAP_PLUGIN
   51 cifsplugindir = @cifspluginpath@
   52 endif
   53 if BUILD_SAMBA
   54 winbindplugindir = @winbindpluginpath@
   55 endif
   56 if BUILD_LIBWBCLIENT
   57 libwbclientdir = @appmodpath@
   58 endif
   59 sssdconfdir = $(sysconfdir)/sssd
   60 sssddatadir = $(datadir)/sssd
   61 sssdapiplugindir = $(sssddatadir)/sssd.api.d
   62 sssdtapscriptdir = $(sssddatadir)/systemtap
   63 dbuspolicydir = $(sysconfdir)/dbus-1/system.d
   64 dbusservicedir = $(datadir)/dbus-1/system-services
   65 sss_statedir = $(localstatedir)/lib/sss
   66 runstatedir = @runstatedir@
   67 localedir = @localedir@
   68 nsslibdir = @nsslibdir@
   69 pamlibdir = @pammoddir@
   70 autofslibdir = @appmodpath@
   71 nfslibdir = @nfsidmaplibdir@
   72 
   73 dbpath = @dbpath@
   74 pluginpath = @pluginpath@
   75 pidpath = @pidpath@
   76 pipepath = @pipepath@
   77 mcpath = @mcpath@
   78 initdir = @initdir@
   79 systemdunitdir = @systemdunitdir@
   80 systemdconfdir = @systemdconfdir@
   81 logpath = @logpath@
   82 pubconfpath = @pubconfpath@
   83 gpocachepath = @gpocachepath@
   84 keytabdir = $(sss_statedir)/keytabs
   85 pkgconfigdir = $(libdir)/pkgconfig
   86 krb5rcachedir = @krb5rcachedir@
   87 sudolibdir = @sudolibpath@
   88 polkitdir = @polkitdir@
   89 pamconfdir = $(sysconfdir)/pam.d
   90 systemtap_tapdir = @tapset_dir@
   91 sssdkcmdatadir = $(datadir)/sssd-kcm
   92 deskprofilepath = $(sss_statedir)/deskprofile
   93 
   94 if HAVE_SYSTEMD_UNIT
   95 ifp_exec_cmd = $(sssdlibexecdir)/sssd_ifp --uid 0 --gid 0 --dbus-activated
   96 ifp_systemdservice = SystemdService=sssd-ifp.service
   97 ifp_restart = Restart=on-failure
   98 else
   99 ifp_exec_cmd = $(sssdlibexecdir)/sss_signal
  100 ifp_systemdservice =
  101 ifp_restart =
  102 endif
  103 
  104 secdbpath = @secdbpath@
  105 
  106 UNICODE_LIBS=@UNICODE_LIBS@
  107 
  108 MKDIR_P = @MKDIR_P@
  109 INSTALL = @INSTALL@
  110 
  111 SSSD_USER = @SSSD_USER@
  112 
  113 
  114 AM_CFLAGS =
  115 if WANT_AUX_INFO
  116     AM_CFLAGS += -aux-info $@.X
  117 endif
  118 if HAVE_GCC
  119     AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
  120                  -Wcast-qual -Wcast-align -Wwrite-strings -Wundef \
  121                  -Werror-implicit-function-declaration -Winit-self \
  122                  -Wmissing-include-dirs \
  123                  -fno-strict-aliasing \
  124                  -std=gnu99
  125 endif
  126 
  127 pkgconfig_DATA =
  128 
  129 ACLOCAL_AMFLAGS = -I m4 -I .
  130 
  131 if BUILD_SSH
  132 bin_PROGRAMS = \
  133     sss_ssh_authorizedkeys \
  134     sss_ssh_knownhostsproxy
  135 endif
  136 
  137 sbin_PROGRAMS = \
  138     sssd \
  139     sss_cache \
  140     sss_override \
  141     sss_seed \
  142     sssctl \
  143     $(NULL)
  144 
  145 if BUILD_LOCAL_PROVIDER
  146 sbin_PROGRAMS += \
  147     sss_useradd \
  148     sss_userdel \
  149     sss_usermod \
  150     sss_groupadd \
  151     sss_groupdel \
  152     sss_groupmod \
  153     sss_groupshow \
  154     $(NULL)
  155 endif
  156 
  157 sssdlibexec_PROGRAMS = \
  158     sssd_nss \
  159     sssd_pam \
  160     sssd_be \
  161     krb5_child \
  162     ldap_child \
  163     proxy_child \
  164     sss_signal \
  165     $(NULL)
  166 if BUILD_SUDO
  167 sssdlibexec_PROGRAMS += sssd_sudo
  168 endif
  169 if BUILD_AUTOFS
  170 sssdlibexec_PROGRAMS += sssd_autofs
  171 endif
  172 if BUILD_SSH
  173 sssdlibexec_PROGRAMS += sssd_ssh
  174 endif
  175 if BUILD_IFP
  176 sssdlibexec_PROGRAMS += sssd_ifp
  177 endif
  178 if BUILD_SAMBA
  179 sssdlibexec_PROGRAMS += gpo_child
  180 endif
  181 if BUILD_SEMANAGE
  182 sssdlibexec_PROGRAMS += selinux_child
  183 endif
  184 sssdlibexec_PROGRAMS += p11_child
  185 if SSSD_USER
  186 if HAVE_POLKIT_RULES_D
  187 polkit_rulesdir = $(polkitdir)
  188 dist_polkit_rules_DATA = contrib/sssd-pcsc.rules
  189 endif
  190 endif
  191 if BUILD_SECRETS
  192 sssdlibexec_PROGRAMS += sssd_secrets
  193 endif
  194 if BUILD_KCM
  195 sssdlibexec_PROGRAMS += sssd_kcm
  196 dist_sssdkcmdata_DATA = contrib/kcm_default_ccache
  197 endif
  198 
  199 
  200 if BUILD_PAC_RESPONDER
  201     sssdlibexec_PROGRAMS += sssd_pac
  202 endif
  203 if HAVE_SYSTEMD_UNIT
  204 sssdlibexec_PROGRAMS += sssd_check_socket_activated_responders
  205 endif
  206 
  207 if HAVE_CHECK
  208     non_interactive_check_based_tests = \
  209         dlopen-tests \
  210         sysdb-tests \
  211         strtonum-tests \
  212         resolv-tests \
  213         krb5-utils-tests \
  214         check_and_open-tests \
  215         files-tests \
  216         refcount-tests \
  217         fail_over-tests \
  218         find_uid-tests \
  219         auth-tests \
  220         ipa_ldap_opt-tests \
  221         ad_ldap_opt-tests \
  222         crypto-tests \
  223         util-tests \
  224         debug-tests \
  225         ipa_hbac-tests \
  226         sss_idmap-tests \
  227         responder_socket_access-tests \
  228         safe-format-tests
  229 
  230 if BUILD_SSH
  231     non_interactive_check_based_tests += sysdb_ssh-tests
  232 endif
  233 
  234 endif # HAVE_CHECK
  235 
  236 if HAVE_CMOCKA
  237     non_interactive_cmocka_based_tests = \
  238         nss-srv-tests \
  239         test-find-uid \
  240         test-io \
  241         test-negcache \
  242         test-authtok \
  243         test_prompt_config \
  244         sss_nss_idmap-tests \
  245         deskprofile_utils-tests \
  246         dyndns-tests \
  247         domain_resolution_order-tests \
  248         fqnames-tests \
  249         nestedgroups-tests \
  250         test_sss_idmap \
  251         test_ipa_idmap \
  252         test_utils \
  253         dp_opt_tests \
  254         responder-get-domains-tests \
  255         config_check-tests \
  256         sss_sifp-tests \
  257         test_search_bases \
  258         test_ldap_auth \
  259         test_sdap_access \
  260         test_sdap_certmap \
  261         sdap-tests \
  262         test_sysdb_ts_cache \
  263         test_sysdb_views \
  264         test_sysdb_subdomains \
  265         test_sysdb_certmap \
  266         test_sysdb_sudo \
  267         test_sysdb_utils \
  268         test_sysdb_domain_resolution_order \
  269         test_wbc_calls \
  270         test_be_ptask \
  271         test_copy_ccache \
  272         test_copy_keytab \
  273         test_child_common \
  274         responder_cache_req-tests \
  275         test_sbus_message \
  276         test_sbus_opath \
  277         test_fo_srv \
  278         pam-srv-tests \
  279         ssh-srv-tests \
  280         test_ipa_subdom_util \
  281         test_tools_colondb \
  282         test_krb5_wait_queue \
  283         test_cert_utils \
  284         test_ldap_id_cleanup \
  285         test_data_provider_be \
  286         test_dp_request \
  287         test_dp_builtin \
  288         test_ipa_dn \
  289         simple-access-tests \
  290         krb5_common_test \
  291         test_iobuf \
  292         sss_certmap_test \
  293         test_sssd_krb5_locator_plugin \
  294         $(NULL)
  295 
  296 
  297 if HAVE_LIBRESOLV
  298 non_interactive_cmocka_based_tests += test_resolv_fake
  299 endif   # HAVE_LIBRESOLV
  300 
  301 if BUILD_IFP
  302 non_interactive_cmocka_based_tests += ifp_tests
  303 endif   # BUILD_IFP
  304 
  305 if HAVE_INOTIFY
  306 non_interactive_cmocka_based_tests += test_inotify
  307 endif   # HAVE_INOTIFY
  308 
  309 if BUILD_KCM
  310 non_interactive_cmocka_based_tests += \
  311 	test_kcm_json \
  312 	test_kcm_queue \
  313         $(NULL)
  314 endif   # BUILD_KCM
  315 
  316 if BUILD_SAMBA
  317 non_interactive_cmocka_based_tests += \
  318     ad_access_filter_tests \
  319     ad_gpo_tests \
  320     ad_common_tests \
  321     test_sdap_initgr \
  322     test_ad_subdom \
  323     test_ipa_subdom_server \
  324     $(NULL)
  325 endif
  326 
  327 if BUILD_KRB5_LOCALAUTH_PLUGIN
  328 non_interactive_cmocka_based_tests += test_sssd_krb5_localauth_plugin
  329 endif # BUILD_KRB5_LOCALAUTH_PLUGIN
  330 
  331 endif   # HAVE_CMOCKA
  332 
  333 check_PROGRAMS = \
  334     stress-tests \
  335     krb5-child-test \
  336     test_ssh_client \
  337     $(non_interactive_cmocka_based_tests) \
  338     $(non_interactive_check_based_tests)
  339 
  340 if HAVE_CMOCKA
  341 check_PROGRAMS += dummy-child
  342 endif # HAVE_CMOCKA
  343 
  344 PYTHON_TESTS =
  345 
  346 if BUILD_PYTHON2_BINDINGS
  347 PYTHON_TESTS += src/config/SSSDConfigTest.py2.sh \
  348                 src/tests/pyhbac-test.py2.sh \
  349                 src/tests/pysss-test.py2.sh \
  350                 src/tests/pysss_murmur-test.py2.sh \
  351                 $(NULL)
  352 endif
  353 if BUILD_PYTHON3_BINDINGS
  354 PYTHON_TESTS += src/config/SSSDConfigTest.py3.sh \
  355                 src/tests/pyhbac-test.py3.sh \
  356                 src/tests/pysss-test.py3.sh \
  357                 src/tests/pysss_murmur-test.py3.sh \
  358                 $(NULL)
  359 endif
  360 
  361 TEST_EXTENSIONS = .sh
  362 TESTS = \
  363     $(PYTHON_TESTS) \
  364     $(non_interactive_cmocka_based_tests) \
  365     $(non_interactive_check_based_tests) \
  366     src/tests/whitespace_test \
  367     src/tests/double_semicolon_test \
  368     $(NULL)
  369 
  370 sssdlib_LTLIBRARIES = \
  371     libsss_ldap.la \
  372     libsss_krb5.la \
  373     libsss_proxy.la \
  374     libsss_simple.la \
  375     $(NULL)
  376 
  377 if BUILD_SAMBA
  378 sssdlib_LTLIBRARIES += \
  379     libsss_ipa.la \
  380     libsss_ad.la
  381 endif
  382 
  383 if HAVE_INOTIFY
  384 sssdlib_LTLIBRARIES += \
  385     libsss_files.la \
  386     $(NULL)
  387 endif # HAVE_INOTIFY
  388 
  389 ldblib_LTLIBRARIES = \
  390     memberof.la
  391 
  392 if BUILD_KRB5_LOCATOR_PLUGIN
  393 krb5plugin_LTLIBRARIES = \
  394     sssd_krb5_locator_plugin.la
  395 endif
  396 
  397 if BUILD_KRB5_LOCALAUTH_PLUGIN
  398 krb5localauth_plugin_LTLIBRARIES = \
  399     sssd_krb5_localauth_plugin.la
  400 endif
  401 
  402 if BUILD_PAC_RESPONDER
  403 krb5authdata_plugin_LTLIBRARIES = \
  404     sssd_pac_plugin.la
  405 endif
  406 
  407 if BUILD_CIFS_IDMAP_PLUGIN
  408 cifsplugin_LTLIBRARIES = \
  409     cifs_idmap_sss.la
  410 endif
  411 
  412 if BUILD_SAMBA
  413 winbindplugin_LTLIBRARIES = \
  414     winbind_idmap_sss.la \
  415     $(NULL)
  416 endif
  417 
  418 noinst_LTLIBRARIES =
  419 
  420 pkglib_LTLIBRARIES =
  421 
  422 if BUILD_PYTHON2_BINDINGS
  423 py2exec_LTLIBRARIES = \
  424     _py2sss.la \
  425     _py2hbac.la \
  426     _py2sss_murmur.la \
  427     _py2sss_nss_idmap.la \
  428     $(NULL)
  429 endif
  430 
  431 if BUILD_PYTHON3_BINDINGS
  432 py3exec_LTLIBRARIES = \
  433     _py3sss.la \
  434     _py3hbac.la \
  435     _py3sss_murmur.la \
  436     _py3sss_nss_idmap.la \
  437     $(NULL)
  438 endif
  439 
  440 sbin_SCRIPTS = \
  441 	src/tools/wrappers/sss_debuglevel \
  442 	$(NULL)
  443 
  444 dist_noinst_SCRIPTS = \
  445     $(EXTRA_SCRIPTS) \
  446     src/config/setup.py \
  447     src/config/SSSDConfig/ipachangeconf.py \
  448     src/config/SSSDConfig/__init__.py \
  449     src/config/SSSDConfigTest.py \
  450     src/config/SSSDConfigTest.py2.sh \
  451     src/config/SSSDConfigTest.py3.sh \
  452     contrib/fedora/bashrc_sssd \
  453     contrib/fedora/make_srpm.sh \
  454     contrib/ci/clean \
  455     contrib/ci/rpm-spec-builddeps \
  456     contrib/ci/run \
  457     contrib/ci/valgrind-condense \
  458     src/tests/pyhbac-test.py \
  459     src/tests/pyhbac-test.py2.sh \
  460     src/tests/pyhbac-test.py3.sh \
  461     src/tests/pysss-test.py \
  462     src/tests/pysss-test.py2.sh \
  463     src/tests/pysss-test.py3.sh \
  464     src/tests/pysss_murmur-test.py \
  465     src/tests/pysss_murmur-test.py2.sh \
  466     src/tests/pysss_murmur-test.py3.sh \
  467     src/tests/python-test.py \
  468     src/tests/whitespace_test \
  469     src/tests/double_semicolon_test \
  470     src/tests/krb5_proxy_check_test_data.conf \
  471     $(NULL)
  472 
  473 dist_noinst_DATA = \
  474     src/config/testconfigs/sssd-valid.conf \
  475     src/config/testconfigs/noparse.api.conf \
  476     src/config/testconfigs/sssd-noversion.conf \
  477     src/config/testconfigs/sssd-badversion.conf \
  478     src/config/testconfigs/sssd-invalid.conf \
  479     src/config/testconfigs/sssd-invalid-badbool.conf \
  480     src/config/testconfigs/sssd-nonexisting-services-domains.conf \
  481     src/config/testconfigs/sssd-test-parse.conf \
  482     src/config/etc/sssd.api.d/crash_test_dummy \
  483     contrib/ci/README.md \
  484     contrib/ci/configure.sh \
  485     contrib/ci/deps.sh \
  486     contrib/ci/distro.sh \
  487     contrib/ci/misc.sh \
  488     contrib/ci/sssd.supp \
  489     $(SYSTEMTAP_PROBES) \
  490     $(NULL)
  491 
  492 ###############################
  493 # Global compilation settings #
  494 ###############################
  495 
  496 AM_CPPFLAGS = \
  497     -Wall \
  498     -I.. \
  499     -I$(srcdir)/src/sss_client \
  500     -I$(srcdir)/src \
  501     -I. \
  502     $(POPT_CFLAGS) \
  503     $(TALLOC_CFLAGS) \
  504     $(TDB_CFLAGS) \
  505     $(TEVENT_CFLAGS) \
  506     $(LDB_CFLAGS) \
  507     $(DBUS_CFLAGS) \
  508     $(PCRE_CFLAGS) \
  509     $(INI_CONFIG_CFLAGS) \
  510     $(DHASH_CFLAGS) \
  511     $(LIBNL_CFLAGS) \
  512     $(OPENLDAP_CFLAGS) \
  513     $(GLIB2_CFLAGS) \
  514     $(JOURNALD_CFLAGS) \
  515     -DLIBDIR=\"$(libdir)\" \
  516     -DVARDIR=\"$(localstatedir)\" \
  517     -DSSS_STATEDIR=\"$(sss_statedir)\" \
  518     -DSYSCONFDIR=\"$(sysconfdir)\" \
  519     -DSHLIBEXT=\"$(SHLIBEXT)\" \
  520     -DSSSDDATADIR=\"$(sssddatadir)\" \
  521     -DSSSD_LIBEXEC_PATH=\"$(sssdlibexecdir)\" \
  522     -DSSSD_CONF_DIR=\"$(sssdconfdir)\" \
  523     -DSSS_NSS_MCACHE_DIR=\"$(mcpath)\" \
  524     -DSSS_NSS_SOCKET_NAME=\"$(pipepath)/nss\" \
  525     -DSSS_PAM_SOCKET_NAME=\"$(pipepath)/pam\" \
  526     -DSSS_PAC_SOCKET_NAME=\"$(pipepath)/pac\" \
  527     -DSSS_PAM_PRIV_SOCKET_NAME=\"$(pipepath)/private/pam\" \
  528     -DSSS_SEC_SOCKET_NAME=\"$(runstatedir)/secrets.socket\" \
  529     -DSSS_SUDO_SOCKET_NAME=\"$(pipepath)/sudo\" \
  530     -DSSS_AUTOFS_SOCKET_NAME=\"$(pipepath)/autofs\" \
  531     -DSSS_SSH_SOCKET_NAME=\"$(pipepath)/ssh\" \
  532     -DLOCALEDIR=\"$(localedir)\" \
  533     -DBASE_FILE_STEM=\"$(*F)\" \
  534     $(NULL)
  535 
  536 EXTRA_DIST =
  537 
  538 SSSD_CACHE_REQ_OBJ = \
  539 	src/responder/common/cache_req/cache_req.c \
  540 	src/responder/common/cache_req/cache_req_result.c \
  541 	src/responder/common/cache_req/cache_req_search.c \
  542 	src/responder/common/cache_req/cache_req_data.c \
  543 	src/responder/common/cache_req/cache_req_domain.c \
  544 	src/responder/common/cache_req/cache_req_sr_overlay.c \
  545 	src/responder/common/cache_req/plugins/cache_req_common.c \
  546 	src/responder/common/cache_req/plugins/cache_req_enum_users.c \
  547 	src/responder/common/cache_req/plugins/cache_req_enum_groups.c \
  548 	src/responder/common/cache_req/plugins/cache_req_enum_svc.c \
  549 	src/responder/common/cache_req/plugins/cache_req_user_by_name.c \
  550 	src/responder/common/cache_req/plugins/cache_req_user_by_upn.c \
  551 	src/responder/common/cache_req/plugins/cache_req_user_by_id.c \
  552 	src/responder/common/cache_req/plugins/cache_req_user_by_filter.c \
  553 	src/responder/common/cache_req/plugins/cache_req_user_by_cert.c \
  554 	src/responder/common/cache_req/plugins/cache_req_group_by_name.c \
  555 	src/responder/common/cache_req/plugins/cache_req_group_by_id.c \
  556 	src/responder/common/cache_req/plugins/cache_req_group_by_filter.c \
  557 	src/responder/common/cache_req/plugins/cache_req_initgroups_by_name.c \
  558 	src/responder/common/cache_req/plugins/cache_req_initgroups_by_upn.c \
  559 	src/responder/common/cache_req/plugins/cache_req_object_by_sid.c \
  560 	src/responder/common/cache_req/plugins/cache_req_object_by_name.c \
  561 	src/responder/common/cache_req/plugins/cache_req_object_by_id.c \
  562 	src/responder/common/cache_req/plugins/cache_req_svc_by_name.c \
  563 	src/responder/common/cache_req/plugins/cache_req_svc_by_port.c \
  564 	src/responder/common/cache_req/plugins/cache_req_netgroup_by_name.c \
  565 	src/responder/common/cache_req/plugins/cache_req_host_by_name.c \
  566 	src/responder/common/cache_req/plugins/cache_req_autofs_map_entries.c \
  567 	src/responder/common/cache_req/plugins/cache_req_autofs_map_by_name.c \
  568 	src/responder/common/cache_req/plugins/cache_req_autofs_entry_by_name.c \
  569 	$(NULL)
  570 
  571 SSSD_RESPONDER_IFACE_OBJ = \
  572     src/responder/common/responder_iface.c \
  573     $(NULL)
  574 
  575 SSSD_RESPONDER_OBJ = \
  576     src/responder/common/negcache_files.c \
  577     src/responder/common/negcache.c \
  578     src/util/nss_dl_load.c \
  579     src/responder/common/responder_cmd.c \
  580     src/responder/common/responder_common.c \
  581     src/responder/common/responder_dp.c \
  582     src/responder/common/responder_packet.c \
  583     src/responder/common/responder_get_domains.c \
  584     src/responder/common/responder_utils.c \
  585     src/providers/data_provider_req.c \
  586     src/util/session_recording.c \
  587     $(SSSD_RESPONDER_IFACE_OBJ) \
  588     $(SSSD_CACHE_REQ_OBJ) \
  589     $(NULL)
  590 
  591 SSSD_TOOLS_OBJ = \
  592     src/tools/sss_sync_ops.c \
  593     src/tools/tools_util.c \
  594     src/tools/common/sss_tools.c \
  595     src/tools/common/sss_process.c \
  596     src/confdb/confdb_setup.c \
  597     src/util/nscd.c \
  598     $(NULL)
  599 
  600 SSSD_LCL_TOOLS_OBJ = \
  601     src/sss_client/common.c \
  602     src/tools/tools_mc_util.c \
  603     $(SSSD_TOOLS_OBJ)
  604 
  605 SSSD_RESOLV_OBJ = \
  606     src/resolv/async_resolv.c \
  607     src/resolv/async_resolv_utils.c
  608 
  609 SSSD_FAILOVER_OBJ = \
  610     src/providers/fail_over.c \
  611     src/providers/fail_over_srv.c \
  612     $(SSSD_RESOLV_OBJ)
  613 
  614 SSSD_LIBS = \
  615     $(TALLOC_LIBS) \
  616     $(TEVENT_LIBS) \
  617     $(POPT_LIBS) \
  618     $(LDB_LIBS) \
  619     $(DBUS_LIBS) \
  620     $(DHASH_LIBS) \
  621     $(SELINUX_LIBS) \
  622     $(TDB_LIBS)
  623 
  624 PYTHON_BINDINGS_LIBS = \
  625     $(TALLOC_LIBS) \
  626     $(POPT_LIBS) \
  627     $(LDB_LIBS) \
  628     $(NULL)
  629 
  630 TOOLS_LIBS = \
  631     $(LTLIBINTL) \
  632     $(TALLOC_LIBS) \
  633     $(TEVENT_LIBS) \
  634     $(POPT_LIBS) \
  635     $(LDB_LIBS) \
  636     $(DBUS_LIBS) \
  637     $(DHASH_LIBS) \
  638     $(TDB_LIBS)
  639 
  640 if BUILD_SELINUX
  641     PYTHON_BINDINGS_LIBS += $(SELINUX_LIBS)
  642     TOOLS_LIBS += $(SELINUX_LIBS)
  643 endif
  644 
  645 dist_noinst_HEADERS = \
  646     src/monitor/monitor.h \
  647     src/sss_iface/sbus_sss_arguments.h \
  648     src/sss_iface/sbus_sss_client_async.h \
  649     src/sss_iface/sbus_sss_client_properties.h \
  650     src/sss_iface/sbus_sss_client_sync.h \
  651     src/sss_iface/sbus_sss_interface.h \
  652     src/sss_iface/sbus_sss_invokers.h \
  653     src/sss_iface/sbus_sss_keygens.h \
  654     src/sss_iface/sbus_sss_server.h \
  655     src/sss_iface/sbus_sss_symbols.h \
  656     src/sss_iface/sss_iface_types.h \
  657     src/sss_iface/sss_iface_async.h \
  658     src/sss_iface/sss_iface_sync.h \
  659     src/sss_iface/sss_iface.h \
  660     src/util/crypto/sss_crypto.h \
  661     src/util/crypto/libcrypto/sss_openssl.h \
  662     src/util/cert.h \
  663     src/util/dlinklist.h \
  664     src/util/debug.h \
  665     src/util/util.h \
  666     src/util/util_errors.h \
  667     src/util/safe-format-string.h \
  668     src/util/session_recording.h \
  669     src/util/strtonum.h \
  670     src/util/sss_cli_cmd.h \
  671     src/util/sss_ptr_hash.h \
  672     src/util/sss_ptr_list.h \
  673     src/util/sss_endian.h \
  674     src/util/sss_nss.h \
  675     src/util/sss_ldap.h \
  676     src/util/sss_python.h \
  677     src/util/sss_regexp.h \
  678     src/util/sss_krb5.h \
  679     src/util/sss_selinux.h \
  680     src/util/sss_sockets.h \
  681     src/util/sss_utf8.h \
  682     src/util/sss_ssh.h \
  683     src/util/sss_ini.h \
  684     src/util/sss_format.h \
  685     src/util/sss_pam_data.h \
  686     src/util/refcount.h \
  687     src/util/find_uid.h \
  688     src/util/user_info_msg.h \
  689     src/util/mmap_cache.h \
  690     src/util/atomic_io.h \
  691     src/util/auth_utils.h \
  692     src/util/authtok.h \
  693     src/util/authtok-utils.h \
  694     src/util/util_sss_idmap.h \
  695     src/util/util_creds.h \
  696     src/util/inotify.h \
  697     src/util/sss_iobuf.h \
  698     src/util/tev_curl.h \
  699     src/util/secrets/secrets.h \
  700     src/util/secrets/sec_pvt.h \
  701     src/util/nss_dl_load.h \
  702     src/monitor/monitor.h \
  703     src/responder/common/responder.h \
  704     src/responder/common/responder_packet.h \
  705     src/responder/common/responder_sbus.h \
  706     src/responder/common/cache_req/cache_req.h \
  707     src/responder/common/cache_req/cache_req_domain.h \
  708     src/responder/common/cache_req/cache_req_plugin.h \
  709     src/responder/common/cache_req/cache_req_private.h \
  710     src/responder/pam/pamsrv.h \
  711     src/responder/pam/pam_helpers.h \
  712     src/responder/nss/nss_private.h \
  713     src/responder/nss/nss_protocol.h \
  714     src/responder/nss/nss_iface.h \
  715     src/responder/nss/nsssrv_mmap_cache.h \
  716     src/responder/pac/pacsrv.h \
  717     src/responder/common/negcache_files.h \
  718     src/responder/common/negcache.h \
  719     src/responder/sudo/sudosrv_private.h \
  720     src/responder/autofs/autofs_private.h \
  721     src/responder/ssh/ssh_private.h \
  722     src/responder/ifp/ifp_private.h \
  723     src/responder/ifp/ifp_domains.h \
  724     src/responder/ifp/ifp_components.h \
  725     src/responder/ifp/ifp_users.h \
  726     src/responder/ifp/ifp_groups.h \
  727     src/responder/ifp/ifp_cache.h \
  728     src/responder/ifp/ifp_iface/sbus_ifp_arguments.h \
  729     src/responder/ifp/ifp_iface/sbus_ifp_client_async.h \
  730     src/responder/ifp/ifp_iface/sbus_ifp_client_properties.h \
  731     src/responder/ifp/ifp_iface/sbus_ifp_client_sync.h \
  732     src/responder/ifp/ifp_iface/sbus_ifp_interface.h \
  733     src/responder/ifp/ifp_iface/sbus_ifp_invokers.h \
  734     src/responder/ifp/ifp_iface/sbus_ifp_keygens.h \
  735     src/responder/ifp/ifp_iface/sbus_ifp_server.h \
  736     src/responder/ifp/ifp_iface/sbus_ifp_symbols.h \
  737     src/responder/ifp/ifp_iface/ifp_iface.h \
  738     src/responder/ifp/ifp_iface/ifp_iface_types.h \
  739     src/responder/ifp/ifp_iface/ifp_iface_async.h \
  740     src/responder/ifp/ifp_iface/ifp_iface_sync.h \
  741     src/responder/secrets/secsrv.h \
  742     src/responder/secrets/secsrv_private.h \
  743     src/responder/secrets/secsrv_local.h \
  744     src/responder/secrets/secsrv_proxy.h \
  745     src/responder/kcm/kcm.h \
  746     src/responder/kcm/kcmsrv_pvt.h \
  747     src/responder/kcm/kcmsrv_ccache.h \
  748     src/responder/kcm/kcmsrv_ccache_pvt.h \
  749     src/responder/kcm/kcmsrv_ccache_be.h \
  750     src/responder/kcm/kcmsrv_ops.h \
  751     src/sbus/sbus_annotations.h \
  752     src/sbus/sbus_declarations.h \
  753     src/sbus/sbus_errors.h \
  754     src/sbus/sbus.h \
  755     src/sbus/sbus_interface_declarations.h \
  756     src/sbus/sbus_interface.h \
  757     src/sbus/sbus_message.h \
  758     src/sbus/sbus_opath.h \
  759     src/sbus/sbus_private.h \
  760     src/sbus/sbus_request.h \
  761     src/sbus/sbus_sync.h \
  762     src/sbus/sbus_sync_private.h \
  763     src/sbus/sbus_typeof.h \
  764     src/sbus/connection/sbus_dbus_private.h \
  765     src/sbus/interface_dbus/sbus_dbus_arguments.h \
  766     src/sbus/interface_dbus/sbus_dbus_client_async.h \
  767     src/sbus/interface_dbus/sbus_dbus_client_sync.h \
  768     src/sbus/interface_dbus/sbus_dbus_client_properties.h \
  769     src/sbus/interface_dbus/sbus_dbus_interface.h \
  770     src/sbus/interface_dbus/sbus_dbus_invokers.h \
  771     src/sbus/interface_dbus/sbus_dbus_keygens.h \
  772     src/sbus/interface_dbus/sbus_dbus_server.h \
  773     src/sbus/interface_dbus/sbus_dbus_symbols.h \
  774     src/sbus/interface/sbus_iterator_readers.h \
  775     src/sbus/interface/sbus_iterator_writers.h \
  776     src/db/sysdb.h \
  777     src/db/sysdb_sudo.h \
  778     src/db/sysdb_autofs.h \
  779     src/db/sysdb_selinux.h \
  780     src/db/sysdb_private.h \
  781     src/db/sysdb_services.h \
  782     src/db/sysdb_ssh.h \
  783     src/db/sysdb_domain_resolution_order.h \
  784     src/confdb/confdb.h \
  785     src/confdb/confdb_private.h \
  786     src/confdb/confdb_setup.h \
  787     src/providers/data_provider.h \
  788     src/providers/data_provider_req.h \
  789     src/providers/data_provider/dp.h \
  790     src/providers/data_provider/dp_flags.h \
  791     src/providers/data_provider/dp_private.h \
  792     src/providers/data_provider/dp_request.h \
  793     src/providers/data_provider/dp_custom_data.h \
  794     src/providers/data_provider/dp_builtin.h \
  795     src/providers/data_provider/dp_iface.h \
  796     src/providers/backend.h \
  797     src/providers/be_dyndns.h \
  798     src/providers/be_ptask_private.h \
  799     src/providers/be_ptask.h \
  800     src/providers/be_refresh.h \
  801     src/providers/fail_over.h \
  802     src/providers/fail_over_srv.h \
  803     src/util/child_common.h \
  804     src/providers/simple/simple_access.h \
  805     src/providers/simple/simple_access_pvt.h \
  806     src/providers/krb5/krb5_auth.h \
  807     src/providers/krb5/krb5_common.h \
  808     src/providers/krb5/krb5_utils.h \
  809     src/providers/krb5/krb5_init_shared.h \
  810     src/providers/krb5/krb5_opts.h \
  811     src/providers/krb5/krb5_ccache.h \
  812     src/providers/ldap/ldap_common.h \
  813     src/providers/ldap/sdap.h \
  814     src/providers/ldap/sdap_access.h \
  815     src/providers/ldap/sdap_async.h \
  816     src/providers/ldap/sdap_async_ad.h \
  817     src/providers/ldap/sdap_async_private.h \
  818     src/providers/ldap/sdap_sudo.h \
  819     src/providers/ldap/sdap_sudo_shared.h \
  820     src/providers/ldap/sdap_autofs.h \
  821     src/providers/ldap/sdap_id_op.h \
  822     src/providers/ldap/ldap_opts.h \
  823     src/providers/ldap/ldap_auth.h \
  824     src/providers/ldap/sdap_range.h \
  825     src/providers/ldap/sdap_users.h \
  826     src/providers/ldap/sdap_dyndns.h \
  827     src/providers/ldap/sdap_async_enum.h \
  828     src/providers/ldap/sdap_ops.h \
  829     src/providers/ipa/ipa_common.h \
  830     src/providers/ipa/ipa_config.h \
  831     src/providers/ipa/ipa_access.h \
  832     src/providers/ipa/ipa_selinux.h \
  833     src/providers/ipa/ipa_hosts.h \
  834     src/providers/ipa/ipa_selinux_maps.h \
  835     src/providers/ipa/ipa_auth.h \
  836     src/providers/ipa/ipa_dyndns.h \
  837     src/providers/ipa/ipa_subdomains.h \
  838     src/providers/ipa/ipa_id.h \
  839     src/providers/ipa/ipa_opts.h \
  840     src/providers/ipa/ipa_srv.h \
  841     src/providers/ipa/ipa_dn.h \
  842     src/providers/ipa/ipa_sudo.h \
  843     src/providers/ipa/ipa_session.h \
  844     src/providers/ad/ad_srv.h \
  845     src/providers/ad/ad_common.h \
  846     src/providers/ad/ad_pac.h \
  847     src/providers/ad/ad_id.h \
  848     src/providers/ad/ad_access.h \
  849     src/providers/ad/ad_gpo.h \
  850     src/providers/ad/ad_opts.h \
  851     src/providers/ad/ad_domain_info.h \
  852     src/providers/ad/ad_subdomains.h \
  853     src/providers/proxy/proxy.h \
  854     src/providers/files/files_private.h \
  855     src/tools/tools_util.h \
  856     src/tools/sss_sync_ops.h \
  857     src/resolv/async_resolv.h \
  858     src/tests/common.h \
  859     src/tests/common_check.h \
  860     src/tests/cmocka/common_mock.h \
  861     src/tests/cmocka/common_mock_resp.h \
  862     src/tests/cmocka/common_mock_sdap.h \
  863     src/tests/cmocka/common_mock_sysdb_objects.h \
  864     src/tests/cmocka/common_mock_krb5.h \
  865     src/tests/cmocka/common_mock_be.h \
  866     src/tests/cmocka/test_expire_common.h \
  867     src/tests/cmocka/test_sdap_access.h \
  868     src/tests/cmocka/data_provider/mock_dp.h \
  869     src/sss_client/pam_message.h \
  870     src/sss_client/ssh/sss_ssh_client.h \
  871     src/sss_client/sudo/sss_sudo.h \
  872     src/sss_client/libwbclient/libwbclient.h \
  873     src/sss_client/libwbclient/wbc_err_internal.h \
  874     src/sss_client/libwbclient/wbclient_internal.h \
  875     src/sss_client/libwbclient/wbc_sssd_internal.h \
  876     src/sss_client/nfs/nfsidmap_internal.h \
  877     src/lib/idmap/sss_idmap_private.h \
  878     src/lib/sifp/sss_sifp_private.h \
  879     src/lib/winbind_idmap_sss/winbind_idmap_sss.h \
  880     src/tests/cmocka/test_utils.h \
  881     src/tools/common/sss_tools.h \
  882     src/tools/common/sss_process.h \
  883     src/tools/common/sss_colondb.h \
  884     src/tools/sssctl/sssctl.h \
  885     src/util/probes.h \
  886     src/shared/io.h \
  887     src/shared/murmurhash3.h \
  888     src/shared/safealign.h \
  889     src/p11_child/p11_child.h \
  890     $(NULL)
  891 
  892 
  893 if HAVE_NSS
  894     dist_noinst_HEADERS += src/util/crypto/nss/nss_util.h \
  895                            src/util/crypto/nss/nss_crypto.h
  896 endif
  897 
  898 SSSD_DOCS = \
  899     doc \
  900     hbac_doc \
  901     idmap_doc \
  902     nss_idmap_doc
  903 
  904 if BUILD_IFP
  905     SSSD_DOCS += sss_simpleifp_doc
  906 endif
  907 
  908 CLIENT_LIBS = $(LTLIBINTL)
  909 
  910 if WITH_JOURNALD
  911 SYSLOG_LIBS = $(JOURNALD_LIBS)
  912 endif
  913 
  914 #####################
  915 # Utility libraries #
  916 #####################
  917 pkglib_LTLIBRARIES += libsss_debug.la
  918 libsss_debug_la_SOURCES = \
  919     src/util/debug.c \
  920     src/util/sss_log.c \
  921     src/util/sss_cli_cmd.c \
  922     $(NULL)
  923 libsss_debug_la_LIBADD = \
  924     $(SYSLOG_LIBS)
  925 libsss_debug_la_LDFLAGS = \
  926     -avoid-version
  927 
  928 pkglib_LTLIBRARIES += libsss_child.la
  929 libsss_child_la_SOURCES = src/util/child_common.c
  930 libsss_child_la_LIBADD = \
  931     $(TALLOC_LIBS) \
  932     $(TEVENT_LIBS) \
  933     $(DHASH_LIBS) \
  934     libsss_debug.la \
  935     $(NULL)
  936 libsss_child_la_LDFLAGS = -avoid-version
  937 
  938 pkglib_LTLIBRARIES += libsss_crypt.la
  939 
  940 # NOTE:
  941 # Please try to avoid using SSS_CRYPT_{CFLAGS,LIBS} directly for compiling and
  942 # linking programs or libraries. This is purpose of wrapper library
  943 # libsss_crypt.so to hide internals. SSS_CRYPT_{CFLAGS,LIBS} might be used
  944 # in unit tests if you directly uses functions from underlining crypto libraries
  945 if HAVE_NSS
  946     SSS_CRYPT_SOURCES = src/util/crypto/nss/nss_base64.c \
  947                         src/util/crypto/nss/nss_hmac_sha1.c \
  948                         src/util/crypto/nss/nss_sha512crypt.c \
  949                         src/util/crypto/nss/nss_obfuscate.c \
  950                         src/util/crypto/nss/nss_nite.c \
  951                         src/util/crypto/nss/nss_util.c \
  952                         src/util/crypto/nss/nss_prng.c \
  953                         src/util/atomic_io.c \
  954                         src/util/memory.c \
  955                         $(NULL)
  956     SSS_CRYPT_CFLAGS = $(NSS_CFLAGS)
  957     SSS_CRYPT_LIBS = $(NSS_LIBS)
  958 
  959     SSS_CERT_SOURCES = \
  960         src/util/cert/cert_common.c \
  961         src/util/cert/cert_common_p11_child.c \
  962         src/util/cert/nss/cert.c \
  963         $(NULL)
  964     SSS_CERT_CFLAGS = \
  965         $(NSS_CFLAGS) \
  966         $(NULL)
  967     SSS_CERT_LIBS = \
  968         $(NSS_LIBS) \
  969         $(NULL)
  970 else
  971     SSS_CRYPT_SOURCES = src/util/crypto/libcrypto/crypto_base64.c \
  972                         src/util/crypto/libcrypto/crypto_hmac_sha1.c \
  973                         src/util/crypto/libcrypto/crypto_sha512crypt.c \
  974                         src/util/crypto/libcrypto/crypto_obfuscate.c \
  975                         src/util/crypto/libcrypto/crypto_nite.c \
  976                         src/util/crypto/libcrypto/crypto_prng.c \
  977                         src/util/atomic_io.c \
  978                         src/util/memory.c \
  979                         $(NULL)
  980     SSS_CRYPT_CFLAGS = $(CRYPTO_CFLAGS)
  981     SSS_CRYPT_LIBS = $(CRYPTO_LIBS)
  982 
  983     SSS_CERT_SOURCES = \
  984         src/util/cert/cert_common.c \
  985         src/util/cert/cert_common_p11_child.c \
  986         src/util/cert/libcrypto/cert.c \
  987         $(NULL)
  988     SSS_CERT_CFLAGS = \
  989         $(CRYPTO_CFLAGS) \
  990         $(NULL)
  991     SSS_CERT_LIBS = \
  992         $(CRYPTO_LIBS) \
  993         $(NULL)
  994 endif
  995 
  996 libsss_crypt_la_SOURCES = \
  997     $(SSS_CRYPT_SOURCES)
  998 libsss_crypt_la_CFLAGS = \
  999     $(AM_CFLAGS) \
 1000     $(SSS_CRYPT_CFLAGS) \
 1001     $(DHASH_CFLAGS)
 1002 libsss_crypt_la_LIBADD = \
 1003     $(SSS_CRYPT_LIBS) \
 1004     $(DHASH_LIBS) \
 1005     $(TALLOC_LIBS) \
 1006     libsss_debug.la \
 1007     $(NULL)
 1008 libsss_crypt_la_LDFLAGS = \
 1009     -avoid-version
 1010 
 1011 pkglib_LTLIBRARIES += libsss_cert.la
 1012 
 1013 libsss_cert_la_SOURCES = \
 1014     $(SSS_CERT_SOURCES) \
 1015     $(NULL)
 1016 libsss_cert_la_CFLAGS = \
 1017     $(AM_CFLAGS) \
 1018     $(SSS_CERT_CFLAGS) \
 1019     $(NULL)
 1020 # NOTE:
 1021 # There is a dependency between libsss_cert and libsss_child which should
 1022 # always be declared explicitly and if missing might cause issue in some
 1023 # environments (e.g. Gentoo or OpenSUSE build service), even if it is
 1024 # resolved otherwise while linking the binaries.
 1025 libsss_cert_la_LIBADD = \
 1026     $(SSS_CERT_LIBS) \
 1027     $(TALLOC_LIBS) \
 1028     $(TEVENT_LIBS) \
 1029     libsss_crypt.la \
 1030     libsss_child.la \
 1031     libsss_debug.la \
 1032     libsss_certmap.la \
 1033     $(NULL)
 1034 libsss_cert_la_LDFLAGS = \
 1035     -avoid-version \
 1036     $(NULL)
 1037 
 1038 generate-sbus-code:
 1039 	$(builddir)/sbus_generate.sh $(abs_srcdir)
 1040 
 1041 .PHONY: generate-sbus-code
 1042 
 1043 BUILT_SOURCES += generate-sbus-code
 1044 
 1045 EXTRA_DIST += \
 1046     sbus_generate.sh.in \
 1047     src/sbus/codegen/dbus.xml \
 1048     src/sbus/codegen/sbus_CodeGen.py \
 1049     src/sbus/codegen/sbus_DataType.py \
 1050     src/sbus/codegen/sbus_Generator.py \
 1051     src/sbus/codegen/sbus_Introspection.py \
 1052     src/sbus/codegen/sbus_Invoker.py \
 1053     src/sbus/codegen/sbus_Template.py \
 1054     src/sbus/codegen/templates/arguments.c.tpl \
 1055     src/sbus/codegen/templates/arguments.h.tpl \
 1056     src/sbus/codegen/templates/client_async.c.tpl \
 1057     src/sbus/codegen/templates/client_async.h.tpl \
 1058     src/sbus/codegen/templates/client_properties.h.tpl \
 1059     src/sbus/codegen/templates/client_sync.c.tpl \
 1060     src/sbus/codegen/templates/client_sync.h.tpl \
 1061     src/sbus/codegen/templates/interface.h.tpl \
 1062     src/sbus/codegen/templates/invokers.c.tpl \
 1063     src/sbus/codegen/templates/invokers.h.tpl \
 1064     src/sbus/codegen/templates/keygens.c.tpl \
 1065     src/sbus/codegen/templates/keygens.h.tpl \
 1066     src/sbus/codegen/templates/server.h.tpl \
 1067     src/sbus/codegen/templates/symbols.c.tpl \
 1068     src/sbus/codegen/templates/symbols.h.tpl \
 1069     src/sss_iface/sss_iface.xml \
 1070     src/sss_iface/external_iface.xml \
 1071     src/responder/ifp/ifp_iface/ifp_iface.xml \
 1072     $(NULL)
 1073 
 1074 pkglib_LTLIBRARIES += libsss_sbus.la
 1075 libsss_sbus_la_SOURCES = \
 1076     src/util/check_and_open.c \
 1077     src/util/debug.c \
 1078     src/util/sss_ptr_hash.c \
 1079     src/util/sss_ptr_list.c \
 1080     src/util/sss_utf8.c \
 1081     src/util/util.c \
 1082     src/util/util_errors.c \
 1083     src/util/util_ext.c \
 1084     src/util/strtonum.c \
 1085     src/sbus/sbus_errors.c \
 1086     src/sbus/sbus_opath.c \
 1087     src/sbus/connection/sbus_connection.c \
 1088     src/sbus/connection/sbus_connection_connect.c \
 1089     src/sbus/connection/sbus_dbus.c \
 1090     src/sbus/connection/sbus_dispatcher.c \
 1091     src/sbus/connection/sbus_reconnect.c \
 1092     src/sbus/connection/sbus_send.c \
 1093     src/sbus/connection/sbus_watch.c \
 1094     src/sbus/interface_dbus/sbus_dbus_arguments.c \
 1095     src/sbus/interface_dbus/sbus_dbus_client_async.c \
 1096     src/sbus/interface_dbus/sbus_dbus_invokers.c \
 1097     src/sbus/interface_dbus/sbus_dbus_keygens.c \
 1098     src/sbus/interface_dbus/sbus_dbus_symbols.c \
 1099     src/sbus/interface/sbus_interface.c \
 1100     src/sbus/interface/sbus_introspection.c \
 1101     src/sbus/interface/sbus_iterator_readers.c \
 1102     src/sbus/interface/sbus_iterator_writers.c \
 1103     src/sbus/interface/sbus_properties.c \
 1104     src/sbus/interface/sbus_properties_parser.c \
 1105     src/sbus/interface/sbus_std_signals.c \
 1106     src/sbus/request/sbus_message.c \
 1107     src/sbus/request/sbus_request.c \
 1108     src/sbus/request/sbus_request_call.c \
 1109     src/sbus/request/sbus_request_hash.c \
 1110     src/sbus/request/sbus_request_sender.c \
 1111     src/sbus/request/sbus_request_util.c \
 1112     src/sbus/router/sbus_router.c \
 1113     src/sbus/router/sbus_router_handler.c \
 1114     src/sbus/router/sbus_router_hash.c \
 1115     src/sbus/server/sbus_server_handler.c \
 1116     src/sbus/server/sbus_server_interface.c \
 1117     src/sbus/server/sbus_server_match.c \
 1118     src/sbus/server/sbus_server.c \
 1119     $(NULL)
 1120 libsss_sbus_la_LIBADD = \
 1121     $(DHASH_LIBS) \
 1122     $(TALLOC_LIBS) \
 1123     $(TEVENT_LIBS) \
 1124     $(DBUS_LIBS) \
 1125     $(UNICODE_LIBS) \
 1126     $(NULL)
 1127 libsss_sbus_la_CFLAGS = \
 1128     $(AM_CFLAGS) \
 1129 	$(DHASH_CFLAGS) \
 1130     $(TALLOC_CFLAGS) \
 1131     $(TEVENT_CFLAGS) \
 1132     $(DBUS_CFLAGS) \
 1133     $(NULL)
 1134 libsss_sbus_la_LDFLAGS = \
 1135     -avoid-version \
 1136     $(NULL)
 1137 
 1138 pkglib_LTLIBRARIES += libsss_sbus_sync.la
 1139 libsss_sbus_sync_la_SOURCES = \
 1140     src/util/debug.c \
 1141     src/util/sss_utf8.c \
 1142     src/util/util.c \
 1143     src/util/util_errors.c \
 1144     src/util/strtonum.c \
 1145     src/sbus/sbus_errors.c \
 1146     src/sbus/sbus_opath.c \
 1147     src/sbus/connection/sbus_dbus.c \
 1148     src/sbus/interface_dbus/sbus_dbus_arguments.c \
 1149     src/sbus/interface_dbus/sbus_dbus_client_sync.c \
 1150     src/sbus/interface_dbus/sbus_dbus_keygens.c \
 1151     src/sbus/interface_dbus/sbus_dbus_symbols.c \
 1152     src/sbus/interface/sbus_iterator_readers.c \
 1153     src/sbus/interface/sbus_iterator_writers.c \
 1154     src/sbus/interface/sbus_properties_parser.c \
 1155     src/sbus/request/sbus_message.c \
 1156     src/sbus/sync/sbus_sync.c \
 1157     src/sbus/sync/sbus_sync_call.c \
 1158     $(NULL)
 1159 libsss_sbus_sync_la_LIBADD = \
 1160     $(TALLOC_LIBS) \
 1161     $(DBUS_LIBS) \
 1162     $(NULL)
 1163 libsss_sbus_sync_la_CFLAGS = \
 1164     $(AM_CFLAGS) \
 1165     $(TALLOC_CFLAGS) \
 1166     $(DBUS_CFLAGS) \
 1167     $(UNICODE_LIBS) \
 1168     $(NULL)
 1169 libsss_sbus_sync_la_LDFLAGS = \
 1170     -avoid-version \
 1171     $(NULL)
 1172 
 1173 pkglib_LTLIBRARIES += libsss_iface.la
 1174 libsss_iface_la_SOURCES = \
 1175     src/sss_iface/sbus_sss_arguments.c \
 1176     src/sss_iface/sbus_sss_client_async.c \
 1177     src/sss_iface/sbus_sss_invokers.c \
 1178     src/sss_iface/sbus_sss_keygens.c \
 1179     src/sss_iface/sbus_sss_symbols.c \
 1180     src/sss_iface/sss_iface_types.c \
 1181     src/sss_iface/sss_iface.c \
 1182     src/util/domain_info_utils.c \
 1183     src/util/sss_pam_data.c \
 1184     $(NULL)
 1185 libsss_iface_la_LIBADD = \
 1186     $(DHASH_LIBS) \
 1187     $(TALLOC_LIBS) \
 1188     $(TEVENT_LIBS) \
 1189     $(DBUS_LIBS) \
 1190     libsss_sbus.la \
 1191     $(NULL)
 1192 libsss_iface_la_CFLAGS = \
 1193     $(AM_CFLAGS) \
 1194 	$(DHASH_CFLAGS) \
 1195     $(TALLOC_CFLAGS) \
 1196     $(TEVENT_CFLAGS) \
 1197     $(DBUS_CFLAGS) \
 1198     $(NULL)
 1199 libsss_iface_la_LDFLAGS = \
 1200     -avoid-version \
 1201     $(NULL)
 1202 
 1203 pkglib_LTLIBRARIES += libsss_iface_sync.la
 1204 libsss_iface_sync_la_SOURCES = \
 1205     src/sss_iface/sbus_sss_arguments.c \
 1206     src/sss_iface/sbus_sss_client_sync.c \
 1207     src/sss_iface/sbus_sss_keygens.c \
 1208     src/sss_iface/sbus_sss_symbols.c \
 1209     src/sss_iface/sss_iface_types.c \
 1210     src/util/domain_info_utils.c \
 1211     src/util/sss_pam_data.c \
 1212     $(NULL)
 1213 libsss_iface_sync_la_LIBADD = \
 1214     $(DHASH_LIBS) \
 1215     $(TALLOC_LIBS) \
 1216     $(TEVENT_LIBS) \
 1217     $(DBUS_LIBS) \
 1218     libsss_sbus_sync.la \
 1219     $(NULL)
 1220 libsss_iface_sync_la_CFLAGS = \
 1221     $(AM_CFLAGS) \
 1222 	$(DHASH_CFLAGS) \
 1223     $(TALLOC_CFLAGS) \
 1224     $(TEVENT_CFLAGS) \
 1225     $(DBUS_CFLAGS) \
 1226     $(NULL)
 1227 libsss_iface_sync_la_LDFLAGS = \
 1228     -avoid-version \
 1229     $(NULL)
 1230 
 1231 pkglib_LTLIBRARIES += libsss_util.la
 1232 libsss_util_la_SOURCES = \
 1233     src/confdb/confdb.c \
 1234     src/db/sysdb.c \
 1235     src/db/sysdb_ops.c \
 1236     src/db/sysdb_search.c \
 1237     src/db/sysdb_selinux.c \
 1238     src/db/sysdb_upgrade.c \
 1239     src/db/sysdb_init.c \
 1240     src/db/sysdb_services.c \
 1241     src/db/sysdb_autofs.c \
 1242     src/db/sysdb_subdomains.c \
 1243     src/db/sysdb_views.c \
 1244     src/db/sysdb_ranges.c \
 1245     src/db/sysdb_idmap.c \
 1246     src/db/sysdb_gpo.c \
 1247     src/db/sysdb_certmap.c \
 1248     src/db/sysdb_domain_resolution_order.c \
 1249     src/util/sss_pam_data.c \
 1250     src/util/util.c \
 1251     src/util/util_ext.c \
 1252     src/util/util_preauth.c \
 1253     src/util/memory.c \
 1254     src/util/safe-format-string.c \
 1255     src/util/server.c \
 1256     src/util/signal.c \
 1257     src/util/usertools.c \
 1258     src/util/backup_file.c \
 1259     src/util/strtonum.c \
 1260     src/util/check_and_open.c \
 1261     src/util/refcount.c \
 1262     src/util/sss_nss.c \
 1263     src/util/sss_utf8.c \
 1264     src/util/sss_tc_utf8.c \
 1265     src/util/murmurhash3.c \
 1266     src/util/atomic_io.c \
 1267     src/util/authtok.c \
 1268     src/util/authtok-utils.c \
 1269     src/util/sss_selinux.c \
 1270     src/util/domain_info_utils.c \
 1271     src/util/util_lock.c \
 1272     src/util/util_errors.c \
 1273     src/util/find_uid.c \
 1274     src/util/sss_ini.c \
 1275     src/util/io.c \
 1276     src/util/util_sss_idmap.c \
 1277     src/util/well_known_sids.c \
 1278     src/util/string_utils.c \
 1279     src/util/become_user.c \
 1280     src/util/util_watchdog.c \
 1281     src/util/sss_ptr_hash.c \
 1282     src/util/files.c \
 1283     src/util/selinux.c \
 1284     src/util/sss_regexp.c \
 1285     $(NULL)
 1286 libsss_util_la_CFLAGS = \
 1287     $(AM_CFLAGS) \
 1288     $(SYSTEMD_LOGIN_CFLAGS) \
 1289     $(NULL)
 1290 libsss_util_la_LIBADD = \
 1291     $(LIBADD_TIMER) \
 1292     $(SSSD_LIBS) \
 1293     $(SYSTEMD_LOGIN_LIBS) \
 1294     $(UNICODE_LIBS) \
 1295     $(PCRE_LIBS) \
 1296     $(INI_CONFIG_LIBS) \
 1297     libsss_debug.la \
 1298     libsss_child.la \
 1299     libsss_crypt.la \
 1300     libsss_cert.la \
 1301     $(NULL)
 1302 if BUILD_SUDO
 1303     libsss_util_la_SOURCES += src/db/sysdb_sudo.c
 1304 endif
 1305 if BUILD_SSH
 1306 libsss_util_la_SOURCES += \
 1307     src/db/sysdb_ssh.c \
 1308     src/util/sss_ssh.c
 1309 endif
 1310 if BUILD_SYSTEMTAP
 1311 libsss_util_la_LIBADD += stap_generated_probes.lo
 1312 endif
 1313 libsss_util_la_LDFLAGS = -avoid-version
 1314 
 1315 if BUILD_WITH_LIBSECRET
 1316 pkglib_LTLIBRARIES += libsss_secrets.la
 1317 libsss_secrets_la_SOURCES = \
 1318     src/util/secrets/secrets.c \
 1319     src/util/secrets/config.c \
 1320     $(NULL)
 1321 libsss_secrets_la_CFLAGS = \
 1322     $(AM_CFLAGS) \
 1323     $(NULL)
 1324 libsss_secrets_la_LIBADD = \
 1325     $(TALLOC_LIBS) \
 1326     $(LDB_LIBS) \
 1327     libsss_crypt.la \
 1328     libsss_debug.la \
 1329     libsss_util.la \
 1330     $(NULL)
 1331 libsss_secrets_la_LDFLAGS = \
 1332     -avoid-version \
 1333     $(NULL)
 1334 endif
 1335 
 1336 pkglib_LTLIBRARIES += libsss_semanage.la
 1337 libsss_semanage_la_CFLAGS = \
 1338     $(AM_CFLAGS) \
 1339     $(TALLOC_CFLAGS) \
 1340     $(NULL)
 1341 libsss_semanage_la_SOURCES = \
 1342     src/util/sss_semanage.c \
 1343     $(NULL)
 1344 libsss_semanage_la_LIBADD = \
 1345     $(TALLOC_LIBS) \
 1346     libsss_debug.la \
 1347     $(NULL)
 1348 if BUILD_SEMANAGE
 1349 libsss_semanage_la_LIBADD += $(SEMANAGE_LIBS)
 1350 endif
 1351 
 1352 libsss_semanage_la_LDFLAGS = \
 1353     -avoid-version
 1354 
 1355 SSSD_INTERNAL_LTLIBS = \
 1356     libsss_util.la \
 1357     libsss_crypt.la \
 1358     libsss_debug.la \
 1359     libsss_child.la \
 1360     $(NULL)
 1361 
 1362 lib_LTLIBRARIES = libipa_hbac.la \
 1363                   libsss_idmap.la \
 1364                   libsss_nss_idmap.la \
 1365                   libsss_certmap.la \
 1366                   $(NULL)
 1367 
 1368 pkgconfig_DATA += src/lib/ipa_hbac/ipa_hbac.pc
 1369 libipa_hbac_la_DEPENDENCIES = src/lib/ipa_hbac/ipa_hbac.exports
 1370 libipa_hbac_la_SOURCES = \
 1371     src/lib/ipa_hbac/hbac_evaluator.c \
 1372     src/util/sss_utf8.c
 1373 # libipa_hbac is also used by external projects such as pam_hbac which
 1374 # support platforms that do not have a C99 compiler. We add -std=c89
 1375 # explicitly here to make sure we don't accidentally add a C99 feature
 1376 # to the libipa_hbac code
 1377 libipa_hbac_la_CFLAGS = \
 1378     $(AM_CFLAGS) \
 1379     -I$(top_srcdir)/src/util \
 1380     -std=c89 \
 1381     $(NULL)
 1382 libipa_hbac_la_LIBADD = \
 1383     $(UNICODE_LIBS)
 1384 libipa_hbac_la_LDFLAGS = \
 1385     -Wl,--version-script,$(srcdir)/src/lib/ipa_hbac/ipa_hbac.exports \
 1386     -version-info 1:0:1
 1387 
 1388 dist_noinst_DATA += src/lib/ipa_hbac/ipa_hbac.exports
 1389 
 1390 pkgconfig_DATA += src/lib/idmap/sss_idmap.pc
 1391 libsss_idmap_la_DEPENDENCIES = src/lib/idmap/sss_idmap.exports
 1392 libsss_idmap_la_SOURCES = \
 1393     src/lib/idmap/sss_idmap.c \
 1394     src/lib/idmap/sss_idmap_conv.c \
 1395     src/util/murmurhash3.c
 1396 libsss_idmap_la_LDFLAGS = \
 1397     -Wl,--version-script,$(srcdir)/src/lib/idmap/sss_idmap.exports \
 1398     -version-info 5:1:5
 1399 
 1400 dist_noinst_DATA += src/lib/idmap/sss_idmap.exports
 1401 
 1402 pkgconfig_DATA += src/sss_client/idmap/sss_nss_idmap.pc
 1403 libsss_nss_idmap_la_DEPENDENCIES = src/sss_client/idmap/sss_nss_idmap.exports
 1404 libsss_nss_idmap_la_SOURCES = \
 1405     src/sss_client/idmap/sss_nss_idmap.c \
 1406     src/sss_client/idmap/sss_nss_ex.c \
 1407     src/sss_client/idmap/sss_nss_idmap_private.h \
 1408     src/sss_client/common.c \
 1409     src/sss_client/idmap/common_ex.c \
 1410     src/sss_client/nss_mc_passwd.c \
 1411     src/sss_client/nss_passwd.c \
 1412     src/sss_client/nss_mc_group.c \
 1413     src/sss_client/nss_group.c \
 1414     src/sss_client/nss_mc_initgr.c \
 1415     src/sss_client/nss_mc_common.c \
 1416     src/util/strtonum.c \
 1417     src/util/murmurhash3.c \
 1418     src/util/io.c \
 1419     $(NULL)
 1420 libsss_nss_idmap_la_LIBADD = \
 1421     $(LIBCLOCK_GETTIME) \
 1422     $(CLIENT_LIBS) \
 1423     -lpthread \
 1424     $(NULL)
 1425 libsss_nss_idmap_la_LDFLAGS = \
 1426     -Wl,--version-script,$(srcdir)/src/sss_client/idmap/sss_nss_idmap.exports \
 1427     -version-info 5:0:5
 1428 
 1429 dist_noinst_DATA += src/sss_client/idmap/sss_nss_idmap.exports
 1430 
 1431 include_HEADERS = \
 1432     src/lib/ipa_hbac/ipa_hbac.h \
 1433     src/lib/idmap/sss_idmap.h \
 1434     src/sss_client/idmap/sss_nss_idmap.h \
 1435     src/lib/certmap/sss_certmap.h \
 1436     $(NULL)
 1437 
 1438 if BUILD_LIBWBCLIENT
 1439 libwbclient_LTLIBRARIES = libwbclient.la
 1440 pkgconfig_DATA += src/sss_client/libwbclient/wbclient_sssd.pc
 1441 
 1442 EXTRA_libwbclient_la_DEPENDENCIES = \
 1443     src/sss_client/libwbclient/wbclient.exports \
 1444     $(NULL)
 1445 
 1446 libwbclient_la_SOURCES = \
 1447     src/sss_client/libwbclient/wbc_guid.c \
 1448     src/sss_client/libwbclient/wbc_idmap_common.c \
 1449     src/sss_client/libwbclient/wbc_idmap_sssd.c \
 1450     src/sss_client/libwbclient/wbclient_common.c \
 1451     src/sss_client/libwbclient/wbclient_sssd.c \
 1452     src/sss_client/libwbclient/wbc_pam_sssd.c \
 1453     src/sss_client/libwbclient/wbc_pwd_sssd.c \
 1454     src/sss_client/libwbclient/wbc_sid_common.c \
 1455     src/sss_client/libwbclient/wbc_sid_sssd.c \
 1456     src/sss_client/libwbclient/wbc_sssd_internal.h \
 1457     src/sss_client/libwbclient/wbc_util_common.c \
 1458     src/sss_client/libwbclient/wbc_util_sssd.c \
 1459     src/sss_client/libwbclient/wbc_ctx_sssd.c \
 1460     $(NULL)
 1461 libwbclient_la_LIBADD = \
 1462     $(LIBADD_DL) \
 1463     libsss_nss_idmap.la \
 1464     $(CLIENT_LIBS) \
 1465     $(NULL)
 1466 
 1467 libwbclient_la_LDFLAGS = \
 1468     -Wl,--version-script,$(srcdir)/src/sss_client/libwbclient/wbclient.exports \
 1469     -version-info @libwbclient_version_info@ \
 1470     $(NULL)
 1471 
 1472 dist_noinst_DATA += src/sss_client/libwbclient/wbclient.exports \
 1473     $(NULL)
 1474 
 1475 include_HEADERS += src/sss_client/libwbclient/wbclient_sssd.h
 1476 endif #BUILD_LIBWBCLIENT
 1477 
 1478 if BUILD_IFP
 1479 lib_LTLIBRARIES += libsss_simpleifp.la
 1480 pkgconfig_DATA += src/lib/sifp/sss_simpleifp.pc
 1481 
 1482 libsss_simpleifp_la_SOURCES = \
 1483     src/lib/sifp/sss_sifp.c \
 1484     src/lib/sifp/sss_sifp_dbus.c \
 1485     src/lib/sifp/sss_sifp_attrs.c \
 1486     src/lib/sifp/sss_sifp_common.c \
 1487     src/lib/sifp/sss_sifp_parser.c \
 1488     src/lib/sifp/sss_sifp_utils.c
 1489 libsss_simpleifp_la_CFLAGS = \
 1490     $(AM_CFLAGS) \
 1491     -I$(top_srcdir)/src/lib/sifp
 1492 libsss_simpleifp_la_LIBADD = \
 1493     $(DBUS_LIBS) \
 1494     $(DHASH_LIBS)
 1495 libsss_simpleifp_la_LDFLAGS = \
 1496     -Wl,--version-script,$(srcdir)/src/lib/sifp/sss_simpleifp.exports \
 1497     -version-info 1:1:1
 1498 
 1499 dist_noinst_DATA += src/lib/sifp/sss_simpleifp.exports
 1500 
 1501 include_HEADERS += \
 1502     src/lib/sifp/sss_sifp.h \
 1503     src/lib/sifp/sss_sifp_dbus.h
 1504 endif
 1505 
 1506 #########################
 1507 # Systemtap tracing     #
 1508 #########################
 1509 
 1510 if BUILD_SYSTEMTAP
 1511 SYSTEMTAP_PROBES = \
 1512     $(srcdir)/src/systemtap/sssd_probes.d \
 1513     $(NULL)
 1514 
 1515 systemtap_tap_DATA = $(builddir)/src/systemtap/sssd.stp
 1516 
 1517 dist_systemtap_tap_DATA = \
 1518     $(builddir)/src/systemtap/sssd_functions.stp \
 1519     $(NULL)
 1520 
 1521 dist_sssdtapscript_DATA = \
 1522     contrib/systemtap/id_perf.stp \
 1523     contrib/systemtap/nested_group_perf.stp \
 1524     contrib/systemtap/dp_request.stp \
 1525     contrib/systemtap/ldap_perf.stp \
 1526     $(NULL)
 1527 
 1528 stap_generated_probes.h: $(srcdir)/src/systemtap/sssd_probes.d
 1529 	$(AM_V_GEN)$(DTRACE) -C -h -s $< -o $@
 1530 
 1531 stap_generated_probes.o: $(srcdir)/src/systemtap/sssd_probes.d stap_generated_probes.h
 1532 	$(AM_V_GEN)$(DTRACE) -C -G -s $< -o $@
 1533 
 1534 stap_generated_probes.lo: stap_generated_probes.o
 1535 	$(AM_V_GEN)printf %s\\n \
 1536 	'# $@ - a libtool object file' \
 1537 	'# Generated by libtool (GNU libtool) 2.4' \
 1538 	'# Actually generated by Makefile.am, in order to shut up libtool' \
 1539 	"pic_object='$<'" \
 1540 	"non_pic_object='$<'" \
 1541 	> $@
 1542 
 1543 BUILT_SOURCES += stap_generated_probes.h
 1544 
 1545 CLEANFILES += stap_generated_probes.h \
 1546 	      stap_generated_probes.o \
 1547 	      stap_generated_probes.lo \
 1548 	      $(NULL)
 1549 endif
 1550 
 1551 ####################
 1552 # Program Binaries #
 1553 ####################
 1554 sssd_SOURCES = \
 1555     src/monitor/monitor.c \
 1556     src/monitor/monitor_netlink.c \
 1557     src/confdb/confdb_setup.c \
 1558     src/util/nscd.c \
 1559     src/util/inotify.c \
 1560     $(NULL)
 1561 sssd_LDADD = \
 1562     $(SSSD_LIBS) \
 1563     $(INOTIFY_LIBS) \
 1564     $(LIBNL_LIBS) \
 1565     $(KEYUTILS_LIBS) \
 1566     $(SYSTEMD_DAEMON_LIBS) \
 1567     $(SSSD_INTERNAL_LTLIBS) \
 1568     libsss_iface.la \
 1569     libsss_sbus.la \
 1570     $(NULL)
 1571 
 1572 sssd_nss_SOURCES = \
 1573     src/responder/nss/nsssrv.c \
 1574     src/responder/nss/nss_cmd.c \
 1575     src/responder/nss/nss_enum.c \
 1576     src/responder/nss/nss_get_object.c \
 1577     src/responder/nss/nss_protocol.c \
 1578     src/responder/nss/nss_protocol_pwent.c \
 1579     src/responder/nss/nss_protocol_grent.c \
 1580     src/responder/nss/nss_protocol_netgr.c \
 1581     src/responder/nss/nss_protocol_svcent.c \
 1582     src/responder/nss/nss_protocol_sid.c \
 1583     src/responder/nss/nss_utils.c \
 1584     src/responder/nss/nss_iface.c \
 1585     src/responder/nss/nsssrv_mmap_cache.c \
 1586     $(SSSD_RESPONDER_OBJ)
 1587 sssd_nss_LDADD = \
 1588     $(LIBADD_DL) \
 1589     $(TDB_LIBS) \
 1590     $(SSSD_LIBS) \
 1591     libsss_idmap.la \
 1592     libsss_cert.la \
 1593     $(SYSTEMD_DAEMON_LIBS) \
 1594     $(SSSD_INTERNAL_LTLIBS) \
 1595     libsss_iface.la \
 1596     libsss_sbus.la \
 1597     $(NULL)
 1598 
 1599 sssd_pam_SOURCES = \
 1600     src/responder/pam/pam_LOCAL_domain.c \
 1601     src/responder/pam/pamsrv.c \
 1602     src/responder/pam/pamsrv_cmd.c \
 1603     src/responder/pam/pamsrv_p11.c \
 1604     src/responder/pam/pamsrv_dp.c \
 1605     src/responder/pam/pam_prompting_config.c \
 1606     src/sss_client/pam_sss_prompt_config.c \
 1607     src/responder/pam/pam_helpers.c \
 1608     $(SSSD_RESPONDER_OBJ)
 1609 sssd_pam_CFLAGS = \
 1610     $(AM_CFLAGS) \
 1611     $(NULL)
 1612 sssd_pam_LDADD = \
 1613     $(LIBADD_DL) \
 1614     $(TDB_LIBS) \
 1615     $(SSSD_LIBS) \
 1616     $(SELINUX_LIBS) \
 1617     $(PAM_LIBS) \
 1618     $(SYSTEMD_DAEMON_LIBS) \
 1619     libsss_certmap.la \
 1620     $(SSSD_INTERNAL_LTLIBS) \
 1621     libsss_iface.la \
 1622     libsss_sbus.la \
 1623     $(NULL)
 1624 
 1625 if BUILD_SUDO
 1626 sssd_sudo_SOURCES = \
 1627     src/responder/sudo/sudosrv.c \
 1628     src/responder/sudo/sudosrv_cmd.c \
 1629     src/responder/sudo/sudosrv_get_sudorules.c \
 1630     src/responder/sudo/sudosrv_query.c \
 1631     src/responder/sudo/sudosrv_dp.c \
 1632     $(SSSD_RESPONDER_OBJ)
 1633 sssd_sudo_LDADD = \
 1634     $(LIBADD_DL) \
 1635     $(SSSD_LIBS) \
 1636     $(SYSTEMD_DAEMON_LIBS) \
 1637     $(SSSD_INTERNAL_LTLIBS) \
 1638     libsss_iface.la \
 1639     libsss_sbus.la \
 1640     $(NULL)
 1641 endif
 1642 
 1643 if BUILD_AUTOFS
 1644 sssd_autofs_SOURCES = \
 1645     src/responder/autofs/autofssrv.c \
 1646     src/responder/autofs/autofssrv_cmd.c \
 1647     $(SSSD_RESPONDER_OBJ)
 1648 sssd_autofs_LDADD = \
 1649     $(LIBADD_DL) \
 1650     $(SSSD_LIBS) \
 1651     $(SYSTEMD_DAEMON_LIBS) \
 1652     $(SSSD_INTERNAL_LTLIBS) \
 1653     libsss_iface.la \
 1654     libsss_sbus.la \
 1655     $(NULL)
 1656 endif
 1657 
 1658 if BUILD_SSH
 1659 sssd_ssh_SOURCES = \
 1660     src/responder/ssh/sshsrv.c \
 1661     src/responder/ssh/ssh_cmd.c \
 1662     src/responder/ssh/ssh_known_hosts.c \
 1663     src/responder/ssh/ssh_protocol.c \
 1664     src/responder/ssh/ssh_reply.c \
 1665     $(SSSD_RESPONDER_OBJ) \
 1666     $(NULL)
 1667 sssd_ssh_LDADD = \
 1668     $(LIBADD_DL) \
 1669     $(SSSD_LIBS) \
 1670     $(SSSD_INTERNAL_LTLIBS) \
 1671     $(SYSTEMD_DAEMON_LIBS) \
 1672     libsss_cert.la \
 1673     libsss_certmap.la \
 1674     libsss_iface.la \
 1675     libsss_sbus.la \
 1676     $(NULL)
 1677 endif
 1678 
 1679 sssd_pac_SOURCES = \
 1680     src/responder/pac/pacsrv.c \
 1681     src/responder/pac/pacsrv_cmd.c \
 1682     src/providers/ad/ad_pac_common.c \
 1683     $(SSSD_RESPONDER_OBJ)
 1684 sssd_pac_CFLAGS = \
 1685     $(AM_CFLAGS) \
 1686     $(NDR_KRB5PAC_CFLAGS)
 1687 sssd_pac_LDADD = \
 1688     $(LIBADD_DL) \
 1689     $(NDR_KRB5PAC_LIBS) \
 1690     $(TDB_LIBS) \
 1691     $(SSSD_LIBS) \
 1692     $(SYSTEMD_DAEMON_LIBS) \
 1693     libsss_idmap.la \
 1694     $(SSSD_INTERNAL_LTLIBS) \
 1695     libsss_iface.la \
 1696     libsss_sbus.la \
 1697     $(NULL)
 1698 
 1699 if BUILD_IFP
 1700 pkglib_LTLIBRARIES += libifp_iface.la
 1701 libifp_iface_la_SOURCES = \
 1702     src/responder/ifp/ifp_iface/sbus_ifp_arguments.c \
 1703     src/responder/ifp/ifp_iface/sbus_ifp_client_async.c \
 1704     src/responder/ifp/ifp_iface/sbus_ifp_invokers.c \
 1705     src/responder/ifp/ifp_iface/sbus_ifp_keygens.c \
 1706     src/responder/ifp/ifp_iface/sbus_ifp_symbols.c \
 1707     src/responder/ifp/ifp_iface/ifp_iface_types.c \
 1708     src/responder/ifp/ifp_iface/ifp_iface.c \
 1709     $(NULL)
 1710 libifp_iface_la_LIBADD = \
 1711     $(DHASH_LIBS) \
 1712     $(TALLOC_LIBS) \
 1713     $(TEVENT_LIBS) \
 1714     $(DBUS_LIBS) \
 1715     libsss_sbus.la \
 1716     $(NULL)
 1717 libifp_iface_la_CFLAGS = \
 1718     $(AM_CFLAGS) \
 1719 	$(DHASH_CFLAGS) \
 1720     $(TALLOC_CFLAGS) \
 1721     $(TEVENT_CFLAGS) \
 1722     $(DBUS_CFLAGS) \
 1723     $(NULL)
 1724 libifp_iface_la_LDFLAGS = \
 1725     -avoid-version \
 1726     $(NULL)
 1727 
 1728 pkglib_LTLIBRARIES += libifp_iface_sync.la
 1729 libifp_iface_sync_la_SOURCES = \
 1730     src/responder/ifp/ifp_iface/sbus_ifp_arguments.c \
 1731     src/responder/ifp/ifp_iface/sbus_ifp_client_sync.c \
 1732     src/responder/ifp/ifp_iface/sbus_ifp_keygens.c \
 1733     src/responder/ifp/ifp_iface/sbus_ifp_symbols.c \
 1734     src/responder/ifp/ifp_iface/ifp_iface_types.c \
 1735     $(NULL)
 1736 libifp_iface_sync_la_LIBADD = \
 1737     $(DHASH_LIBS) \
 1738     $(TALLOC_LIBS) \
 1739     $(TEVENT_LIBS) \
 1740     $(DBUS_LIBS) \
 1741     libsss_sbus_sync.la \
 1742     $(NULL)
 1743 libifp_iface_sync_la_CFLAGS = \
 1744     $(AM_CFLAGS) \
 1745 	$(DHASH_CFLAGS) \
 1746     $(TALLOC_CFLAGS) \
 1747     $(TEVENT_CFLAGS) \
 1748     $(DBUS_CFLAGS) \
 1749     $(NULL)
 1750 libifp_iface_sync_la_LDFLAGS = \
 1751     -avoid-version \
 1752     $(NULL)
 1753 
 1754 sssd_ifp_SOURCES = \
 1755     src/responder/ifp/ifpsrv.c \
 1756     src/responder/ifp/ifpsrv_cmd.c \
 1757     src/responder/ifp/ifp_iface_nodes.c \
 1758     src/responder/ifp/ifpsrv_util.c \
 1759     src/responder/ifp/ifp_domains.c \
 1760     src/responder/ifp/ifp_components.c \
 1761     src/responder/ifp/ifp_users.c \
 1762     src/responder/ifp/ifp_groups.c \
 1763     src/responder/ifp/ifp_cache.c \
 1764     $(SSSD_RESPONDER_OBJ)
 1765 sssd_ifp_CFLAGS = \
 1766     $(AM_CFLAGS)
 1767 sssd_ifp_LDADD = \
 1768     $(LIBADD_DL) \
 1769     $(SSSD_LIBS) \
 1770     $(SYSTEMD_DAEMON_LIBS) \
 1771     $(SSSD_INTERNAL_LTLIBS) \
 1772     libsss_cert.la \
 1773     libifp_iface.la \
 1774     libsss_iface.la \
 1775     libsss_sbus.la \
 1776     $(NULL)
 1777 
 1778 dist_dbuspolicy_DATA = \
 1779     src/responder/ifp/org.freedesktop.sssd.infopipe.conf
 1780 dist_dbusservice_DATA = \
 1781     src/responder/ifp/org.freedesktop.sssd.infopipe.service
 1782 
 1783 EXTRA_DIST += \
 1784     src/responder/ifp/org.freedesktop.sssd.infopipe.service.in \
 1785     $(NULL)
 1786 
 1787 ifp_edit_cmd = $(edit_cmd) \
 1788         -e 's|@ifp_exec_cmd[@]|$(ifp_exec_cmd)|g' \
 1789         -e 's|@ifp_systemdservice[@]|$(ifp_systemdservice)|g' \
 1790         -e 's|@ifp_restart[@]|$(ifp_restart)|g'
 1791 
 1792 ifp_replace_script = \
 1793     @rm -f $@ $@.tmp; \
 1794     srcdir=''; \
 1795         test -f ./$@.in || srcdir=$(srcdir)/; \
 1796         $(ifp_edit_cmd) $${srcdir}$@.in >$@.tmp; \
 1797     mv $@.tmp $@
 1798 
 1799 src/responder/ifp/org.freedesktop.sssd.infopipe.service: src/responder/ifp/org.freedesktop.sssd.infopipe.service.in Makefile
 1800 	$(ifp_replace_script)
 1801 
 1802 endif
 1803 
 1804 if BUILD_SECRETS
 1805 sssd_secrets_SOURCES = \
 1806     src/responder/secrets/secsrv.c \
 1807     src/responder/secrets/secsrv_cmd.c \
 1808     src/responder/secrets/providers.c \
 1809     src/responder/secrets/local.c \
 1810     src/responder/secrets/proxy.c \
 1811     src/util/sss_sockets.c \
 1812     src/util/sss_iobuf.c \
 1813     src/util/tev_curl.c \
 1814     $(SSSD_RESPONDER_OBJ) \
 1815     $(NULL)
 1816 sssd_secrets_LDADD = \
 1817     $(LIBADD_DL) \
 1818     $(HTTP_PARSER_LIBS) \
 1819     $(JANSSON_LIBS) \
 1820     $(TDB_LIBS) \
 1821     $(SSSD_LIBS) \
 1822     $(SYSTEMD_DAEMON_LIBS) \
 1823     $(SSSD_INTERNAL_LTLIBS) \
 1824     $(CURL_LIBS) \
 1825     libsss_iface.la \
 1826     libsss_sbus.la \
 1827     libsss_secrets.la \
 1828     $(NULL)
 1829 endif
 1830 
 1831 if BUILD_KCM
 1832 sssd_kcm_SOURCES = \
 1833     src/responder/kcm/kcm.c \
 1834     src/responder/kcm/kcmsrv_cmd.c \
 1835     src/responder/kcm/kcmsrv_ccache.c \
 1836     src/responder/kcm/kcmsrv_ccache_mem.c \
 1837     src/responder/kcm/kcmsrv_ccache_json.c \
 1838     src/responder/kcm/kcmsrv_ccache_secdb.c \
 1839     src/responder/kcm/kcmsrv_ops.c \
 1840     src/responder/kcm/kcmsrv_op_queue.c \
 1841     src/util/sss_sockets.c \
 1842     src/util/sss_krb5.c \
 1843     src/util/sss_iobuf.c \
 1844     $(SSSD_RESPONDER_OBJ) \
 1845     $(NULL)
 1846 sssd_kcm_CFLAGS = \
 1847     $(AM_CFLAGS) \
 1848     $(KRB5_CFLAGS) \
 1849     $(UUID_CFLAGS) \
 1850     $(CURL_CFLAGS) \
 1851     $(JANSSON_CFLAGS) \
 1852     $(NULL)
 1853 sssd_kcm_LDADD = \
 1854     $(LIBADD_DL) \
 1855     $(KRB5_LIBS) \
 1856     $(JANSSON_LIBS) \
 1857     $(SSSD_LIBS) \
 1858     $(UUID_LIBS) \
 1859     $(SYSTEMD_DAEMON_LIBS) \
 1860     $(SSSD_INTERNAL_LTLIBS) \
 1861     libsss_iface.la \
 1862     libsss_sbus.la \
 1863     libsss_secrets.la \
 1864     $(NULL)
 1865 
 1866 if BUILD_SECRETS
 1867 sssd_kcm_SOURCES += \
 1868     src/responder/kcm/kcmsrv_ccache_secrets.c \
 1869     src/util/tev_curl.c \
 1870     $(NULL)
 1871 sssd_kcm_LDADD += \
 1872     $(CURL_LIBS) \
 1873     $(NULL)
 1874 endif
 1875 
 1876 endif
 1877 
 1878 sssd_be_SOURCES = \
 1879     src/providers/data_provider_be.c \
 1880     src/providers/data_provider_req.c \
 1881     src/providers/data_provider_fo.c \
 1882     src/providers/data_provider_opts.c \
 1883     src/providers/data_provider_callbacks.c \
 1884     src/providers/be_dyndns.c \
 1885     src/providers/be_ptask.c \
 1886     src/providers/be_refresh.c \
 1887     src/providers/data_provider/dp.c \
 1888     src/providers/data_provider/dp_modules.c \
 1889     src/providers/data_provider/dp_targets.c \
 1890     src/providers/data_provider/dp_methods.c \
 1891     src/providers/data_provider/dp_builtin.c \
 1892     src/providers/data_provider/dp_iface_backend.c \
 1893     src/providers/data_provider/dp_iface_failover.c \
 1894     src/providers/data_provider/dp_client.c \
 1895     src/providers/data_provider/dp_resp_client.c \
 1896     src/providers/data_provider/dp_request.c \
 1897     src/providers/data_provider/dp_reply_std.c \
 1898     src/providers/data_provider/dp_target_sudo.c \
 1899     src/providers/data_provider/dp_target_hostid.c \
 1900     src/providers/data_provider/dp_target_autofs.c \
 1901     src/providers/data_provider/dp_target_subdomains.c \
 1902     src/providers/data_provider/dp_target_id.c \
 1903     src/providers/data_provider/dp_target_auth.c \
 1904     src/util/session_recording.c \
 1905     $(SSSD_FAILOVER_OBJ)
 1906 sssd_be_LDADD = \
 1907     $(LIBADD_DL) \
 1908     $(SSSD_LIBS) \
 1909     $(CARES_LIBS) \
 1910     $(PAM_LIBS) \
 1911     $(SSSD_INTERNAL_LTLIBS) \
 1912     libsss_iface.la \
 1913     libsss_sbus.la \
 1914     $(NULL)
 1915 sssd_be_LDFLAGS = \
 1916     -Wl,--version-script,$(srcdir)/src/providers/sssd_be.exports \
 1917     -export-dynamic
 1918 if BUILD_SYSTEMTAP
 1919 sssd_be_LDADD += stap_generated_probes.lo
 1920 endif
 1921 
 1922 if BUILD_PYTHON_BINDINGS
 1923 sss_obfuscate_pythondir = $(sbindir)
 1924 dist_sss_obfuscate_python_SCRIPTS = \
 1925     src/tools/sss_obfuscate
 1926 endif
 1927 
 1928 
 1929 
 1930 dist_noinst_DATA += \
 1931     src/examples/sssd-example.conf \
 1932     src/examples/sssdproxytest \
 1933     src/examples/sudo \
 1934     src/examples/logrotate \
 1935     src/providers/sssd_be.exports \
 1936     src/sss_client/COPYING \
 1937     src/sss_client/COPYING.LESSER \
 1938     src/m4
 1939 
 1940 dist_sssddefaultconf_DATA = \
 1941     src/examples/sssd.conf
 1942 
 1943 dist_pamconf_DATA = \
 1944     src/examples/sssd-shadowutils
 1945 
 1946 ######################
 1947 # Command-line Tools #
 1948 ######################
 1949 sss_useradd_SOURCES = \
 1950     src/tools/sss_useradd.c \
 1951     $(SSSD_TOOLS_OBJ)
 1952 sss_useradd_LDADD = \
 1953     $(TOOLS_LIBS) \
 1954     $(SSSD_INTERNAL_LTLIBS) \
 1955     libsss_semanage.la \
 1956     $(NULL)
 1957 
 1958 sss_userdel_SOURCES = \
 1959     src/tools/sss_userdel.c \
 1960     $(SSSD_LCL_TOOLS_OBJ)
 1961 sss_userdel_LDADD = \
 1962     $(TOOLS_LIBS) \
 1963     $(SSSD_INTERNAL_LTLIBS) \
 1964     $(CLIENT_LIBS) \
 1965     libsss_semanage.la \
 1966     $(NULL)
 1967 sss_userdel_CFLAGS = \
 1968     $(AM_CFLAGS)
 1969 
 1970 sss_groupadd_SOURCES = \
 1971     src/tools/sss_groupadd.c \
 1972     $(SSSD_TOOLS_OBJ)
 1973 sss_groupadd_LDADD = \
 1974     $(TOOLS_LIBS) \
 1975     $(SSSD_INTERNAL_LTLIBS)
 1976 
 1977 sss_groupdel_SOURCES = \
 1978     src/tools/sss_groupdel.c \
 1979     $(SSSD_LCL_TOOLS_OBJ)
 1980 sss_groupdel_LDADD = \
 1981     $(TOOLS_LIBS) \
 1982     $(SSSD_INTERNAL_LTLIBS) \
 1983     $(CLIENT_LIBS)
 1984 sss_groupdel_CFLAGS = $(AM_CFLAGS)
 1985 
 1986 sss_usermod_SOURCES = \
 1987     src/tools/sss_usermod.c \
 1988     $(SSSD_LCL_TOOLS_OBJ)
 1989 sss_usermod_LDADD = \
 1990     $(TOOLS_LIBS) \
 1991     $(SSSD_INTERNAL_LTLIBS) \
 1992     $(CLIENT_LIBS) \
 1993     libsss_semanage.la \
 1994     $(NULL)
 1995 sss_usermod_CFLAGS = $(AM_CFLAGS)
 1996 
 1997 sss_groupmod_SOURCES = \
 1998     src/tools/sss_groupmod.c \
 1999     $(SSSD_LCL_TOOLS_OBJ)
 2000 sss_groupmod_LDADD = \
 2001     $(TOOLS_LIBS) \
 2002     $(SSSD_INTERNAL_LTLIBS) \
 2003     $(CLIENT_LIBS)
 2004 sss_groupmod_CFLAGS = $(AM_CFLAGS)
 2005 
 2006 sss_groupshow_SOURCES = \
 2007     src/tools/sss_groupshow.c \
 2008     $(SSSD_TOOLS_OBJ)
 2009 sss_groupshow_LDADD = \
 2010     $(TOOLS_LIBS) \
 2011     $(SSSD_INTERNAL_LTLIBS)
 2012 
 2013 sss_cache_SOURCES = \
 2014     src/tools/sss_cache.c \
 2015     $(SSSD_LCL_TOOLS_OBJ)
 2016 sss_cache_LDADD = \
 2017     $(TOOLS_LIBS) \
 2018     $(SSSD_INTERNAL_LTLIBS) \
 2019     $(CLIENT_LIBS)
 2020 sss_cache_CFLAGS = $(AM_CFLAGS)
 2021 
 2022 sss_seed_SOURCES = \
 2023     src/tools/sss_seed.c \
 2024     $(SSSD_TOOLS_OBJ)
 2025 sss_seed_LDADD = \
 2026     $(TOOLS_LIBS) \
 2027     $(SSSD_INTERNAL_LTLIBS)
 2028 
 2029 sss_signal_SOURCES = \
 2030     src/tools/sss_signal.c \
 2031     src/tools/common/sss_process.c
 2032     $(NULL)
 2033 sss_signal_LDADD = \
 2034     libsss_debug.la \
 2035     $(NULL)
 2036 
 2037 sss_override_SOURCES = \
 2038     src/tools/sss_override.c \
 2039     src/tools/common/sss_colondb.c \
 2040     $(SSSD_TOOLS_OBJ) \
 2041     $(NULL)
 2042 sss_override_LDADD = \
 2043     $(TOOLS_LIBS) \
 2044     $(SSSD_INTERNAL_LTLIBS) \
 2045     $(NULL)
 2046 sss_override_CFLAGS = \
 2047     $(AM_CFLAGS) \
 2048     $(NULL)
 2049 
 2050 sssctl_SOURCES = \
 2051     src/tools/sssctl/sssctl.c \
 2052     src/tools/sssctl/sssctl_systemd.c \
 2053     src/tools/sssctl/sssctl_cache.c \
 2054     src/tools/sssctl/sssctl_data.c \
 2055     src/tools/sssctl/sssctl_logs.c \
 2056     src/tools/sssctl/sssctl_domains.c \
 2057     src/tools/sssctl/sssctl_config.c \
 2058     src/tools/sssctl/sssctl_user_checks.c \
 2059     src/tools/sssctl/sssctl_access_report.c \
 2060     src/tools/sssctl/sssctl_cert.c \
 2061     $(SSSD_TOOLS_OBJ) \
 2062     $(NULL)
 2063 sssctl_LDADD = \
 2064     $(TOOLS_LIBS) \
 2065     $(INI_CONFIG_LIBS) \
 2066     $(SSSD_INTERNAL_LTLIBS) \
 2067     $(PAM_LIBS) \
 2068     $(PAM_MISC_LIBS) \
 2069     $(LIBADD_DL) \
 2070     libsss_certmap.la \
 2071     libifp_iface_sync.la \
 2072     libsss_iface_sync.la \
 2073     libsss_sbus_sync.la \
 2074     $(NULL)
 2075 sssctl_CFLAGS = \
 2076     $(AM_CFLAGS) \
 2077     $(NULL)
 2078 
 2079 if BUILD_SUDO
 2080 sss_sudo_cli_SOURCES = \
 2081     src/sss_client/common.c \
 2082     src/sss_client/sudo/sss_sudo.c \
 2083     src/sss_client/sudo/sss_sudo_response.c \
 2084     src/sss_client/sudo_testcli/sudo_testcli.c
 2085 sss_sudo_cli_CFLAGS = $(AM_CFLAGS)
 2086 sss_sudo_cli_LDADD = $(CLIENT_LIBS)
 2087 endif
 2088 
 2089 if BUILD_SSH
 2090 sss_ssh_authorizedkeys_SOURCES = \
 2091     src/sss_client/common.c \
 2092     src/sss_client/ssh/sss_ssh_client.c \
 2093     src/sss_client/ssh/sss_ssh_authorizedkeys.c
 2094 sss_ssh_authorizedkeys_CFLAGS = $(AM_CFLAGS)
 2095 sss_ssh_authorizedkeys_LDADD = \
 2096     $(SSSD_INTERNAL_LTLIBS) \
 2097     $(CLIENT_LIBS) $(TALLOC_LIBS) $(POPT_LIBS)
 2098 
 2099 sss_ssh_knownhostsproxy_SOURCES = \
 2100     src/sss_client/common.c \
 2101     src/sss_client/ssh/sss_ssh_client.c \
 2102     src/sss_client/ssh/sss_ssh_knownhostsproxy.c
 2103 sss_ssh_knownhostsproxy_CFLAGS = $(AM_CFLAGS)
 2104 sss_ssh_knownhostsproxy_LDADD = \
 2105     $(SSSD_INTERNAL_LTLIBS) \
 2106     $(CLIENT_LIBS) $(TALLOC_LIBS) $(POPT_LIBS)
 2107 endif
 2108 
 2109 if HAVE_SYSTEMD_UNIT
 2110 sssd_check_socket_activated_responders_SOURCES = \
 2111     src/tools/sssd_check_socket_activated_responders.c \
 2112     $(NULL)
 2113 sssd_check_socket_activated_responders_CFLAGS = \
 2114     $(AM_CFLAGS) \
 2115     $(NULL)
 2116 sssd_check_socket_activated_responders_LDADD = \
 2117     $(SSSD_INTERNAL_LTLIBS) \
 2118     $(LTLIBINTL) \
 2119     $(TALLOC_LIBS) \
 2120     $(POPT_LIBS) \
 2121     $(INI_CONFIG_LIBS) \
 2122     $(NULL)
 2123 endif
 2124 
 2125 pkgconfig_DATA += src/lib/certmap/sss_certmap.pc
 2126 libsss_certmap_la_DEPENDENCIES = src/lib/certmap/sss_certmap.exports
 2127 libsss_certmap_la_SOURCES = \
 2128     src/lib/certmap/sss_certmap.c \
 2129     src/lib/certmap/sss_certmap_attr_names.c \
 2130     src/lib/certmap/sss_certmap_krb5_match.c \
 2131     src/lib/certmap/sss_certmap_ldap_mapping.c \
 2132     src/lib/certmap/sss_cert_content_common.c \
 2133     src/util/util_ext.c \
 2134     src/util/cert/cert_common.c \
 2135     $(NULL)
 2136 libsss_certmap_la_CFLAGS = \
 2137     $(AM_CFLAGS) \
 2138     $(TALLOC_CFLAGS) \
 2139     $(NULL)
 2140 libsss_certmap_la_LIBADD = \
 2141     $(TALLOC_LIBS) \
 2142     $(NULL)
 2143 libsss_certmap_la_LDFLAGS = \
 2144     -Wl,--version-script,$(srcdir)/src/lib/certmap/sss_certmap.exports \
 2145     -version-info 1:0:1
 2146 
 2147 if HAVE_NSS
 2148 libsss_certmap_la_SOURCES += \
 2149     src/lib/certmap/sss_cert_content_nss.c \
 2150     src/util/crypto/nss/nss_base64.c \
 2151     src/util/cert/nss/cert.c \
 2152     src/util/crypto/nss/nss_util.c \
 2153     $(NULL)
 2154 libsss_certmap_la_CFLAGS += $(NSS_CFLAGS)
 2155 libsss_certmap_la_LIBADD += $(NSS_LIBS)
 2156 else
 2157 libsss_certmap_la_SOURCES += \
 2158     src/lib/certmap/sss_cert_content_crypto.c \
 2159     src/util/crypto/libcrypto/crypto_base64.c \
 2160     src/util/cert/libcrypto/cert.c \
 2161     $(NULL)
 2162 
 2163 libsss_certmap_la_CFLAGS += $(CRYPTO_CFLAGS)
 2164 libsss_certmap_la_LIBADD += $(CRYPTO_LIBS)
 2165 endif
 2166 
 2167 dist_noinst_DATA += src/lib/certmap/sss_certmap.exports
 2168 dist_noinst_HEADERS += src/lib/certmap/sss_certmap_int.h
 2169 
 2170 #################
 2171 # Feature Tests #
 2172 #################
 2173 TESTS_ENVIRONMENT = LDB_MODULES_PATH=$(abs_top_builddir)/ldb_mod_test_dir \
 2174                     SSS_TEST_DIR=$(TEST_DIR) \
 2175                     ABS_TOP_SRCDIR=$(abs_top_srcdir) \
 2176                     $(AUX_TESTS_ENVIRONMENT)
 2177 
 2178 if VALGRIND_ENABLED
 2179 @VALGRIND_CHECK_RULES@
 2180 VALGRIND_SUPPRESSIONS_FILES = $(abs_top_srcdir)/contrib/ci/sssd.supp
 2181 endif
 2182 
 2183 ldb_mod_test_dir: memberof.la
 2184 	$(MKDIR_P) $(builddir)/ldb_mod_test_dir
 2185 	cp $(builddir)/.libs/memberof.so $(builddir)/ldb_mod_test_dir
 2186 
 2187 check_LTLIBRARIES = \
 2188     libsss_test_common.la
 2189 
 2190 libsss_test_common_la_SOURCES = \
 2191     src/tests/common_tev.c \
 2192     src/tests/common_dom.c \
 2193     src/tests/leak_check.c \
 2194     src/tests/common.c
 2195 libsss_test_common_la_LIBADD = \
 2196     $(TALLOC_LIBS) \
 2197     $(TEVENT_LIBS) \
 2198     $(LDB_LIBS) \
 2199     $(SSSD_INTERNAL_LTLIBS) \
 2200     $(NULL)
 2201 if BUILD_SYSTEMTAP
 2202 libsss_test_common_la_LIBADD += stap_generated_probes.lo
 2203 endif
 2204 
 2205 if HAVE_CHECK
 2206 libsss_test_common_la_SOURCES += \
 2207     src/tests/common_check.c
 2208 
 2209 check_LTLIBRARIES += \
 2210     libdlopen_test_providers.la \
 2211     libsss_nss_idmap_tests.la \
 2212     $(NULL)
 2213 
 2214 if BUILD_SAMBA
 2215 check_LTLIBRARIES += \
 2216     libsss_ad_tests.la \
 2217     libdlopen_test_winbind_idmap.la \
 2218     $(NULL)
 2219 endif
 2220 
 2221 # libdlopen_test_providers is a helper library to provide missing symbols for
 2222 # dlopen_tests. It is mainly used for the backend modules but is used as well
 2223 # to provide __wrap_sss_nss_make_request_timeout needed make make dlopen_tests
 2224 # pass for libsss_nss_idmap_tests.
 2225 libdlopen_test_providers_la_SOURCES = \
 2226     $(sssd_be_SOURCES) \
 2227     src/tests/cmocka/wrap_sss_nss_make_request_timeout.c \
 2228     $(NULL)
 2229 libdlopen_test_providers_la_CFLAGS = \
 2230     $(AM_CFLAGS) \
 2231     $(CHECK_CFLAGS) \
 2232     -DUNIT_TESTING
 2233 libdlopen_test_providers_la_LIBADD = \
 2234     $(LIBADD_DL) \
 2235     $(PAM_LIBS) \
 2236     $(SSSD_LIBS) \
 2237     $(CARES_LIBS) \
 2238     $(SSSD_INTERNAL_LTLIBS) \
 2239     libsss_iface.la \
 2240     libsss_sbus.la \
 2241     $(NULL)
 2242 if BUILD_SYSTEMTAP
 2243 libdlopen_test_providers_la_LIBADD += stap_generated_probes.lo
 2244 endif
 2245 libdlopen_test_providers_la_LDFLAGS = \
 2246     -shared \
 2247     -avoid-version \
 2248     -Wl,--version-script,$(srcdir)/src/providers/sssd_be.exports \
 2249     -rpath $(abs_top_builddir) \
 2250     -export-dynamic
 2251 
 2252 libsss_nss_idmap_tests_la_SOURCES = $(libsss_nss_idmap_la_SOURCES)
 2253 libsss_nss_idmap_tests_la_LIBADD = $(libsss_nss_idmap_la_LIBADD)
 2254 libsss_nss_idmap_tests_la_LDFLAGS = \
 2255     $(libsss_nss_idmap_la_LDFLAGS) \
 2256     -shared \
 2257     -rpath $(libdir) \
 2258     -Wl,-wrap,sss_nss_make_request_timeout \
 2259     -Wl,--version-script,$(srcdir)/src/sss_client/idmap/sss_nss_idmap.unit_tests
 2260 
 2261 dist_noinst_DATA += src/sss_client/idmap/sss_nss_idmap.unit_tests
 2262 
 2263 libsss_ad_tests_la_SOURCES = $(libsss_ad_la_SOURCES)
 2264 libsss_ad_tests_la_CFLAGS = $(libsss_ad_la_CFLAGS)
 2265 libsss_ad_tests_la_LIBADD = \
 2266     $(libsss_ad_la_LIBADD) \
 2267     libdlopen_test_providers.la \
 2268     $(NULL)
 2269 libsss_ad_tests_la_LDFLAGS = \
 2270     -shared \
 2271     -rpath $(abs_top_builddir) \
 2272     $(NULL)
 2273 
 2274 dlopen_tests_SOURCES = \
 2275     src/tests/dlopen-tests.c
 2276 dlopen_tests_CFLAGS = \
 2277     $(AM_CFLAGS) \
 2278     $(CHECK_CFLAGS)
 2279 dlopen_tests_LDADD = \
 2280     $(LIBADD_DL) \
 2281     $(CHECK_LIBS)
 2282 
 2283 EXTRA_sysdb_tests_DEPENDENCIES = \
 2284     $(ldblib_LTLIBRARIES)
 2285 sysdb_tests_SOURCES = \
 2286     src/tests/sysdb-tests.c
 2287 sysdb_tests_CFLAGS = \
 2288     $(AM_CFLAGS) \
 2289     $(CHECK_CFLAGS)
 2290 sysdb_tests_LDADD = \
 2291     $(SSSD_LIBS) \
 2292     $(CHECK_LIBS) \
 2293     $(SSSD_INTERNAL_LTLIBS) \
 2294     libsss_test_common.la
 2295 
 2296 EXTRA_sysdb_ssh_tests_DEPENDENCIES = \
 2297     $(ldblib_LTLIBRARIES)
 2298 sysdb_ssh_tests_SOURCES = \
 2299     src/tests/sysdb_ssh-tests.c
 2300 sysdb_ssh_tests_CFLAGS = \
 2301     $(AM_CFLAGS)\
 2302     $(CHECK_CFLAGS)
 2303 sysdb_ssh_tests_LDADD = \
 2304     $(SSSD_LIBS) \
 2305     $(CHECK_LIBS) \
 2306     $(SSSD_INTERNAL_LTLIBS) \
 2307     libsss_test_common.la
 2308 
 2309 strtonum_tests_SOURCES = \
 2310     src/tests/strtonum-tests.c \
 2311     src/util/strtonum.c
 2312 strtonum_tests_CFLAGS = \
 2313     $(AM_CFLAGS) \
 2314     $(CHECK_CFLAGS)
 2315 strtonum_tests_LDADD = \
 2316     $(SSSD_LIBS) \
 2317     $(CHECK_LIBS) \
 2318     libsss_debug.la \
 2319     libsss_test_common.la
 2320 
 2321 krb5_utils_tests_SOURCES = \
 2322     src/tests/krb5_utils-tests.c \
 2323     src/providers/krb5/krb5_utils.c \
 2324     src/providers/krb5/krb5_ccache.c \
 2325     src/providers/krb5/krb5_common.c \
 2326     src/providers/krb5/krb5_opts.c \
 2327     src/util/sss_krb5.c \
 2328     src/util/sss_iobuf.c \
 2329     src/providers/data_provider_fo.c \
 2330     src/providers/data_provider_opts.c \
 2331     src/providers/data_provider_callbacks.c \
 2332     src/util/become_user.c \
 2333     $(SSSD_FAILOVER_OBJ) \
 2334     $(NULL)
 2335 krb5_utils_tests_CFLAGS = \
 2336     $(AM_CFLAGS) \
 2337     $(KRB5_CFLAGS) \
 2338     $(CHECK_CFLAGS)
 2339 krb5_utils_tests_LDADD = \
 2340     $(SSSD_LIBS)\
 2341     $(CARES_LIBS) \
 2342     $(KRB5_LIBS) \
 2343     $(CHECK_LIBS) \
 2344     $(PCRE_LIBS) \
 2345     $(SSSD_INTERNAL_LTLIBS) \
 2346     libsss_test_common.la
 2347 
 2348 
 2349 check_and_open_tests_SOURCES = \
 2350     src/tests/check_and_open-tests.c \
 2351     src/util/check_and_open.c
 2352 check_and_open_tests_CFLAGS = \
 2353     $(AM_CFLAGS) \
 2354     $(CHECK_CFLAGS)
 2355 check_and_open_tests_LDADD = \
 2356     libsss_debug.la \
 2357     $(CHECK_LIBS) \
 2358     libsss_test_common.la
 2359 
 2360 FILES_TESTS_LIBS = \
 2361     $(CHECK_LIBS) \
 2362     $(POPT_LIBS) \
 2363     $(TALLOC_LIBS) \
 2364     libsss_test_common.la
 2365 if BUILD_SELINUX
 2366     FILES_TESTS_LIBS += $(SELINUX_LIBS)
 2367 endif
 2368 if BUILD_SEMANAGE
 2369     FILES_TESTS_LIBS += $(SEMANAGE_LIBS)
 2370 endif
 2371 
 2372 if HAVE_INOTIFY
 2373 files_tests_SOURCES = \
 2374     src/tests/files-tests.c \
 2375     src/util/check_and_open.c \
 2376     src/util/atomic_io.c \
 2377     src/util/selinux.c \
 2378     src/util/files.c
 2379 files_tests_CFLAGS = \
 2380     $(AM_CFLAGS) \
 2381     $(CHECK_CFLAGS)
 2382 files_tests_LDADD = \
 2383     $(FILES_TESTS_LIBS) \
 2384     libsss_test_common.la \
 2385     $(SSSD_INTERNAL_LTLIBS)
 2386 endif   # HAVE_INOTIFY
 2387 
 2388 SSSD_RESOLV_TESTS_OBJ = \
 2389     $(SSSD_RESOLV_OBJ)
 2390 
 2391 resolv_tests_SOURCES = \
 2392     src/tests/resolv-tests.c \
 2393     src/tests/common.c \
 2394     $(SSSD_RESOLV_TESTS_OBJ)
 2395 resolv_tests_CFLAGS = \
 2396     $(AM_CFLAGS) \
 2397     $(CHECK_CFLAGS) \
 2398     -DBUILD_TXT
 2399 resolv_tests_LDADD = \
 2400     $(SSSD_LIBS) \
 2401     $(CHECK_LIBS) \
 2402     $(CARES_LIBS) \
 2403     libsss_debug.la \
 2404     libsss_test_common.la
 2405 
 2406 refcount_tests_SOURCES = \
 2407     src/tests/refcount-tests.c \
 2408     $(NULL)
 2409 refcount_tests_CFLAGS = \
 2410     $(AM_CFLAGS) \
 2411     $(CHECK_CFLAGS)
 2412 refcount_tests_LDADD = \
 2413     $(SSSD_LIBS) \
 2414     $(CHECK_LIBS) \
 2415     $(SSSD_INTERNAL_LTLIBS) \
 2416     libsss_test_common.la
 2417 
 2418 fail_over_tests_SOURCES = \
 2419     src/tests/fail_over-tests.c \
 2420     $(SSSD_FAILOVER_OBJ) \
 2421     $(NULL)
 2422 fail_over_tests_CFLAGS = \
 2423     $(AM_CFLAGS) \
 2424     $(CHECK_CFLAGS)
 2425 fail_over_tests_LDADD = \
 2426     $(SSSD_LIBS) \
 2427     $(CHECK_LIBS) \
 2428     $(CARES_LIBS) \
 2429     $(SSSD_INTERNAL_LTLIBS) \
 2430     libsss_test_common.la
 2431 
 2432 find_uid_tests_SOURCES = \
 2433     src/tests/find_uid-tests.c \
 2434     src/util/find_uid.c \
 2435     src/util/atomic_io.c \
 2436     src/util/strtonum.c
 2437 find_uid_tests_CFLAGS = \
 2438     $(AM_CFLAGS) \
 2439     $(TALLOC_CFLAGS) \
 2440     $(DHASH_CFLAGS) \
 2441     $(CHECK_CFLAGS) \
 2442     $(SYSTEMD_LOGIN_CFLAGS)
 2443 find_uid_tests_LDADD = \
 2444     libsss_debug.la \
 2445     $(TALLOC_LIBS) \
 2446     $(DHASH_LIBS) \
 2447     $(CHECK_LIBS) \
 2448     $(SYSTEMD_LOGIN_LIBS) \
 2449     libsss_test_common.la
 2450 
 2451 auth_tests_SOURCES = \
 2452     src/tests/auth-tests.c
 2453 auth_tests_CFLAGS = \
 2454     $(AM_CFLAGS) \
 2455     $(CHECK_CFLAGS)
 2456 auth_tests_LDADD = \
 2457     $(SSSD_LIBS) \
 2458     $(CHECK_LIBS) \
 2459     $(SSSD_INTERNAL_LTLIBS) \
 2460     libsss_test_common.la
 2461 
 2462 ipa_ldap_opt_tests_SOURCES = \
 2463     src/providers/data_provider_opts.c \
 2464     src/providers/ldap/sdap.c \
 2465     src/providers/ldap/sdap_range.c \
 2466     src/providers/ldap/sdap_domain.c \
 2467     src/providers/ldap/ldap_opts.c \
 2468     src/providers/ad/ad_opts.c \
 2469     src/providers/ipa/ipa_opts.c \
 2470     src/providers/krb5/krb5_opts.c \
 2471     src/util/sss_sockets.c \
 2472     src/util/sss_ldap.c \
 2473     src/tests/ipa_ldap_opt-tests.c
 2474 ipa_ldap_opt_tests_CFLAGS = \
 2475     $(AM_CFLAGS) \
 2476     $(CHECK_CFLAGS)
 2477 ipa_ldap_opt_tests_LDADD = \
 2478     $(CHECK_LIBS) \
 2479     $(TALLOC_LIBS) \
 2480     $(LDB_LIBS) \
 2481     $(SSSD_INTERNAL_LTLIBS) \
 2482     $(OPENLDAP_LIBS) \
 2483     libsss_test_common.la
 2484 
 2485 ad_ldap_opt_tests_SOURCES = \
 2486     src/providers/ldap/ldap_opts.c \
 2487     src/providers/ad/ad_opts.c \
 2488     src/providers/krb5/krb5_opts.c \
 2489     src/tests/ad_ldap_opt-tests.c
 2490 ad_ldap_opt_tests_CFLAGS = \
 2491     $(AM_CFLAGS) \
 2492     $(CHECK_CFLAGS)
 2493 ad_ldap_opt_tests_LDADD = \
 2494     $(CHECK_LIBS) \
 2495     $(TALLOC_LIBS) \
 2496     libsss_test_common.la
 2497 
 2498 util_tests_SOURCES = \
 2499     src/tests/util-tests.c \
 2500     $(NULL)
 2501 util_tests_CFLAGS = \
 2502     $(AM_CFLAGS) \
 2503     $(CHECK_CFLAGS) \
 2504     $(NULL)
 2505 util_tests_LDADD = \
 2506     $(SSSD_LIBS) \
 2507     $(CHECK_LIBS) \
 2508     $(SSSD_INTERNAL_LTLIBS) \
 2509     libsss_test_common.la \
 2510     $(NULL)
 2511 
 2512 safe_format_tests_SOURCES = \
 2513     src/tests/safe-format-tests.c
 2514 safe_format_tests_CFLAGS = \
 2515     $(AM_CFLAGS) \
 2516     $(CHECK_CFLAGS)
 2517 safe_format_tests_LDADD = \
 2518     $(SSSD_LIBS) \
 2519     $(CHECK_LIBS) \
 2520     $(SSSD_INTERNAL_LTLIBS) \
 2521     libsss_test_common.la
 2522 
 2523 debug_tests_SOURCES = \
 2524     src/tests/debug-tests.c \
 2525     src/tests/common.c
 2526 debug_tests_CFLAGS = \
 2527     $(AM_CFLAGS) \
 2528     $(CHECK_CFLAGS)
 2529 debug_tests_LDADD = \
 2530     $(SSSD_LIBS) \
 2531     $(CHECK_LIBS) \
 2532     libsss_debug.la
 2533 
 2534 crypto_tests_SOURCES = \
 2535     src/tests/crypto-tests.c
 2536 crypto_tests_CFLAGS = \
 2537     $(AM_CFLAGS) \
 2538     $(CHECK_CFLAGS)
 2539 crypto_tests_LDADD = \
 2540     $(CHECK_LIBS) \
 2541     $(POPT_LIBS) \
 2542     $(TALLOC_LIBS) \
 2543     libsss_crypt.la \
 2544     libsss_debug.la \
 2545     libsss_test_common.la
 2546 
 2547 ipa_hbac_tests_SOURCES = \
 2548     src/tests/ipa_hbac-tests.c
 2549 ipa_hbac_tests_CFLAGS = \
 2550     $(AM_CFLAGS) \
 2551     $(CHECK_CFLAGS)
 2552 ipa_hbac_tests_LDADD = \
 2553     $(SSSD_LIBS) \
 2554     $(CHECK_LIBS) \
 2555     libsss_test_common.la \
 2556     libipa_hbac.la
 2557 
 2558 sss_idmap_tests_SOURCES = \
 2559     src/tests/sss_idmap-tests.c
 2560 sss_idmap_tests_CFLAGS = \
 2561     $(AM_CFLAGS) \
 2562     $(CHECK_CFLAGS)
 2563 sss_idmap_tests_LDADD = \
 2564     $(CHECK_LIBS) \
 2565     $(TALLOC_LIBS) \
 2566     libsss_test_common.la \
 2567     libsss_idmap.la
 2568 
 2569 responder_socket_access_tests_SOURCES = \
 2570     src/tests/responder_socket_access-tests.c \
 2571     src/responder/common/negcache_files.c \
 2572     src/responder/common/negcache.c \
 2573     src/util/nss_dl_load.c \
 2574     src/responder/common/responder_common.c \
 2575     src/responder/common/responder_packet.c \
 2576     src/responder/common/responder_cmd.c \
 2577     src/responder/common/cache_req/cache_req_domain.c \
 2578     src/util/session_recording.c \
 2579     $(SSSD_RESPONDER_IFACE_OBJ) \
 2580     $(NULL)
 2581 responder_socket_access_tests_CFLAGS = \
 2582     $(AM_CFLAGS) \
 2583     $(CHECK_CFLAGS)
 2584 responder_socket_access_tests_LDADD = \
 2585     $(LIBADD_DL) \
 2586     $(CHECK_LIBS) \
 2587     $(SSSD_LIBS) \
 2588     $(SSSD_INTERNAL_LTLIBS) \
 2589     $(SYSTEMD_DAEMON_LIBS) \
 2590     libsss_test_common.la \
 2591     libsss_iface.la \
 2592     libsss_sbus.la \
 2593     $(NULL)
 2594 endif
 2595 
 2596 stress_tests_SOURCES = \
 2597     src/tests/stress-tests.c
 2598 stress_tests_LDADD = \
 2599     $(SSSD_LIBS) \
 2600     libsss_test_common.la
 2601 
 2602 krb5_child_test_SOURCES = \
 2603     src/tests/krb5_child-test.c \
 2604     src/providers/krb5/krb5_utils.c \
 2605     src/providers/krb5/krb5_ccache.c \
 2606     src/providers/krb5/krb5_child_handler.c \
 2607     src/providers/krb5/krb5_common.c \
 2608     src/providers/krb5/krb5_opts.c \
 2609     src/util/sss_krb5.c \
 2610     src/util/sss_iobuf.c \
 2611     src/providers/data_provider_fo.c \
 2612     src/providers/data_provider_opts.c \
 2613     src/providers/data_provider_callbacks.c \
 2614     src/util/become_user.c \
 2615     $(SSSD_FAILOVER_OBJ) \
 2616     $(NULL)
 2617 krb5_child_test_CFLAGS = \
 2618     $(AM_CFLAGS) \
 2619     -DKRB5_CHILD_DIR=\"$(builddir)\" \
 2620     $(KRB5_CFLAGS) \
 2621     $(CHECK_CFLAGS)
 2622 krb5_child_test_LDADD = \
 2623     $(SSSD_LIBS) \
 2624     $(CARES_LIBS) \
 2625     $(KRB5_LIBS) \
 2626     $(CHECK_LIBS) \
 2627     $(PCRE_LIBS) \
 2628     $(SSSD_INTERNAL_LTLIBS) \
 2629     libsss_test_common.la
 2630 
 2631 test_ssh_client_SOURCES = \
 2632     src/tests/test_ssh_client.c \
 2633     $(NULL)
 2634 test_ssh_client_CFLAGS = \
 2635     $(AM_CFLAGS) \
 2636     -DSSH_CLIENT_DIR=\"$(abs_top_builddir)\" \
 2637     $(NULL)
 2638 test_ssh_client_LDADD = \
 2639     $(SSSD_INTERNAL_LTLIBS) \
 2640     $(SSSD_LIBS) \
 2641     $(NULL)
 2642 
 2643 test_sbus_message_SOURCES = \
 2644     src/tests/cmocka/sbus/test_sbus_message.c \
 2645     $(NULL)
 2646 test_sbus_message_CFLAGS = \
 2647     $(AM_CFLAGS)
 2648 test_sbus_message_LDADD = \
 2649     $(CMOCKA_LIBS) \
 2650     $(POPT_LIBS) \
 2651     libsss_debug.la \
 2652     libsss_test_common.la \
 2653     libsss_sbus.la \
 2654     $(NULL)
 2655 
 2656 test_sbus_opath_SOURCES = \
 2657     src/tests/cmocka/sbus/test_sbus_opath.c \
 2658     $(NULL)
 2659 test_sbus_opath_CFLAGS = \
 2660     $(AM_CFLAGS)
 2661 test_sbus_opath_LDADD = \
 2662     $(CMOCKA_LIBS) \
 2663     $(POPT_LIBS) \
 2664     libsss_debug.la \
 2665     libsss_test_common.la \
 2666     libsss_sbus.la \
 2667     $(NULL)
 2668 
 2669 if HAVE_CMOCKA
 2670 
 2671 TEST_MOCK_RESP_OBJ = \
 2672      src/tests/cmocka/common_mock_resp.c \
 2673      src/tests/cmocka/common_mock_resp_dp.c \
 2674      src/responder/common/responder_packet.c \
 2675      src/responder/common/responder_cmd.c \
 2676      src/responder/common/negcache_files.c \
 2677      src/responder/common/negcache.c \
 2678      src/util/nss_dl_load.c \
 2679      src/responder/common/responder_common.c \
 2680      src/responder/common/responder_utils.c \
 2681      src/util/session_recording.c \
 2682      $(SSSD_CACHE_REQ_OBJ) \
 2683      $(SSSD_RESPONDER_IFACE_OBJ) \
 2684      $(NULL)
 2685 
 2686 TEST_MOCK_PROVIDER_OBJ = \
 2687      src/util/sss_sockets.c \
 2688      src/util/sss_ldap.c \
 2689      src/providers/data_provider_opts.c \
 2690      src/providers/ldap/ldap_opts.c \
 2691      src/providers/ldap/ldap_options.c \
 2692      src/providers/ldap/sdap_domain.c \
 2693      src/providers/ldap/sdap.c \
 2694      src/providers/ldap/sdap_utils.c \
 2695      src/providers/ldap/sdap_range.c \
 2696      src/tests/cmocka/common_mock_sdap.c \
 2697      src/tests/cmocka/common_mock_sysdb_objects.c
 2698 
 2699 EXTRA_nss_srv_tests_DEPENDENCIES = \
 2700      $(ldblib_LTLIBRARIES)
 2701 nss_srv_tests_SOURCES = \
 2702      $(TEST_MOCK_RESP_OBJ) \
 2703      src/tests/cmocka/test_nss_srv.c \
 2704      src/responder/nss/nss_cmd.c \
 2705      src/responder/nss/nss_enum.c \
 2706      src/responder/nss/nss_get_object.c \
 2707      src/responder/nss/nss_protocol.c \
 2708      src/responder/nss/nss_protocol_pwent.c \
 2709      src/responder/nss/nss_protocol_grent.c \
 2710      src/responder/nss/nss_protocol_netgr.c \
 2711      src/responder/nss/nss_protocol_svcent.c \
 2712      src/responder/nss/nss_protocol_sid.c \
 2713      src/responder/nss/nss_utils.c \
 2714      src/responder/nss/nsssrv_mmap_cache.c
 2715 nss_srv_tests_CFLAGS = \
 2716     $(AM_CFLAGS)
 2717 nss_srv_tests_LDFLAGS = \
 2718     -Wl,-wrap,sss_ncache_check_user \
 2719     -Wl,-wrap,sss_ncache_check_upn \
 2720     -Wl,-wrap,sss_ncache_check_uid \
 2721     -Wl,-wrap,sss_ncache_check_sid \
 2722     -Wl,-wrap,sss_ncache_check_cert \
 2723     -Wl,-wrap,sss_packet_get_body \
 2724     -Wl,-wrap,sss_packet_get_cmd \
 2725     -Wl,-wrap,sss_cmd_send_empty \
 2726     -Wl,-wrap,sss_cmd_done
 2727 nss_srv_tests_LDADD = \
 2728     $(LIBADD_DL) \
 2729     $(CMOCKA_LIBS) \
 2730     $(SSSD_LIBS) \
 2731     $(SSSD_INTERNAL_LTLIBS) \
 2732     $(SYSTEMD_DAEMON_LIBS) \
 2733     libsss_test_common.la \
 2734     libsss_cert.la \
 2735     libsss_idmap.la \
 2736     libsss_iface.la \
 2737     libsss_sbus.la \
 2738     $(NULL)
 2739 
 2740 EXTRA_pam_srv_tests_DEPENDENCIES = \
 2741     $(ldblib_LTLIBRARIES) \
 2742     $(NULL)
 2743 EXTRA_pam_srv_tests_DEPENDENCIES += p11_child
 2744 pam_srv_tests_SOURCES = \
 2745     $(TEST_MOCK_RESP_OBJ) \
 2746     src/tests/cmocka/test_pam_srv.c \
 2747     src/sss_client/pam_message.c \
 2748     src/responder/pam/pamsrv_cmd.c \
 2749     src/responder/pam/pamsrv_p11.c \
 2750     src/responder/pam/pam_helpers.c \
 2751     src/responder/pam/pamsrv_dp.c \
 2752     src/responder/pam/pam_LOCAL_domain.c \
 2753     src/responder/pam/pam_prompting_config.c \
 2754     src/sss_client/pam_sss_prompt_config.c \
 2755     $(NULL)
 2756 pam_srv_tests_CFLAGS = \
 2757     -U SSSD_LIBEXEC_PATH -DSSSD_LIBEXEC_PATH=\"$(abs_builddir)\" \
 2758     -I$(abs_builddir)/src \
 2759     $(AM_CFLAGS) \
 2760     $(NULL)
 2761 pam_srv_tests_LDFLAGS = \
 2762     -Wl,-wrap,sss_packet_get_body \
 2763     -Wl,-wrap,sss_packet_get_cmd \
 2764     -Wl,-wrap,sss_cmd_send_empty \
 2765     -Wl,-wrap,sss_cmd_done \
 2766     -Wl,-wrap,pam_dp_send_req \
 2767     $(NULL)
 2768 pam_srv_tests_LDADD = \
 2769     $(LIBADD_DL) \
 2770     $(CMOCKA_LIBS) \
 2771     $(PAM_LIBS) \
 2772     $(SSSD_LIBS) \
 2773     $(SSSD_INTERNAL_LTLIBS) \
 2774     $(SYSTEMD_DAEMON_LIBS) \
 2775     libsss_test_common.la \
 2776     libsss_idmap.la \
 2777     libsss_certmap.la \
 2778     libsss_iface.la \
 2779     libsss_sbus.la \
 2780     $(NULL)
 2781 
 2782 EXTRA_ssh_srv_tests_DEPENDENCIES = \
 2783     $(ldblib_LTLIBRARIES) \
 2784     $(NULL)
 2785 EXTRA_ssh_srv_tests_DEPENDENCIES += p11_child
 2786 ssh_srv_tests_SOURCES = \
 2787     $(TEST_MOCK_RESP_OBJ) \
 2788     src/tests/cmocka/test_ssh_srv.c \
 2789     src/responder/ssh/ssh_cmd.c \
 2790     src/responder/ssh/ssh_known_hosts.c \
 2791     src/responder/ssh/ssh_protocol.c \
 2792     src/responder/ssh/ssh_reply.c \
 2793     src/util/cert/cert_common_p11_child.c \
 2794     $(NULL)
 2795 ssh_srv_tests_CFLAGS = \
 2796     -U SSSD_LIBEXEC_PATH -DSSSD_LIBEXEC_PATH=\"$(abs_builddir)\" \
 2797     -I$(abs_builddir)/src \
 2798     $(AM_CFLAGS) \
 2799     $(NULL)
 2800 ssh_srv_tests_LDFLAGS = \
 2801     -Wl,-wrap,sss_packet_get_body \
 2802     -Wl,-wrap,sss_packet_get_cmd \
 2803     -Wl,-wrap,sss_cmd_send_empty \
 2804     -Wl,-wrap,sss_cmd_done \
 2805     -Wl,-wrap,ssh_dp_send_req \
 2806     $(NULL)
 2807 ssh_srv_tests_LDADD = \
 2808     $(LIBADD_DL) \
 2809     $(CMOCKA_LIBS) \
 2810     $(SSSD_LIBS) \
 2811     $(SSSD_INTERNAL_LTLIBS) \
 2812     $(SYSTEMD_DAEMON_LIBS) \
 2813     libsss_test_common.la \
 2814     libsss_iface.la \
 2815     libsss_sbus.la \
 2816     $(NULL)
 2817 
 2818 EXTRA_responder_get_domains_tests_DEPENDENCIES = \
 2819      $(ldblib_LTLIBRARIES)
 2820 responder_get_domains_tests_SOURCES = \
 2821      $(SSSD_RESPONDER_OBJ) \
 2822      src/tests/cmocka/test_responder_common.c \
 2823      src/tests/cmocka/common_mock_resp.c
 2824 responder_get_domains_tests_CFLAGS = \
 2825     $(AM_CFLAGS)
 2826 responder_get_domains_tests_LDFLAGS = \
 2827     -Wl,-wrap,sss_parse_name_for_domains \
 2828     -Wl,-wrap,sss_ncache_reset_repopulate_permanent
 2829 responder_get_domains_tests_LDADD = \
 2830     $(LIBADD_DL) \
 2831     $(CMOCKA_LIBS) \
 2832     $(SSSD_LIBS) \
 2833     $(SSSD_INTERNAL_LTLIBS) \
 2834     $(SYSTEMD_DAEMON_LIBS) \
 2835     libsss_test_common.la \
 2836     libsss_iface.la \
 2837     libsss_sbus.la \
 2838     $(NULL)
 2839 
 2840 config_check_tests_SOURCES = \
 2841     src/tests/cmocka/test_config_check.c \
 2842     $(NULL)
 2843 config_check_tests_CFLAGS = \
 2844     $(AM_CFLAGS) \
 2845     $(NULL)
 2846 config_check_tests_LDADD = \
 2847     $(CMOCKA_LIBS) \
 2848     $(POPT_LIBS) \
 2849     $(INI_CONFIG_LIBS) \
 2850     $(TALLOC_LIBS) \
 2851     $(SSSD_INTERNAL_LTLIBS) \
 2852     libsss_test_common.la \
 2853     $(NULL)
 2854 
 2855 test_find_uid_SOURCES = \
 2856     src/tests/cmocka/test_find_uid.c \
 2857     src/util/find_uid.c \
 2858     src/util/atomic_io.c \
 2859     src/util/strtonum.c
 2860 test_find_uid_CFLAGS = \
 2861     $(AM_CFLAGS) \
 2862     $(TALLOC_CFLAGS) \
 2863     $(DHASH_CFLAGS) \
 2864     $(SYSTEMD_LOGIN_CFLAGS)
 2865 test_find_uid_LDADD = \
 2866     $(TALLOC_LIBS) \
 2867     $(DHASH_LIBS) \
 2868     $(CMOCKA_LIBS) \
 2869     $(SYSTEMD_LOGIN_LIBS) \
 2870     libsss_debug.la
 2871 
 2872 test_io_SOURCES = \
 2873     src/tests/cmocka/test_io.c \
 2874     src/util/io.c \
 2875     src/tests/common.c
 2876 test_io_CFLAGS = \
 2877     $(AM_CFLAGS)
 2878 test_io_LDADD = \
 2879     $(CMOCKA_LIBS)
 2880 
 2881 EXTRA_test_negcache_DEPENDENCIES = \
 2882     $(ldblib_LTLIBRARIES)
 2883 test_negcache_SOURCES = \
 2884     $(SSSD_RESPONDER_OBJ) \
 2885     src/tests/cmocka/common_mock_resp.c \
 2886     src/tests/cmocka/test_negcache.c \
 2887     src/tests/cmocka/test_negcache_2.c
 2888 test_negcache_CFLAGS = \
 2889     $(AM_CFLAGS) \
 2890     $(TALLOC_CFLAGS) \
 2891     $(DHASH_CFLAGS)
 2892 test_negcache_LDADD = \
 2893     $(LIBADD_DL) \
 2894     $(CMOCKA_LIBS) \
 2895     $(SSSD_LIBS) \
 2896     $(SYSTEMD_DAEMON_LIBS) \
 2897     $(SSSD_INTERNAL_LTLIBS) \
 2898     libsss_test_common.la \
 2899     libsss_idmap.la \
 2900     libsss_iface.la \
 2901     libsss_sbus.la \
 2902     $(NULL)
 2903 
 2904 test_authtok_SOURCES = \
 2905     src/tests/cmocka/test_authtok.c \
 2906     src/util/authtok.c \
 2907     src/util/authtok-utils.c \
 2908     src/util/util.c \
 2909     src/util/util_ext.c \
 2910     $(NULL)
 2911 test_authtok_CFLAGS = \
 2912     $(AM_CFLAGS) \
 2913     $(TALLOC_CFLAGS) \
 2914     $(POPT_CFLAGS) \
 2915     $(DHASH_CFLAGS) \
 2916     $(NULL)
 2917 test_authtok_LDADD = \
 2918     $(TALLOC_LIBS) \
 2919     $(CMOCKA_LIBS) \
 2920     $(DHASH_LIBS) \
 2921     $(POPT_LIBS) \
 2922     libsss_test_common.la \
 2923     libsss_debug.la \
 2924     $(NULL)
 2925 
 2926 test_prompt_config_SOURCES = \
 2927     src/tests/cmocka/test_prompt_config.c \
 2928     src/sss_client/pam_sss_prompt_config.c \
 2929     $(NULL)
 2930 test_prompt_config_CFLAGS = \
 2931     $(AM_CFLAGS) \
 2932     $(POPT_CFLAGS) \
 2933     $(NULL)
 2934 test_prompt_config_LDADD = \
 2935     $(CMOCKA_LIBS) \
 2936     $(POPT_LIBS) \
 2937     libsss_debug.la \
 2938     $(TALLOC_LIBS) \
 2939     $(NULL)
 2940 
 2941 sss_nss_idmap_tests_SOURCES = \
 2942     src/tests/cmocka/sss_nss_idmap-tests.c
 2943 sss_nss_idmap_tests_CFLAGS = \
 2944     $(AM_CFLAGS)
 2945 sss_nss_idmap_tests_LDADD = \
 2946     $(CMOCKA_LIBS) \
 2947     libsss_nss_idmap_tests.la \
 2948     $(NULL)
 2949 
 2950 deskprofile_utils_tests_SOURCES = \
 2951     src/tests/cmocka/test_deskprofile_utils.c \
 2952     src/providers/ipa/ipa_deskprofile_rules_util.c \
 2953     src/providers/ipa/ipa_rules_common.c
 2954 deskprofile_utils_tests_CFLAGS = \
 2955     $(AM_CFLAGS)
 2956 deskprofile_utils_tests_LDADD = \
 2957     $(CMOCKA_LIBS) \
 2958     $(SSSD_INTERNAL_LTLIBS) \
 2959     libsss_test_common.la
 2960 
 2961 EXTRA_dyndns_tests_DEPENDENCIES = \
 2962      $(ldblib_LTLIBRARIES)
 2963 dyndns_tests_SOURCES = \
 2964      $(SSSD_RESOLV_OBJ) \
 2965      src/tests/cmocka/common_mock_be.c \
 2966      src/tests/cmocka/test_dyndns.c \
 2967      src/providers/data_provider_opts.c
 2968 dyndns_tests_CFLAGS = \
 2969     $(AM_CFLAGS) \
 2970     -DDYNDNS_TIMEOUT=2
 2971 dyndns_tests_LDFLAGS = \
 2972     -Wl,-wrap,execv \
 2973     -Wl,-wrap,getifaddrs \
 2974     -Wl,-wrap,freeifaddrs
 2975 dyndns_tests_LDADD = \
 2976     $(CARES_LIBS) \
 2977     $(CMOCKA_LIBS) \
 2978     $(SSSD_LIBS) \
 2979     $(SSSD_INTERNAL_LTLIBS) \
 2980     libsss_test_common.la
 2981 
 2982 domain_resolution_order_tests_SOURCES = \
 2983 	src/tests/cmocka/test_domain_resolution_order.c \
 2984 	src/responder/common/cache_req/cache_req_domain.c
 2985 domain_resolution_order_tests_CFLAGS = \
 2986 	$(AM_CFLAGS)
 2987 domain_resolution_order_tests_LDADD = \
 2988 	$(CMOCKA_LIBS) \
 2989 	$(SSSD_INTERNAL_LTLIBS) \
 2990 	libsss_test_common.la
 2991 
 2992 fqnames_tests_SOURCES = \
 2993     src/tests/cmocka/test_fqnames.c
 2994 fqnames_tests_CFLAGS = \
 2995     $(AM_CFLAGS)
 2996 fqnames_tests_LDADD = \
 2997     $(CMOCKA_LIBS) \
 2998     $(SSSD_LIBS) \
 2999     $(SSSD_INTERNAL_LTLIBS) \
 3000     libsss_test_common.la
 3001 
 3002 nestedgroups_tests_SOURCES = \
 3003     $(TEST_MOCK_PROVIDER_OBJ) \
 3004     src/providers/ldap/sdap_idmap.c \
 3005     src/tests/cmocka/test_nested_groups.c \
 3006     src/tests/cmocka/common_mock_be.c \
 3007     src/providers/ldap/sdap_async_nested_groups.c \
 3008     src/providers/ldap/sdap_ad_groups.c \
 3009     src/providers/ipa/ipa_dn.c \
 3010     $(NULL)
 3011 nestedgroups_tests_CFLAGS = \
 3012     $(AM_CFLAGS) \
 3013     -DEXTERNAL_MEMBERS_CHUNK=1 \
 3014     $(NULL)
 3015 nestedgroups_tests_LDADD = \
 3016     $(CMOCKA_LIBS) \
 3017     $(OPENLDAP_LIBS) \
 3018     $(SSSD_LIBS) \
 3019     $(SSSD_INTERNAL_LTLIBS) \
 3020     libsss_idmap.la \
 3021     libsss_test_common.la \
 3022     $(NULL)
 3023 if BUILD_SYSTEMTAP
 3024 nestedgroups_tests_LDADD += stap_generated_probes.lo
 3025 endif
 3026 
 3027 test_sss_idmap_SOURCES = \
 3028     src/tests/cmocka/test_sss_idmap.c
 3029 test_sss_idmap_CFLAGS = \
 3030     $(AM_CFLAGS)
 3031 test_sss_idmap_LDADD = \
 3032     $(CMOCKA_LIBS) \
 3033     $(POPT_LIBS) \
 3034     libsss_idmap.la \
 3035     $(SSSD_INTERNAL_LTLIBS) \
 3036     libsss_test_common.la
 3037 
 3038 test_ipa_idmap_SOURCES = \
 3039     src/tests/cmocka/test_ipa_idmap.c \
 3040     src/providers/ipa/ipa_idmap.c
 3041 test_ipa_idmap_CFLAGS = \
 3042     $(AM_CFLAGS)
 3043 test_ipa_idmap_LDFLAGS = \
 3044     -Wl,-wrap,sysdb_get_ranges
 3045 test_ipa_idmap_LDADD = \
 3046     $(CMOCKA_LIBS) \
 3047     $(POPT_LIBS) \
 3048     libsss_idmap.la \
 3049     $(SSSD_INTERNAL_LTLIBS) \
 3050     libsss_test_common.la
 3051 
 3052 test_utils_SOURCES = \
 3053     src/tests/cmocka/test_utils.c \
 3054     src/tests/cmocka/test_string_utils.c \
 3055     src/p11_child/p11_child_common_utils.c \
 3056     $(NULL)
 3057 if BUILD_SSH
 3058 test_utils_SOURCES += src/tests/cmocka/test_sss_ssh.c
 3059 endif
 3060 test_utils_CFLAGS = \
 3061     $(AM_CFLAGS)
 3062 if HAVE_NSS
 3063 test_utils_CFLAGS += \
 3064     $(NSS_CFLAGS) \
 3065     $(NULL)
 3066 else
 3067 test_utils_CFLAGS += \
 3068     $(P11_KIT_CFLAGS) \
 3069     $(NULL)
 3070 endif
 3071 test_utils_LDADD = \
 3072     $(CMOCKA_LIBS) \
 3073     $(POPT_LIBS) \
 3074     $(SSSD_INTERNAL_LTLIBS) \
 3075     libsss_test_common.la
 3076 
 3077 test_search_bases_SOURCES = \
 3078     src/tests/cmocka/test_search_bases.c
 3079 test_search_bases_LDADD = \
 3080     $(CMOCKA_LIBS) \
 3081     $(TALLOC_LIBS) \
 3082     $(SSSD_INTERNAL_LTLIBS) \
 3083     libsss_ldap_common.la \
 3084     libsss_test_common.la \
 3085     libdlopen_test_providers.la \
 3086     libsss_iface.la \
 3087     libsss_sbus.la \
 3088     $(NULL)
 3089 
 3090 test_ldap_auth_SOURCES = \
 3091     src/tests/cmocka/test_ldap_auth.c \
 3092     src/tests/cmocka/test_expire_common.c \
 3093     $(NULL)
 3094 test_ldap_auth_LDADD = \
 3095     $(CMOCKA_LIBS) \
 3096     $(TALLOC_LIBS) \
 3097     libsss_ldap_common.la \
 3098     libsss_test_common.la \
 3099     libdlopen_test_providers.la \
 3100     libsss_iface.la \
 3101     libsss_sbus.la \
 3102     $(NULL)
 3103 
 3104 test_ldap_id_cleanup_SOURCES = \
 3105     src/tests/cmocka/test_ldap_id_cleanup.c \
 3106     $(NULL)
 3107 test_ldap_id_cleanup_LDADD = \
 3108     $(CMOCKA_LIBS) \
 3109     $(POPT_LIBS) \
 3110     $(TALLOC_LIBS) \
 3111     $(TEVENT_LIBS) \
 3112     $(SSSD_INTERNAL_LTLIBS) \
 3113     libsss_ldap_common.la \
 3114     libsss_test_common.la \
 3115     libdlopen_test_providers.la \
 3116     libsss_iface.la \
 3117     libsss_sbus.la \
 3118     $(NULL)
 3119 
 3120 test_sdap_access_SOURCES = \
 3121     src/tests/cmocka/test_sdap_access.c \
 3122     src/tests/cmocka/test_expire_common.c \
 3123     $(NULL)
 3124 test_sdap_access_LDADD = \
 3125     $(CMOCKA_LIBS) \
 3126     $(TALLOC_LIBS) \
 3127     libsss_ldap_common.la \
 3128     libsss_test_common.la \
 3129     libdlopen_test_providers.la \
 3130     libsss_iface.la \
 3131     libsss_sbus.la \
 3132     $(NULL)
 3133 
 3134 test_sdap_certmap_SOURCES = \
 3135     src/tests/cmocka/test_sdap_certmap.c \
 3136     src/providers/ldap/sdap_certmap.c \
 3137     $(NULL)
 3138 test_sdap_certmap_CFLAGS = \
 3139     $(AM_CFLAGS) \
 3140     $(TALLOC_CFLAGS) \
 3141     $(POPT_CFLAGS) \
 3142     $(NULL)
 3143 test_sdap_certmap_LDADD = \
 3144     $(CMOCKA_LIBS) \
 3145     $(TALLOC_LIBS) \
 3146     $(POPT_LIBS) \
 3147     $(SSSD_INTERNAL_LTLIBS) \
 3148     libsss_test_common.la \
 3149     libsss_certmap.la \
 3150     $(NULL)
 3151 
 3152 ad_access_filter_tests_SOURCES = \
 3153     src/tests/cmocka/test_ad_access_filter.c
 3154 ad_access_filter_tests_LDADD = \
 3155     $(CMOCKA_LIBS) \
 3156     $(POPT_LIBS) \
 3157     $(TALLOC_LIBS) \
 3158     $(TEVENT_LIBS) \
 3159     $(SSSD_INTERNAL_LTLIBS) \
 3160     libsss_ldap_common.la \
 3161     libsss_ad_tests.la \
 3162     libsss_test_common.la \
 3163     libsss_iface.la \
 3164     libsss_sbus.la \
 3165     $(NULL)
 3166 
 3167 ad_gpo_tests_SOURCES = \
 3168     src/tests/cmocka/test_ad_gpo.c
 3169 ad_gpo_tests_CFLAGS = \
 3170     $(AM_CFLAGS) \
 3171     $(NDR_NBT_CFLAGS) \
 3172     $(NULL)
 3173 ad_gpo_tests_LDADD = \
 3174     $(CMOCKA_LIBS) \
 3175     $(OPENLDAP_LIBS) \
 3176     $(SSSD_LIBS) \
 3177     $(SSSD_INTERNAL_LTLIBS) \
 3178     $(NDR_NBT_LIBS) \
 3179     libsss_ldap_common.la \
 3180     libsss_idmap.la \
 3181     libsss_krb5_common.la \
 3182     libsss_ad_tests.la \
 3183     libsss_test_common.la \
 3184     libdlopen_test_providers.la \
 3185     libsss_iface.la \
 3186     libsss_sbus.la \
 3187     $(NULL)
 3188 
 3189 ad_common_tests_SOURCES = \
 3190     $(libsss_krb5_common_la_SOURCES) \
 3191     src/tests/cmocka/common_mock_krb5.c \
 3192     src/tests/cmocka/test_ad_common.c \
 3193     src/providers/ad/ad_opts.c \
 3194     src/providers/ad/ad_pac.c \
 3195     src/providers/ad/ad_pac_common.c \
 3196     src/providers/ad/ad_domain_info.c \
 3197     src/providers/ldap/sdap_async_initgroups_ad.c \
 3198     $(NULL)
 3199 ad_common_tests_CFLAGS = \
 3200     $(AM_CFLAGS) \
 3201     $(NDR_NBT_CFLAGS) \
 3202     $(NDR_KRB5PAC_CFLAGS) \
 3203     $(NULL)
 3204 ad_common_tests_LDFLAGS = \
 3205     -Wl,-wrap,sdap_set_sasl_options \
 3206     -Wl,-wrap,krb5_kt_default \
 3207     $(NULL)
 3208 ad_common_tests_LDADD = \
 3209     $(CMOCKA_LIBS) \
 3210     $(SSSD_LIBS) \
 3211     $(KEYUTILS_LIBS) \
 3212     $(NDR_NBT_LIBS) \
 3213     $(NDR_KRB5PAC_LIBS) \
 3214     $(KRB5_LIBS) \
 3215     $(SSSD_INTERNAL_LTLIBS) \
 3216     libsss_idmap.la \
 3217     libsss_ldap_common.la \
 3218     libsss_test_common.la \
 3219     libdlopen_test_providers.la \
 3220     libsss_iface.la \
 3221     libsss_sbus.la \
 3222     $(NULL)
 3223 
 3224 dp_opt_tests_SOURCES = \
 3225     src/providers/data_provider_opts.c \
 3226     src/tests/cmocka/test_dp_opts.c
 3227 dp_opt_tests_CFLAGS = \
 3228     $(AM_CFLAGS)
 3229 dp_opt_tests_LDADD = \
 3230     $(CMOCKA_LIBS) \
 3231     $(TALLOC_LIBS) \
 3232     $(POPT_LIBS) \
 3233     $(SSSD_INTERNAL_LTLIBS) \
 3234     libsss_test_common.la
 3235 
 3236 sdap_tests_SOURCES = \
 3237     src/providers/data_provider_opts.c \
 3238     src/providers/ldap/sdap_domain.c \
 3239     src/providers/ldap/sdap.c \
 3240     src/providers/ldap/sdap_range.c \
 3241     src/providers/ldap/ldap_opts.c \
 3242     src/providers/ipa/ipa_opts.c \
 3243     src/util/sss_sockets.c \
 3244     src/util/sss_ldap.c \
 3245     src/tests/cmocka/test_sdap.c \
 3246     $(NULL)
 3247 sdap_tests_CFLAGS = \
 3248     $(AM_CFLAGS) \
 3249     $(NULL)
 3250 sdap_tests_LDFLAGS = \
 3251     -Wl,-wrap,ldap_set_option \
 3252     -Wl,-wrap,ldap_get_dn \
 3253     -Wl,-wrap,ldap_memfree \
 3254     -Wl,-wrap,ldap_get_values_len \
 3255     -Wl,-wrap,ldap_value_free_len \
 3256     -Wl,-wrap,ldap_first_attribute \
 3257     -Wl,-wrap,ldap_next_attribute \
 3258     $(NULL)
 3259 sdap_tests_LDADD = \
 3260     $(CMOCKA_LIBS) \
 3261     $(TALLOC_LIBS) \
 3262     $(LDB_LIBS) \
 3263     $(POPT_LIBS) \
 3264     $(SSSD_INTERNAL_LTLIBS) \
 3265     $(OPENLDAP_LIBS) \
 3266     libsss_test_common.la \
 3267     $(NULL)
 3268 
 3269 if BUILD_IFP
 3270 ifp_tests_SOURCES = \
 3271     $(TEST_MOCK_RESP_OBJ) \
 3272     src/tests/cmocka/test_ifp.c \
 3273     src/responder/ifp/ifpsrv_cmd.c \
 3274     src/responder/ifp/ifpsrv_util.c \
 3275     $(NULL)
 3276 ifp_tests_CFLAGS = \
 3277     $(AM_CFLAGS)
 3278 ifp_tests_LDADD = \
 3279     $(LIBADD_DL) \
 3280     $(CMOCKA_LIBS) \
 3281     $(SSSD_LIBS) \
 3282     $(SSSD_INTERNAL_LTLIBS) \
 3283     $(SYSTEMD_DAEMON_LIBS) \
 3284     libsss_test_common.la \
 3285     libsss_iface.la \
 3286     libsss_sbus.la \
 3287     $(NULL)
 3288 
 3289 sss_sifp_tests_SOURCES = \
 3290     src/tests/cmocka/test_sss_sifp.c \
 3291     src/lib/sifp/sss_sifp_attrs.c \
 3292     src/lib/sifp/sss_sifp_common.c \
 3293     src/lib/sifp/sss_sifp_parser.c \
 3294     src/lib/sifp/sss_sifp_utils.c \
 3295     src/lib/sifp/sss_sifp_dbus.c \
 3296     src/lib/sifp/sss_sifp.c
 3297 sss_sifp_tests_CFLAGS = \
 3298     $(AM_CFLAGS) \
 3299     -I$(top_srcdir)/src/lib/sifp
 3300 sss_sifp_tests_LDFLAGS = \
 3301     -Wl,-wrap,dbus_bus_get \
 3302     -Wl,-wrap,dbus_connection_send_with_reply_and_block
 3303 sss_sifp_tests_LDADD = \
 3304     $(CMOCKA_LIBS) \
 3305     $(DBUS_LIBS) \
 3306     $(TALLOC_LIBS) \
 3307     $(DHASH_LIBS) \
 3308     $(POPT_LIBS) \
 3309     $(SSSD_INTERNAL_LTLIBS)
 3310 endif # BUILD_IFP
 3311 
 3312 test_sysdb_views_SOURCES = \
 3313     src/tests/cmocka/test_sysdb_views.c \
 3314     src/providers/ipa/ipa_utils.c \
 3315     $(NULL)
 3316 test_sysdb_views_CFLAGS = \
 3317     $(AM_CFLAGS) \
 3318     $(NULL)
 3319 test_sysdb_views_LDADD = \
 3320     $(CMOCKA_LIBS) \
 3321     $(LDB_LIBS) \
 3322     $(POPT_LIBS) \
 3323     $(TALLOC_LIBS) \
 3324     $(SSSD_INTERNAL_LTLIBS) \
 3325     libsss_test_common.la \
 3326     $(NULL)
 3327 
 3328 test_sysdb_ts_cache_SOURCES = \
 3329     src/tests/cmocka/test_sysdb_ts_cache.c \
 3330     src/providers/ipa/ipa_utils.c \
 3331     $(NULL)
 3332 test_sysdb_ts_cache_CFLAGS = \
 3333     $(AM_CFLAGS) \
 3334     $(NULL)
 3335 test_sysdb_ts_cache_LDADD = \
 3336     $(CMOCKA_LIBS) \
 3337     $(LDB_LIBS) \
 3338     $(POPT_LIBS) \
 3339     $(TALLOC_LIBS) \
 3340     $(SSSD_INTERNAL_LTLIBS) \
 3341     libsss_test_common.la \
 3342     $(NULL)
 3343 
 3344 test_sysdb_subdomains_SOURCES = \
 3345     src/tests/cmocka/test_sysdb_subdomains.c \
 3346     $(NULL)
 3347 test_sysdb_subdomains_CFLAGS = \
 3348     $(AM_CFLAGS) \
 3349     $(NULL)
 3350 test_sysdb_subdomains_LDADD = \
 3351     $(CMOCKA_LIBS) \
 3352     $(LDB_LIBS) \
 3353     $(POPT_LIBS) \
 3354     $(TALLOC_LIBS) \
 3355     $(SSSD_INTERNAL_LTLIBS) \
 3356     libsss_test_common.la \
 3357     $(NULL)
 3358 
 3359 test_sysdb_certmap_SOURCES = \
 3360     src/tests/cmocka/test_sysdb_certmap.c \
 3361     $(NULL)
 3362 test_sysdb_certmap_CFLAGS = \
 3363     $(AM_CFLAGS) \
 3364     $(NULL)
 3365 test_sysdb_certmap_LDADD = \
 3366     $(CMOCKA_LIBS) \
 3367     $(LDB_LIBS) \
 3368     $(POPT_LIBS) \
 3369     $(TALLOC_LIBS) \
 3370     $(SSSD_INTERNAL_LTLIBS) \
 3371     libsss_test_common.la \
 3372     $(NULL)
 3373 
 3374 test_sysdb_sudo_SOURCES = \
 3375     src/tests/cmocka/test_sysdb_sudo.c \
 3376     $(NULL)
 3377 test_sysdb_sudo_CFLAGS = \
 3378     $(AM_CFLAGS) \
 3379     $(NULL)
 3380 test_sysdb_sudo_LDADD = \
 3381     $(CMOCKA_LIBS) \
 3382     $(LDB_LIBS) \
 3383     $(POPT_LIBS) \
 3384     $(TALLOC_LIBS) \
 3385     $(SSSD_INTERNAL_LTLIBS) \
 3386     libsss_test_common.la \
 3387     $(NULL)
 3388 
 3389 test_sysdb_utils_SOURCES = \
 3390     src/tests/cmocka/test_sysdb_utils.c \
 3391     $(NULL)
 3392 test_sysdb_utils_CFLAGS = \
 3393     $(AM_CFLAGS) \
 3394     $(NULL)
 3395 test_sysdb_utils_LDADD = \
 3396     $(CMOCKA_LIBS) \
 3397     $(LDB_LIBS) \
 3398     $(POPT_LIBS) \
 3399     $(TALLOC_LIBS) \
 3400     $(SSSD_INTERNAL_LTLIBS) \
 3401     libsss_test_common.la \
 3402     $(NULL)
 3403 
 3404 test_sysdb_domain_resolution_order_SOURCES = \
 3405     src/tests/cmocka/test_sysdb_domain_resolution_order.c \
 3406     $(NULL)
 3407 test_sysdb_domain_resolution_order_CFLAGS = \
 3408     $(AM_CFLAGS) \
 3409     $(NULL)
 3410 test_sysdb_domain_resolution_order_LDADD = \
 3411     $(CMOCKA_LIBS) \
 3412     $(LDB_LIBS) \
 3413     $(POPT_LIBS) \
 3414     $(TALLOC_LIBS) \
 3415     $(SSSD_INTERNAL_LTLIBS) \
 3416     libsss_test_common.la \
 3417     $(NULL)
 3418 
 3419 test_wbc_calls_SOURCES = \
 3420     src/tests/cmocka/test_wbc_calls.c \
 3421     src/sss_client/libwbclient/wbc_sid_sssd.c \
 3422     src/sss_client/libwbclient/wbclient_common.c \
 3423     src/sss_client/libwbclient/wbc_sid_common.c \
 3424     src/sss_client/common.c \
 3425     $(NULL)
 3426 test_wbc_calls_CFLAGS = \
 3427     $(AM_CFLAGS) \
 3428     $(NULL)
 3429 test_wbc_calls_LDFLAGS = \
 3430     -Wl,-wrap,sss_nss_getnamebysid \
 3431     $(NULL)
 3432 test_wbc_calls_LDADD = \
 3433     $(CLIENT_LIBS) \
 3434     $(CMOCKA_LIBS) \
 3435     $(POPT_LIBS) \
 3436     $(TALLOC_LIBS) \
 3437     $(SSSD_INTERNAL_LTLIBS) \
 3438     libsss_test_common.la \
 3439     libsss_nss_idmap.la \
 3440     $(NULL)
 3441 
 3442 test_be_ptask_SOURCES = \
 3443     src/tests/cmocka/common_mock_be.c \
 3444     src/tests/cmocka/test_be_ptask.c \
 3445     src/providers/be_ptask.c \
 3446     $(NULL)
 3447 test_be_ptask_CFLAGS = \
 3448     $(AM_CFLAGS) \
 3449     $(NULL)
 3450 test_be_ptask_LDADD = \
 3451     $(CMOCKA_LIBS) \
 3452     $(POPT_LIBS) \
 3453     $(TALLOC_LIBS) \
 3454     $(SSSD_INTERNAL_LTLIBS) \
 3455     libsss_test_common.la \
 3456     $(NULL)
 3457 
 3458 test_copy_ccache_SOURCES = \
 3459     src/tests/cmocka/test_copy_ccache.c \
 3460     src/providers/krb5/krb5_ccache.c \
 3461     src/util/sss_krb5.c \
 3462     src/util/sss_iobuf.c \
 3463     $(NULL)
 3464 test_copy_ccache_CFLAGS = \
 3465     $(AM_CFLAGS) \
 3466     $(NULL)
 3467 test_copy_ccache_LDADD = \
 3468     $(CMOCKA_LIBS) \
 3469     $(POPT_LIBS) \
 3470     $(TALLOC_LIBS) \
 3471     $(KRB5_LIBS) \
 3472     $(SSSD_INTERNAL_LTLIBS) \
 3473     libsss_test_common.la \
 3474     $(NULL)
 3475 
 3476 test_copy_keytab_SOURCES = \
 3477     src/tests/cmocka/common_mock_krb5.c \
 3478     src/tests/cmocka/test_copy_keytab.c \
 3479     src/providers/krb5/krb5_keytab.c \
 3480     src/util/sss_krb5.c \
 3481     src/util/sss_iobuf.c \
 3482     $(NULL)
 3483 test_copy_keytab_CFLAGS = \
 3484     $(AM_CFLAGS) \
 3485     $(NULL)
 3486 test_copy_keytab_LDADD = \
 3487     $(CMOCKA_LIBS) \
 3488     $(POPT_LIBS) \
 3489     $(TALLOC_LIBS) \
 3490     $(KRB5_LIBS) \
 3491     $(SSSD_INTERNAL_LTLIBS) \
 3492     libsss_test_common.la \
 3493     $(NULL)
 3494 
 3495 dummy_child_SOURCES = \
 3496     src/tests/cmocka/dummy_child.c \
 3497     $(NULL)
 3498 dummy_child_LDADD = \
 3499     $(POPT_LIBS) \
 3500     $(SSSD_INTERNAL_LTLIBS) \
 3501     $(NULL)
 3502 
 3503 test_child_common_SOURCES = \
 3504     src/tests/cmocka/test_child_common.c \
 3505     src/util/child_common.c \
 3506     src/util/signal.c \
 3507     src/util/atomic_io.c \
 3508     src/util/util_errors.c \
 3509     src/util/util.c \
 3510     src/util/util_ext.c \
 3511     $(NULL)
 3512 test_child_common_CFLAGS = \
 3513     $(AM_CFLAGS) \
 3514     -DCHILD_DIR=\"$(builddir)\" \
 3515     $(NULL)
 3516 test_child_common_LDFLAGS = \
 3517     -Wl,-wrap,child_io_destructor \
 3518     $(NULL)
 3519 test_child_common_LDADD = \
 3520     $(CMOCKA_LIBS) \
 3521     $(POPT_LIBS) \
 3522     $(TALLOC_LIBS) \
 3523     $(DHASH_LIBS) \
 3524     libsss_debug.la \
 3525     libsss_test_common.la \
 3526     $(NULL)
 3527 
 3528 responder_cache_req_tests_SOURCES = \
 3529     $(TEST_MOCK_RESP_OBJ) \
 3530     src/tests/cmocka/test_responder_cache_req.c \
 3531     $(NULL)
 3532 responder_cache_req_tests_CFLAGS = \
 3533     $(AM_CFLAGS) \
 3534     $(NULL)
 3535 responder_cache_req_tests_LDFLAGS = \
 3536     -Wl,-wrap,sss_dp_get_account_send \
 3537     $(NULL)
 3538 responder_cache_req_tests_LDADD = \
 3539     $(LIBADD_DL) \
 3540     $(CMOCKA_LIBS) \
 3541     $(SSSD_LIBS) \
 3542     $(SSSD_INTERNAL_LTLIBS) \
 3543     $(SYSTEMD_DAEMON_LIBS) \
 3544     libsss_test_common.la \
 3545     libsss_iface.la \
 3546     libsss_sbus.la \
 3547     $(NULL)
 3548 
 3549 if HAVE_LIBRESOLV
 3550 test_resolv_fake_SOURCES = \
 3551     src/tests/cmocka/test_resolv_fake.c \
 3552     src/resolv/async_resolv.c \
 3553     $(NULL)
 3554 test_resolv_fake_CFLAGS = \
 3555     $(AM_CFLAGS) \
 3556     $(NULL)
 3557 test_resolv_fake_LDFLAGS = \
 3558     -Wl,-wrap,ares_query \
 3559     $(NULL)
 3560 test_resolv_fake_LDADD = \
 3561     $(CMOCKA_LIBS) \
 3562     $(POPT_LIBS) \
 3563     $(TALLOC_LIBS) \
 3564     $(CARES_LIBS) \
 3565     $(DHASH_LIBS) \
 3566     $(RESOLV_LIBS) \
 3567     libsss_debug.la \
 3568     libsss_test_common.la \
 3569     $(NULL)
 3570 endif # HAVE_LIBRESOLV
 3571 
 3572 test_fo_srv_SOURCES = \
 3573     src/tests/cmocka/test_fo_srv.c \
 3574     src/providers/fail_over.c \
 3575     src/providers/fail_over_srv.c \
 3576     $(NULL)
 3577 test_fo_srv_CFLAGS = \
 3578     $(AM_CFLAGS) \
 3579     $(NULL)
 3580 test_fo_srv_LDADD = \
 3581     $(CMOCKA_LIBS) \
 3582     $(POPT_LIBS) \
 3583     $(TALLOC_LIBS) \
 3584     $(CARES_LIBS) \
 3585     $(DHASH_LIBS) \
 3586     $(SSSD_INTERNAL_LTLIBS) \
 3587     libsss_test_common.la \
 3588     $(NULL)
 3589 
 3590 test_sdap_initgr_SOURCES = \
 3591     src/tests/cmocka/common_mock_sdap.c \
 3592     src/tests/cmocka/common_mock_sysdb_objects.c \
 3593     src/tests/cmocka/test_sdap_initgr.c \
 3594     $(NULL)
 3595 test_sdap_initgr_CFLAGS = \
 3596     $(AM_CFLAGS) \
 3597     $(NDR_NBT_CFLAGS) \
 3598     $(NULL)
 3599 test_sdap_initgr_LDADD = \
 3600     $(CMOCKA_LIBS) \
 3601     $(POPT_LIBS) \
 3602     $(DHASH_LIBS) \
 3603     $(TALLOC_LIBS) \
 3604     $(TEVENT_LIBS) \
 3605     $(LDB_LIBS) \
 3606     $(SSSD_INTERNAL_LTLIBS) \
 3607     libsss_ldap_common.la \
 3608     libsss_test_common.la \
 3609     libdlopen_test_providers.la \
 3610     libsss_iface.la \
 3611     libsss_sbus.la \
 3612     $(NULL)
 3613 
 3614 test_ad_subdom_SOURCES = \
 3615     src/tests/cmocka/test_ad_subdomains.c \
 3616     $(NULL)
 3617 test_ad_subdom_CFLAGS = \
 3618     $(AM_CFLAGS) \
 3619     $(NDR_NBT_CFLAGS) \
 3620     $(NULL)
 3621 test_ad_subdom_LDADD = \
 3622     $(CMOCKA_LIBS) \
 3623     $(POPT_LIBS) \
 3624     $(TALLOC_LIBS) \
 3625     $(SSSD_INTERNAL_LTLIBS) \
 3626     libsss_ldap_common.la \
 3627     libsss_ad_tests.la \
 3628     libsss_idmap.la \
 3629     libsss_test_common.la \
 3630     libdlopen_test_providers.la \
 3631     libsss_iface.la \
 3632     libsss_sbus.la \
 3633     libsss_krb5_common.la \
 3634     $(NULL)
 3635 
 3636 test_ipa_subdom_util_SOURCES = \
 3637     src/tests/cmocka/test_ipa_subdomains_utils.c \
 3638     src/providers/ipa/ipa_subdomains_utils.c \
 3639     $(NULL)
 3640 test_ipa_subdom_util_CFLAGS = \
 3641     $(AM_CFLAGS) \
 3642     $(NULL)
 3643 test_ipa_subdom_util_LDADD = \
 3644     $(CMOCKA_LIBS) \
 3645     $(POPT_LIBS) \
 3646     $(TALLOC_LIBS) \
 3647     $(LDB_LIBS) \
 3648     $(SSSD_INTERNAL_LTLIBS) \
 3649     libsss_test_common.la \
 3650     $(NULL)
 3651 
 3652 test_ipa_subdom_server_SOURCES = \
 3653     $(libsss_krb5_common_la_SOURCES) \
 3654     src/tests/cmocka/common_mock_sdap.c \
 3655     src/tests/cmocka/common_mock_be.c \
 3656     src/tests/cmocka/common_mock_krb5.c \
 3657     src/tests/cmocka/test_ipa_subdomains_server.c \
 3658     src/providers/ipa/ipa_subdomains_server.c \
 3659     src/providers/ipa/ipa_subdomains_utils.c \
 3660     src/providers/ipa/ipa_opts.c \
 3661     $(NULL)
 3662 test_ipa_subdom_server_CFLAGS = \
 3663     $(AM_CFLAGS) \
 3664     -DIPA_TRUST_KEYTAB_DIR=TEST_DIR\"/tp_test_ipa_subdom_server-test_ipa_subdomains_server\" \
 3665     $(NULL)
 3666 test_ipa_subdom_server_LDFLAGS = \
 3667     -Wl,-wrap,krb5_kt_default \
 3668     -Wl,-wrap,execle \
 3669     -Wl,-wrap,execve \
 3670     -Wl,-wrap,rename \
 3671     -Wl,-wrap,sss_unique_filename \
 3672     $(NULL)
 3673 test_ipa_subdom_server_LDADD = \
 3674     $(CMOCKA_LIBS) \
 3675     $(SSSD_LIBS) \
 3676     $(KEYUTILS_LIBS) \
 3677     $(KRB5_LIBS) \
 3678     $(SSSD_INTERNAL_LTLIBS) \
 3679     libsss_ldap_common.la \
 3680     libsss_ad_tests.la \
 3681     libsss_test_common.la \
 3682     libdlopen_test_providers.la \
 3683     libsss_iface.la \
 3684     libsss_sbus.la \
 3685     $(NULL)
 3686 
 3687 test_tools_colondb_SOURCES = \
 3688     src/tests/cmocka/test_tools_colondb.c \
 3689     src/tools/common/sss_colondb.c \
 3690     $(NULL)
 3691 test_tools_colondb_CFLAGS = \
 3692     $(AM_CFLAGS) \
 3693     $(NULL)
 3694 test_tools_colondb_LDFLAGS = \
 3695     $(NULL)
 3696 test_tools_colondb_LDADD = \
 3697     $(CMOCKA_LIBS) \
 3698     $(SSSD_INTERNAL_LTLIBS) \
 3699     $(POPT_LIBS) \
 3700     libsss_test_common.la \
 3701     $(NULL)
 3702 
 3703 test_krb5_wait_queue_SOURCES = \
 3704     src/tests/cmocka/common_mock_be.c \
 3705     src/tests/cmocka/test_krb5_wait_queue.c \
 3706     src/providers/krb5/krb5_wait_queue.c \
 3707     $(NULL)
 3708 test_krb5_wait_queue_CFLAGS = \
 3709     $(AM_CFLAGS) \
 3710     $(NULL)
 3711 test_krb5_wait_queue_LDADD = \
 3712     $(CMOCKA_LIBS) \
 3713     $(POPT_LIBS) \
 3714     $(DHASH_LIBS) \
 3715     $(SSSD_INTERNAL_LTLIBS) \
 3716     libsss_test_common.la \
 3717     $(NULL)
 3718 
 3719 test_cert_utils_SOURCES = \
 3720     src/tests/cmocka/test_cert_utils.c \
 3721     src/util/cert/cert_common_p11_child.c \
 3722     $(NULL)
 3723 test_cert_utils_CFLAGS = \
 3724     $(AM_CFLAGS) \
 3725     -U SSSD_LIBEXEC_PATH -DSSSD_LIBEXEC_PATH=\"$(abs_builddir)\" \
 3726     -I$(abs_builddir)/src \
 3727     $(CRYPTO_CFLAGS) \
 3728     $(NULL)
 3729 test_cert_utils_LDADD = \
 3730     $(CMOCKA_LIBS) \
 3731     $(POPT_LIBS) \
 3732     $(TALLOC_LIBS) \
 3733     $(CRYPTO_LIBS) \
 3734     libsss_debug.la \
 3735     libsss_test_common.la \
 3736     libsss_cert.la \
 3737     libsss_crypt.la \
 3738     $(NULL)
 3739 
 3740 test_data_provider_be_SOURCES = \
 3741     src/providers/data_provider_be.c \
 3742     src/tests/cmocka/test_data_provider_be.c \
 3743     src/tests/cmocka/common_mock_be.c \
 3744     $(NULL)
 3745 test_data_provider_be_CFLAGS = \
 3746     $(AM_CFLAGS) \
 3747     -DUNIT_TESTING \
 3748     $(NULL)
 3749 test_data_provider_be_LDFLAGS = \
 3750     -Wl,-wrap,_tevent_add_timer \
 3751     $(NULL)
 3752 test_data_provider_be_LDADD = \
 3753     $(CMOCKA_LIBS) \
 3754     $(PAM_LIBS) \
 3755     $(SSSD_LIBS) \
 3756     $(SSSD_INTERNAL_LTLIBS) \
 3757     $(LIBADD_DL) \
 3758     libsss_test_common.la \
 3759     libdlopen_test_providers.la \
 3760     libsss_iface.la \
 3761     libsss_sbus.la \
 3762     $(NULL)
 3763 
 3764 test_dp_request_SOURCES = \
 3765     src/providers/data_provider/dp_request.c \
 3766     src/providers/data_provider/dp_modules.c \
 3767     src/providers/data_provider/dp_targets.c \
 3768     src/providers/data_provider/dp_methods.c \
 3769     src/providers/data_provider/dp_builtin.c \
 3770     src/tests/cmocka/data_provider/mock_dp.c \
 3771     src/tests/cmocka/data_provider/test_dp_request.c \
 3772     src/tests/cmocka/common_mock_be.c \
 3773     $(NULL)
 3774 test_dp_request_CFLAGS = \
 3775     $(AM_CFLAGS) \
 3776     -DUNIT_TESTING \
 3777     $(NULL)
 3778 test_dp_request_LDFLAGS = \
 3779     -Wl,-wrap,be_is_offline \
 3780     $(NULL)
 3781 test_dp_request_LDADD = \
 3782     $(CMOCKA_LIBS) \
 3783     $(SSSD_LIBS) \
 3784     $(SSSD_INTERNAL_LTLIBS) \
 3785     $(LIBADD_DL) \
 3786     libsss_test_common.la \
 3787     $(NULL)
 3788 if BUILD_SYSTEMTAP
 3789 test_dp_request_LDADD += stap_generated_probes.lo
 3790 endif
 3791 
 3792 test_dp_builtin_SOURCES = \
 3793     src/providers/data_provider/dp_modules.c \
 3794     src/providers/data_provider/dp_targets.c \
 3795     src/providers/data_provider/dp_methods.c \
 3796     src/providers/data_provider/dp_builtin.c \
 3797     src/tests/cmocka/data_provider/mock_dp.c \
 3798     src/tests/cmocka/data_provider/test_dp_builtin.c \
 3799     src/tests/cmocka/common_mock_be.c \
 3800     $(NULL)
 3801 test_dp_builtin_CFLAGS = \
 3802     $(AM_CFLAGS) \
 3803     -DUNIT_TESTING \
 3804     $(NULL)
 3805 test_dp_builtin_LDFLAGS = \
 3806     $(NULL)
 3807 test_dp_builtin_LDADD = \
 3808     $(CMOCKA_LIBS) \
 3809     $(SSSD_LIBS) \
 3810     $(SSSD_INTERNAL_LTLIBS) \
 3811     $(LIBADD_DL) \
 3812     libsss_test_common.la \
 3813     $(NULL)
 3814 
 3815 test_ipa_dn_SOURCES = \
 3816     src/providers/ipa/ipa_dn.c \
 3817     src/tests/cmocka/test_ipa_dn.c \
 3818     $(NULL)
 3819 test_ipa_dn_LDADD = \
 3820     $(CMOCKA_LIBS) \
 3821     $(POPT_LIBS) \
 3822     $(LDB_LIBS) \
 3823     $(TEVENT_LIBS) \
 3824     $(TALLOC_LIBS) \
 3825     $(SSSD_INTERNAL_LTLIBS) \
 3826     libsss_test_common.la \
 3827     $(NULL)
 3828 
 3829 test_iobuf_SOURCES = \
 3830     src/util/sss_iobuf.c \
 3831     src/tests/cmocka/test_iobuf.c \
 3832     $(NULL)
 3833 test_iobuf_CFLAGS = \
 3834     $(AM_CFLAGS) \
 3835     $(NULL)
 3836 test_iobuf_LDADD = \
 3837     $(CMOCKA_LIBS) \
 3838     $(SSSD_LIBS) \
 3839     $(NULL)
 3840 
 3841 EXTRA_simple_access_tests_DEPENDENCIES = \
 3842     $(ldblib_LTLIBRARIES)
 3843 simple_access_tests_SOURCES = \
 3844     src/tests/cmocka/test_simple_access.c \
 3845     src/tests/cmocka/common_mock_be.c \
 3846     src/providers/simple/simple_access.c \
 3847     src/providers/simple/simple_access_check.c \
 3848     $(NULL)
 3849 simple_access_tests_CFLAGS = \
 3850     $(AM_CFLAGS) \
 3851     $(NULL)
 3852 simple_access_tests_LDFLAGS = \
 3853     $(NULL)
 3854 simple_access_tests_LDADD = \
 3855     $(CMOCKA_LIBS) \
 3856     $(SSSD_LIBS) \
 3857     $(SSSD_INTERNAL_LTLIBS) \
 3858     libsss_test_common.la \
 3859     libdlopen_test_providers.la \
 3860     libsss_iface.la \
 3861     libsss_sbus.la \
 3862     $(NULL)
 3863 
 3864 krb5_common_test_SOURCES = \
 3865     src/tests/cmocka/test_krb5_common.c \
 3866     $(NULL)
 3867 krb5_common_test_CFLAGS = \
 3868     $(KRB5_CFLAGS) \
 3869     $(AM_CFLAGS) \
 3870     $(NULL)
 3871 krb5_common_test_LDADD = \
 3872     $(CMOCKA_LIBS) \
 3873     $(POPT_LIBS) \
 3874     $(TALLOC_LIBS) \
 3875     libsss_krb5_common.la \
 3876     $(SSSD_INTERNAL_LTLIBS) \
 3877     libsss_test_common.la \
 3878     libdlopen_test_providers.la \
 3879     libsss_iface.la \
 3880     libsss_sbus.la \
 3881     $(NULL)
 3882 
 3883 test_inotify_SOURCES = \
 3884     src/util/inotify.c \
 3885     src/tests/cmocka/test_inotify.c \
 3886     $(NULL)
 3887 test_inotify_CFLAGS = \
 3888     $(AM_CFLAGS) \
 3889     $(NULL)
 3890 test_inotify_LDADD = \
 3891     $(CMOCKA_LIBS) \
 3892     $(SSSD_LIBS) \
 3893     $(SSSD_INTERNAL_LTLIBS) \
 3894     $(LIBADD_DL) \
 3895     libsss_test_common.la \
 3896     $(NULL)
 3897 
 3898 sss_certmap_test_SOURCES = \
 3899     src/tests/cmocka/test_certmap.c \
 3900     src/lib/certmap/sss_certmap_attr_names.c \
 3901     $(NULL)
 3902 sss_certmap_test_CFLAGS = \
 3903     $(AM_CFLAGS) \
 3904     $(NSS_CFLAGS) \
 3905     -I$(abs_builddir)/src \
 3906     $(NULL)
 3907 sss_certmap_test_LDADD = \
 3908     $(CMOCKA_LIBS) \
 3909     $(POPT_LIBS) \
 3910     $(TALLOC_LIBS) \
 3911     $(NSS_LIBS) \
 3912     $(SSSD_INTERNAL_LTLIBS) \
 3913     libsss_test_common.la \
 3914     libsss_certmap.la \
 3915     $(NULL)
 3916 
 3917 test_sssd_krb5_locator_plugin_SOURCES = \
 3918     src/tests/cmocka/test_sssd_krb5_locator_plugin.c \
 3919     src/krb5_plugin/sssd_krb5_locator_plugin.c \
 3920     $(NULL)
 3921 test_sssd_krb5_locator_plugin_CFLAGS = \
 3922     $(AM_CFLAGS) \
 3923     $(POPT_CFLAGS) \
 3924     $(TALLOC_CFLAGS) \
 3925     $(KRB5_CFLAGS) \
 3926     -DTEST_PUBCONF_PATH=\"$(abs_builddir)/src/tests/cmocka/pubconf\" \
 3927     $(NULL)
 3928 test_sssd_krb5_locator_plugin_LDADD = \
 3929     $(CMOCKA_LIBS) \
 3930     $(POPT_LIBS) \
 3931     $(TALLOC_LIBS) \
 3932     $(KRB5_LIBS) \
 3933     libsss_test_common.la \
 3934     $(NULL)
 3935 
 3936 if BUILD_KCM
 3937 test_kcm_json_SOURCES = \
 3938     src/tests/cmocka/test_kcm_json_marshalling.c \
 3939     src/responder/kcm/kcmsrv_ccache_json.c \
 3940     src/responder/kcm/kcmsrv_ccache.c \
 3941     src/util/sss_krb5.c \
 3942     src/util/sss_iobuf.c \
 3943     $(NULL)
 3944 test_kcm_json_CFLAGS = \
 3945     $(AM_CFLAGS) \
 3946     $(UUID_CFLAGS) \
 3947     $(NULL)
 3948 test_kcm_json_LDADD = \
 3949     $(JANSSON_LIBS) \
 3950     $(UUID_LIBS) \
 3951     $(KRB5_LIBS) \
 3952     $(CMOCKA_LIBS) \
 3953     $(SSSD_LIBS) \
 3954     $(SSSD_INTERNAL_LTLIBS) \
 3955     libsss_test_common.la \
 3956     $(NULL)
 3957 
 3958 test_kcm_queue_SOURCES = \
 3959     src/tests/cmocka/test_kcm_queue.c \
 3960     src/responder/kcm/kcmsrv_op_queue.c \
 3961     $(NULL)
 3962 test_kcm_queue_CFLAGS = \
 3963     $(AM_CFLAGS) \
 3964     $(NULL)
 3965 test_kcm_queue_LDADD = \
 3966     $(CMOCKA_LIBS) \
 3967     $(SSSD_LIBS) \
 3968     $(SSSD_INTERNAL_LTLIBS) \
 3969     libsss_test_common.la \
 3970     $(NULL)
 3971 
 3972 endif # BUILD_KCM
 3973 
 3974 endif # HAVE_CMOCKA
 3975 
 3976 noinst_PROGRAMS =
 3977 if BUILD_SUDO
 3978 noinst_PROGRAMS += sss_sudo_cli
 3979 endif
 3980 if BUILD_AUTOFS
 3981 noinst_PROGRAMS += autofs_test_client
 3982 endif
 3983 if BUILD_WITH_LIBCURL
 3984 noinst_PROGRAMS += tcurl-test-tool
 3985 endif
 3986 if BUILD_PAC_RESPONDER
 3987     noinst_PROGRAMS += sssd_pac_test_client
 3988 endif
 3989 
 3990 if BUILD_AUTOFS
 3991 autofs_test_client_SOURCES = \
 3992     src/sss_client/autofs/autofs_test_client.c \
 3993     src/sss_client/autofs/sss_autofs.c \
 3994     src/sss_client/common.c
 3995 autofs_test_client_CFLAGS = $(AM_CFLAGS)
 3996 autofs_test_client_LDADD = -lpopt $(CLIENT_LIBS)
 3997 endif
 3998 
 3999 if BUILD_WITH_LIBCURL
 4000 tcurl_test_tool_SOURCES = \
 4001     src/tests/tcurl_test_tool.c \
 4002     src/util/tev_curl.c \
 4003     src/util/sss_iobuf.c \
 4004     $(NULL)
 4005 tcurl_test_tool_CFLAGS = \
 4006     $(AM_CFLAGS) \
 4007     $(CURL_CFLAGS) \
 4008     $(NULL)
 4009 tcurl_test_tool_LDADD = \
 4010     $(CURL_LIBS) \
 4011     $(SSSD_LIBS) \
 4012     $(SSSD_INTERNAL_LTLIBS) \
 4013     $(NULL)
 4014 endif
 4015 
 4016 if BUILD_KRB5_LOCALAUTH_PLUGIN
 4017 test_sssd_krb5_localauth_plugin_SOURCES = \
 4018     src/tests/cmocka/test_sssd_krb5_localauth_plugin.c \
 4019     src/krb5_plugin/sssd_krb5_localauth_plugin.c \
 4020     $(NULL)
 4021 test_sssd_krb5_localauth_plugin_CFLAGS = \
 4022     $(AM_CFLAGS) \
 4023     $(NULL)
 4024 test_sssd_krb5_localauth_plugin_LDADD = \
 4025     $(CMOCKA_LIBS) \
 4026     $(KRB5_LIBS) \
 4027     $(NULL)
 4028 endif
 4029 
 4030 #####################
 4031 # Integration tests #
 4032 #####################
 4033 
 4034 intgcheck-prepare:
 4035 	set -e; \
 4036 	rm -Rf intg; \
 4037 	$(MKDIR_P) intg/bld; \
 4038 	: Use /hopefully/ short prefix to keep D-Bus socket path short; \
 4039 	prefix=`mktemp --tmpdir --directory sssd-intg.XXXXXXXX`; \
 4040 	$(LN_S) "$$prefix" intg/pfx; \
 4041 	cd intg/bld; \
 4042 	$(abs_top_srcdir)/configure \
 4043 	    --prefix="$$prefix" \
 4044 	    --with-ldb-lib-dir="$$prefix"/lib/ldb \
 4045 	    --enable-intgcheck-reqs \
 4046 	    --without-semanage \
 4047 	    --with-secrets \
 4048 	    --with-session-recording-shell=/bin/false \
 4049 	    --enable-local-provider \
 4050 	    --enable-files-domain \
 4051 	    $(INTGCHECK_CONFIGURE_FLAGS) \
 4052 	    CFLAGS="-O2 -g $$CFLAGS"; \
 4053 	$(MAKE) $(AM_MAKEFLAGS) ; \
 4054 	$(MAKE) $(AM_MAKEFLAGS) test_ssh_client; \
 4055 	: Force single-thread install to workaround concurrency issues; \
 4056 	$(MAKE) $(AM_MAKEFLAGS) -j1 install; \
 4057 	: Remove .la files from LDB module directory to avoid loader warnings; \
 4058 	rm "$$prefix"/lib/ldb/*.la; \
 4059 	cd ../..
 4060 
 4061 intgcheck-run:
 4062 	set -e; \
 4063 	if [ ! -d intg/pfx ]; then $(MAKE) intgcheck-prepare; fi; \
 4064 	cd intg/bld; \
 4065 	$(MAKE) $(AM_MAKEFLAGS) -C src/tests/intg intgcheck-installed; \
 4066 	cd ../..
 4067 
 4068 intgcheck-clean:
 4069 	set -e; \
 4070 	prefix=`readlink -e intg/pfx`; \
 4071 	rm -Rf "$$prefix" intg
 4072 
 4073 intgcheck:
 4074 	$(MAKE) intgcheck-prepare
 4075 	$(MAKE) intgcheck-run
 4076 	$(MAKE) intgcheck-clean
 4077 
 4078 ####################
 4079 # Client Libraries #
 4080 ####################
 4081 
 4082 nsslib_LTLIBRARIES = libnss_sss.la
 4083 libnss_sss_la_SOURCES = \
 4084     src/sss_client/common.c \
 4085     src/sss_client/nss_passwd.c \
 4086     src/sss_client/nss_group.c \
 4087     src/sss_client/nss_netgroup.c \
 4088     src/sss_client/nss_services.c \
 4089     src/sss_client/sss_cli.h \
 4090     src/sss_client/nss_compat.h \
 4091     src/sss_client/nss_common.h \
 4092     src/sss_client/common_private.h \
 4093     src/sss_client/nss_mc_common.c \
 4094     src/util/io.c \
 4095     src/util/murmurhash3.c \
 4096     src/sss_client/nss_mc_passwd.c \
 4097     src/sss_client/nss_mc_group.c \
 4098     src/sss_client/nss_mc_initgr.c \
 4099     src/sss_client/nss_mc.h
 4100 libnss_sss_la_LIBADD = \
 4101     $(CLIENT_LIBS)
 4102 libnss_sss_la_LDFLAGS = \
 4103     -module \
 4104     -version-info 2:0:0 \
 4105     -Wl,--version-script,$(srcdir)/src/sss_client/sss_nss.exports
 4106 
 4107 if BUILD_NFS_IDMAP
 4108 nfslib_LTLIBRARIES = sss.la
 4109 sss_la_SOURCES = \
 4110     src/sss_client/common.c \
 4111     src/sss_client/nss_mc_common.c \
 4112     src/util/io.c \
 4113     src/util/murmurhash3.c \
 4114     src/sss_client/nss_mc_passwd.c \
 4115     src/sss_client/nss_mc_group.c \
 4116     src/sss_client/nfs/sss_nfs_client.c \
 4117     $(NULL)
 4118 sss_la_CFLAGS = $(AM_CFLAGS)
 4119 sss_la_LIBADD = \
 4120     $(CLIENT_LIBS) \
 4121     $(NFSIDMAP_LIBS) \
 4122     $(NULL)
 4123 sss_la_LDFLAGS = \
 4124     -module \
 4125     -avoid-version \
 4126     $(NULL)
 4127 endif
 4128 
 4129 pamlib_LTLIBRARIES = pam_sss.la
 4130 pam_sss_la_SOURCES = \
 4131     src/sss_client/pam_sss.c \
 4132     src/sss_client/pam_sss_prompt_config.c \
 4133     src/sss_client/pam_message.c \
 4134     src/sss_client/common.c \
 4135     src/sss_client/sss_cli.h \
 4136     src/util/atomic_io.c \
 4137     src/util/authtok-utils.c \
 4138     src/sss_client/sss_pam_macros.h \
 4139     src/sss_client/sss_pam_compat.h
 4140 
 4141 pam_sss_la_LIBADD = \
 4142     $(CLIENT_LIBS) \
 4143     $(PAM_LIBS)
 4144 pam_sss_la_LDFLAGS = \
 4145     -module \
 4146     -avoid-version \
 4147     -Wl,--version-script,$(srcdir)/src/sss_client/sss_pam.exports
 4148 
 4149 if BUILD_SUDO
 4150 
 4151 libsss_sudo_la_SOURCES = \
 4152     src/sss_client/common.c \
 4153     src/sss_client/sss_cli.h \
 4154     src/sss_client/sudo/sss_sudo_response.c \
 4155     src/sss_client/sudo/sss_sudo.c \
 4156     src/sss_client/sudo/sss_sudo.h \
 4157     src/sss_client/sudo/sss_sudo_private.h
 4158 libsss_sudo_la_LIBADD = \
 4159     $(CLIENT_LIBS)
 4160 libsss_sudo_la_LDFLAGS = \
 4161     -Wl,--version-script,$(srcdir)/src/sss_client/sss_sudo.exports \
 4162     -module \
 4163     -avoid-version
 4164 
 4165 sudolib_LTLIBRARIES = libsss_sudo.la
 4166 
 4167 endif
 4168 
 4169 if BUILD_AUTOFS
 4170 autofslib_LTLIBRARIES = libsss_autofs.la
 4171 libsss_autofs_la_SOURCES = \
 4172     src/sss_client/common.c \
 4173     src/sss_client/sss_cli.h \
 4174     src/sss_client/autofs/sss_autofs.c \
 4175     src/sss_client/autofs/sss_autofs_private.h
 4176 
 4177 libsss_autofs_la_LIBADD = \
 4178     $(CLIENT_LIBS)
 4179 libsss_autofs_la_LDFLAGS = \
 4180     -module \
 4181     -avoid-version \
 4182     -Wl,--version-script,$(srcdir)/src/sss_client/autofs/sss_autofs.exports
 4183 endif
 4184 
 4185 dist_noinst_DATA += \
 4186     src/sss_client/sss_nss.exports \
 4187     src/sss_client/sss_pam.exports
 4188 if BUILD_SUDO
 4189 dist_noinst_DATA += src/sss_client/sss_sudo.exports
 4190 endif
 4191 
 4192 if BUILD_AUTOFS
 4193 dist_noinst_DATA += src/sss_client/autofs/sss_autofs.exports
 4194 endif
 4195 
 4196 ####################
 4197 # Plugin Libraries #
 4198 ####################
 4199 
 4200 # libsss_krb5_common must be installed before libsss_ldap_common
 4201 # because libtool tries to relink libsss_ldap_common when installing
 4202 # libsss_ldap_common and therefore make distcheck fails
 4203 pkglib_LTLIBRARIES += libsss_krb5_common.la
 4204 pkglib_LTLIBRARIES += libsss_ldap_common.la
 4205 libsss_ldap_common_la_SOURCES = \
 4206     src/providers/ldap/ldap_id.c \
 4207     src/providers/ldap/ldap_id_enum.c \
 4208     src/providers/ldap/sdap_async_enum.c \
 4209     src/providers/ldap/ldap_id_cleanup.c \
 4210     src/providers/ldap/ldap_id_netgroup.c \
 4211     src/providers/ldap/ldap_id_services.c \
 4212     src/providers/ldap/ldap_auth.c \
 4213     src/providers/ldap/ldap_common.c \
 4214     src/providers/ldap/ldap_options.c \
 4215     src/providers/ldap/ldap_opts.c \
 4216     src/providers/ldap/sdap_access.c \
 4217     src/providers/ldap/sdap_async.c \
 4218     src/providers/ldap/sdap_async_users.c \
 4219     src/providers/ldap/sdap_async_groups.c \
 4220     src/providers/ldap/sdap_async_nested_groups.c \
 4221     src/providers/ldap/sdap_async_groups_ad.c \
 4222     src/providers/ldap/sdap_async_initgroups.c \
 4223     src/providers/ldap/sdap_async_initgroups_ad.c \
 4224     src/providers/ldap/sdap_async_connection.c \
 4225     src/providers/ldap/sdap_async_netgroups.c \
 4226     src/providers/ldap/sdap_async_hosts.c \
 4227     src/providers/ldap/sdap_async_services.c \
 4228     src/providers/ldap/sdap_online_check.c \
 4229     src/providers/ldap/sdap_ad_groups.c \
 4230     src/providers/ldap/sdap_child_helpers.c \
 4231     src/providers/ldap/sdap_fd_events.c \
 4232     src/providers/ldap/sdap_hostid.h \
 4233     src/providers/ldap/sdap_id_op.c \
 4234     src/providers/ldap/sdap_certmap.c \
 4235     src/providers/ldap/sdap_idmap.c \
 4236     src/providers/ldap/sdap_idmap.h \
 4237     src/providers/ldap/sdap_range.c \
 4238     src/providers/ldap/sdap_reinit.c \
 4239     src/providers/ldap/sdap_dyndns.c \
 4240     src/providers/ldap/sdap_refresh.c \
 4241     src/providers/ldap/sdap_utils.c \
 4242     src/providers/ldap/sdap_domain.c \
 4243     src/providers/ldap/sdap_ops.c \
 4244     src/providers/ldap/sdap.c \
 4245     src/providers/ipa/ipa_dn.c \
 4246     src/util/user_info_msg.c \
 4247     src/util/sss_sockets.c \
 4248     src/util/sss_ldap.c \
 4249     $(NULL)
 4250 libsss_ldap_common_la_CFLAGS = \
 4251     $(AM_CFLAGS) \
 4252     $(KRB5_CFLAGS) \
 4253     $(NULL)
 4254 libsss_ldap_common_la_LIBADD = \
 4255     $(TALLOC_LIBS) \
 4256     $(TEVENT_LIBS) \
 4257     $(LDB_LIBS) \
 4258     $(OPENLDAP_LIBS) \
 4259     $(DHASH_LIBS) \
 4260     $(KRB5_LIBS) \
 4261     libsss_krb5_common.la \
 4262     libsss_idmap.la \
 4263     libsss_certmap.la \
 4264     $(SSSD_INTERNAL_LTLIBS) \
 4265     $(NULL)
 4266 libsss_ldap_common_la_LDFLAGS = \
 4267     -avoid-version \
 4268     $(NULL)
 4269 if BUILD_SYSTEMTAP
 4270 libsss_ldap_common_la_LIBADD += stap_generated_probes.lo
 4271 endif
 4272 
 4273 if BUILD_SSH
 4274 libsss_ldap_common_la_SOURCES += src/providers/ldap/sdap_hostid.c
 4275 endif
 4276 
 4277 if BUILD_SUDO
 4278 libsss_ldap_common_la_SOURCES += \
 4279     src/providers/ldap/sdap_async_sudo.c \
 4280     src/providers/ldap/sdap_async_sudo_hostinfo.c \
 4281     src/providers/ldap/sdap_sudo_refresh.c \
 4282     src/providers/ldap/sdap_sudo_shared.c \
 4283     src/providers/ldap/sdap_sudo.c
 4284 endif
 4285 
 4286 if BUILD_AUTOFS
 4287 libsss_ldap_common_la_SOURCES += \
 4288     src/providers/ldap/sdap_autofs.c \
 4289     src/providers/ldap/sdap_async_autofs.c
 4290 endif
 4291 
 4292 libsss_krb5_common_la_SOURCES = \
 4293     src/providers/krb5/krb5_utils.c \
 4294     src/providers/krb5/krb5_delayed_online_authentication.c \
 4295     src/providers/krb5/krb5_renew_tgt.c \
 4296     src/providers/krb5/krb5_wait_queue.c \
 4297     src/providers/krb5/krb5_common.c \
 4298     src/providers/krb5/krb5_opts.c \
 4299     src/providers/krb5/krb5_auth.c \
 4300     src/providers/krb5/krb5_access.c \
 4301     src/providers/krb5/krb5_child_handler.c \
 4302     src/providers/krb5/krb5_init_shared.c \
 4303     src/providers/krb5/krb5_ccache.c \
 4304     src/util/sss_krb5.c \
 4305     src/util/sss_iobuf.c \
 4306     src/util/become_user.c \
 4307     $(NULL)
 4308 libsss_krb5_common_la_CFLAGS = \
 4309     $(AM_CFLAGS) \
 4310     $(KRB5_CFLAGS)
 4311 libsss_krb5_common_la_LIBADD = \
 4312     $(TALLOC_LIBS) \
 4313     $(TEVENT_LIBS) \
 4314     $(LDB_LIBS) \
 4315     $(KEYUTILS_LIBS) \
 4316     $(DHASH_LIBS) \
 4317     $(KRB5_LIBS) \
 4318     $(SSSD_INTERNAL_LTLIBS) \
 4319     $(NULL)
 4320 libsss_krb5_common_la_LDFLAGS = \
 4321     -avoid-version
 4322 
 4323 libsss_ldap_la_SOURCES = \
 4324     src/providers/ldap/ldap_init.c \
 4325     src/providers/ldap/ldap_access.c
 4326 libsss_ldap_la_CFLAGS = \
 4327     $(AM_CFLAGS) \
 4328     $(OPENLDAP_CFLAGS)
 4329 libsss_ldap_la_LIBADD = \
 4330     $(TALLOC_LIBS) \
 4331     $(TEVENT_LIBS) \
 4332     $(OPENLDAP_LIBS) \
 4333     $(SSSD_INTERNAL_LTLIBS) \
 4334     libsss_ldap_common.la \
 4335     libsss_krb5_common.la
 4336 libsss_ldap_la_LDFLAGS = \
 4337     -avoid-version \
 4338     -module
 4339 
 4340 
 4341 libsss_proxy_la_SOURCES = \
 4342     src/providers/proxy/proxy_init.c \
 4343     src/providers/proxy/proxy_client.c \
 4344     src/providers/proxy/proxy_id.c \
 4345     src/providers/proxy/proxy_netgroup.c \
 4346     src/providers/proxy/proxy_services.c \
 4347     src/providers/proxy/proxy_auth.c \
 4348     src//util/nss_dl_load.c \
 4349     $(NULL)
 4350 libsss_proxy_la_CFLAGS = \
 4351     $(AM_CFLAGS)
 4352 libsss_proxy_la_LIBADD = \
 4353     $(LIBADD_DL) \
 4354     $(TALLOC_LIBS) \
 4355     $(TEVENT_LIBS) \
 4356     $(LDB_LIBS) \
 4357     $(PAM_LIBS) \
 4358     $(DHASH_LIBS) \
 4359     $(DBUS_LIBS) \
 4360     $(SSSD_INTERNAL_LTLIBS) \
 4361     libsss_iface.la \
 4362     libsss_sbus.la \
 4363     $(NULL)
 4364 libsss_proxy_la_LDFLAGS = \
 4365     -avoid-version \
 4366     -module
 4367 
 4368 libsss_files_la_SOURCES = \
 4369     src/providers/files/files_init.c \
 4370     src/providers/files/files_id.c \
 4371     src/providers/files/files_auth.c \
 4372     src/providers/files/files_certmap.c \
 4373     src/providers/files/files_ops.c \
 4374     src/util/inotify.c \
 4375     $(NULL)
 4376 libsss_files_la_CFLAGS = \
 4377     $(AM_CFLAGS) \
 4378     $(NULL)
 4379 libsss_files_la_LIBADD = \
 4380     $(TALLOC_LIBS) \
 4381     $(TEVENT_LIBS) \
 4382     $(LDB_LIBS) \
 4383     $(PAM_LIBS) \
 4384     $(SSSD_INTERNAL_LTLIBS) \
 4385     $(NULL)
 4386 libsss_files_la_LDFLAGS = \
 4387     -avoid-version \
 4388     -module \
 4389     $(NULL)
 4390 
 4391 libsss_simple_la_SOURCES = \
 4392     src/providers/simple/simple_access_check.c \
 4393     src/providers/simple/simple_access.c
 4394 libsss_simple_la_CFLAGS = \
 4395     $(AM_CFLAGS)
 4396 libsss_simple_la_LIBADD = \
 4397     $(TALLOC_LIBS) \
 4398     $(TEVENT_LIBS) \
 4399     $(LDB_LIBS) \
 4400     $(SSSD_INTERNAL_LTLIBS) \
 4401     $(NULL)
 4402 libsss_simple_la_LDFLAGS = \
 4403     -avoid-version \
 4404     -module
 4405 
 4406 libsss_krb5_la_SOURCES = \
 4407     src/providers/krb5/krb5_init.c
 4408 libsss_krb5_la_CFLAGS = \
 4409     $(AM_CFLAGS) \
 4410     $(DHASH_CFLAGS) \
 4411     $(KRB5_CFLAGS)
 4412 libsss_krb5_la_LIBADD = \
 4413     $(TALLOC_LIBS) \
 4414     $(DHASH_LIBS) \
 4415     $(KRB5_LIBS) \
 4416     $(PCRE_LIBS) \
 4417     $(SSSD_INTERNAL_LTLIBS) \
 4418     libsss_krb5_common.la
 4419 libsss_krb5_la_LDFLAGS = \
 4420     -avoid-version \
 4421     -module
 4422 
 4423 libsss_ipa_la_SOURCES = \
 4424     src/providers/ipa/ipa_init.c \
 4425     src/providers/ipa/ipa_opts.c \
 4426     src/providers/ipa/ipa_common.c \
 4427     src/providers/ipa/ipa_config.c \
 4428     src/providers/ipa/ipa_id.c \
 4429     src/providers/ipa/ipa_netgroups.c \
 4430     src/providers/ipa/ipa_auth.c \
 4431     src/providers/ipa/ipa_access.c \
 4432     src/providers/ipa/ipa_dyndns.c \
 4433     src/providers/ipa/ipa_hosts.c \
 4434     src/providers/ipa/ipa_subdomains.c \
 4435     src/providers/ipa/ipa_subdomains_id.c \
 4436     src/providers/ipa/ipa_subdomains_server.c \
 4437     src/providers/ipa/ipa_subdomains_utils.c \
 4438     src/providers/ipa/ipa_subdomains_ext_groups.c \
 4439     src/providers/ipa/ipa_views.c \
 4440     src/providers/ipa/ipa_utils.c \
 4441     src/providers/ipa/ipa_s2n_exop.c \
 4442     src/providers/ipa/ipa_hbac_hosts.c \
 4443     src/providers/ipa/ipa_hbac_private.h \
 4444     src/providers/ipa/ipa_hbac_rules.c \
 4445     src/providers/ipa/ipa_hbac_rules.h \
 4446     src/providers/ipa/ipa_hbac_services.c \
 4447     src/providers/ipa/ipa_hbac_users.c \
 4448     src/providers/ipa/ipa_hbac_common.c \
 4449     src/providers/ipa/ipa_rules_common.c \
 4450     src/providers/ipa/ipa_rules_common.h \
 4451     src/providers/ipa/ipa_session.c \
 4452     src/providers/ipa/ipa_deskprofile_private.h \
 4453     src/providers/ipa/ipa_deskprofile_config.c \
 4454     src/providers/ipa/ipa_deskprofile_config.h \
 4455     src/providers/ipa/ipa_deskprofile_rules.c \
 4456     src/providers/ipa/ipa_deskprofile_rules.h \
 4457     src/providers/ipa/ipa_deskprofile_rules_util.c \
 4458     src/providers/ipa/ipa_deskprofile_rules_util.h \
 4459     src/providers/ipa/ipa_srv.c \
 4460     src/providers/ipa/ipa_idmap.c \
 4461     src/providers/ipa/ipa_dn.c \
 4462     src/providers/ipa/ipa_refresh.c \
 4463     src/providers/ad/ad_opts.c \
 4464     src/providers/ad/ad_common.c \
 4465     src/providers/ad/ad_dyndns.c \
 4466     src/providers/ad/ad_id.c \
 4467     src/providers/ad/ad_pac.c \
 4468     src/providers/ad/ad_pac_common.c \
 4469     src/providers/ad/ad_srv.c \
 4470     src/providers/ad/ad_domain_info.c
 4471 libsss_ipa_la_CFLAGS = \
 4472     $(AM_CFLAGS) \
 4473     $(OPENLDAP_CFLAGS) \
 4474     $(DHASH_CFLAGS) \
 4475     $(NDR_NBT_CFLAGS) \
 4476     $(NDR_KRB5PAC_CFLAGS) \
 4477     $(KRB5_CFLAGS)
 4478 libsss_ipa_la_LIBADD = \
 4479     $(LDB_LIBS) \
 4480     $(DBUS_LIBS) \
 4481     $(OPENLDAP_LIBS) \
 4482     $(DHASH_LIBS) \
 4483     $(NDR_NBT_LIBS) \
 4484     $(NDR_KRB5PAC_LIBS) \
 4485     $(KRB5_LIBS) \
 4486     $(SELINUX_LIBS) \
 4487     $(SSSD_INTERNAL_LTLIBS) \
 4488     libsss_ldap_common.la \
 4489     libsss_krb5_common.la \
 4490     libipa_hbac.la \
 4491     libsss_idmap.la \
 4492     libsss_semanage.la \
 4493     $(NULL)
 4494 libsss_ipa_la_LDFLAGS = \
 4495     -avoid-version \
 4496     -module
 4497 if BUILD_AUTOFS
 4498 libsss_ipa_la_SOURCES += \
 4499     src/providers/ipa/ipa_autofs.c
 4500 endif
 4501 
 4502 if BUILD_SUDO
 4503 libsss_ipa_la_SOURCES += \
 4504     src/providers/ipa/ipa_sudo.c \
 4505     src/providers/ipa/ipa_sudo_refresh.c \
 4506     src/providers/ipa/ipa_sudo_conversion.c \
 4507     src/providers/ipa/ipa_sudo_async.c
 4508 endif
 4509 
 4510 if BUILD_SEMANAGE
 4511 libsss_ipa_la_SOURCES += \
 4512     src/providers/ipa/ipa_selinux.c \
 4513     src/providers/ipa/ipa_selinux_maps.c
 4514 endif
 4515 
 4516 if BUILD_SSH
 4517 libsss_ipa_la_SOURCES += src/providers/ipa/ipa_hostid.c
 4518 endif
 4519 
 4520 
 4521 libsss_ad_la_SOURCES = \
 4522     src/providers/ad/ad_opts.c \
 4523     src/providers/ad/ad_common.c \
 4524     src/providers/ad/ad_init.c \
 4525     src/providers/ad/ad_dyndns.c \
 4526     src/providers/ad/ad_machine_pw_renewal.c \
 4527     src/providers/ad/ad_id.c \
 4528     src/providers/ad/ad_pac.c \
 4529     src/providers/ad/ad_pac_common.c \
 4530     src/providers/ad/ad_access.c \
 4531     src/providers/ad/ad_gpo.c \
 4532     src/providers/ad/ad_gpo_ndr.c \
 4533     src/providers/ad/ad_srv.c \
 4534     src/providers/ad/ad_subdomains.c \
 4535     src/providers/ad/ad_domain_info.c \
 4536     src/providers/ad/ad_refresh.c \
 4537     $(NULL)
 4538 
 4539 
 4540 if BUILD_SUDO
 4541 libsss_ad_la_SOURCES += \
 4542     src/providers/ad/ad_sudo.c
 4543 endif
 4544 
 4545 if BUILD_AUTOFS
 4546 libsss_ad_la_SOURCES += \
 4547     src/providers/ad/ad_autofs.c
 4548 endif
 4549 
 4550 libsss_ad_la_CFLAGS = \
 4551     $(AM_CFLAGS) \
 4552     $(OPENLDAP_CFLAGS) \
 4553     $(SASL_CFLAGS) \
 4554     $(DHASH_CFLAGS) \
 4555     $(KRB5_CFLAGS) \
 4556     $(NDR_NBT_CFLAGS) \
 4557     $(NDR_KRB5PAC_CFLAGS) \
 4558     $(SMBCLIENT_CFLAGS)
 4559 libsss_ad_la_LIBADD = \
 4560     $(LDB_LIBS) \
 4561     $(OPENLDAP_LIBS) \
 4562     $(SASL_LIBS) \
 4563     $(DHASH_LIBS) \
 4564     $(INI_CONFIG_LIBS) \
 4565     $(KRB5_LIBS) \
 4566     $(NDR_NBT_LIBS) \
 4567     $(NDR_KRB5PAC_LIBS) \
 4568     $(SSSD_INTERNAL_LTLIBS) \
 4569     $(SMBCLIENT_LIBS) \
 4570     libsss_ldap_common.la \
 4571     libsss_krb5_common.la \
 4572     libsss_idmap.la
 4573 libsss_ad_la_LDFLAGS = \
 4574     -avoid-version \
 4575     -module
 4576 
 4577 krb5_child_SOURCES = \
 4578     src/providers/krb5/krb5_child.c \
 4579     src/providers/krb5/krb5_ccache.c \
 4580     src/providers/krb5/krb5_keytab.c \
 4581     src/util/sss_pam_data.c \
 4582     src/util/user_info_msg.c \
 4583     src/util/sss_krb5.c \
 4584     src/util/sss_iobuf.c \
 4585     src/util/find_uid.c \
 4586     src/util/atomic_io.c \
 4587     src/util/memory.c \
 4588     src/util/authtok.c \
 4589     src/util/authtok-utils.c \
 4590     src/util/util.c \
 4591     src/util/util_ext.c \
 4592     src/util/signal.c \
 4593     src/util/strtonum.c \
 4594     src/util/become_user.c \
 4595     src/util/util_errors.c \
 4596     src/sss_client/common.c \
 4597     $(NULL)
 4598 krb5_child_CFLAGS = \
 4599     $(AM_CFLAGS) \
 4600     $(POPT_CFLAGS) \
 4601     $(KRB5_CFLAGS) \
 4602     $(SYSTEMD_LOGIN_CFLAGS) \
 4603     $(NULL)
 4604 krb5_child_LDADD = \
 4605     libsss_debug.la \
 4606     $(TALLOC_LIBS) \
 4607     $(POPT_LIBS) \
 4608     $(DHASH_LIBS) \
 4609     $(KRB5_LIBS) \
 4610     $(CLIENT_LIBS) \
 4611     $(SYSTEMD_LOGIN_LIBS) \
 4612     $(NULL)
 4613 
 4614 ldap_child_SOURCES = \
 4615     src/providers/ldap/ldap_child.c \
 4616     src/providers/krb5/krb5_keytab.c \
 4617     src/util/sss_krb5.c \
 4618     src/util/sss_iobuf.c \
 4619     src/util/atomic_io.c \
 4620     src/util/memory.c \
 4621     src/util/authtok.c \
 4622     src/util/authtok-utils.c \
 4623     src/util/util.c \
 4624     src/util/util_ext.c \
 4625     src/util/signal.c \
 4626     src/util/become_user.c \
 4627     src/util/util_errors.c \
 4628     $(NULL)
 4629 ldap_child_CFLAGS = \
 4630     $(AM_CFLAGS) \
 4631     $(POPT_CFLAGS) \
 4632     $(KRB5_CFLAGS)
 4633 ldap_child_LDADD = \
 4634     libsss_debug.la \
 4635     $(TALLOC_LIBS) \
 4636     $(POPT_LIBS) \
 4637     $(DHASH_LIBS) \
 4638     $(KRB5_LIBS)
 4639 
 4640 if BUILD_SEMANAGE
 4641 selinux_child_SOURCES = \
 4642     src/providers/ipa/selinux_child.c \
 4643     src/util/sss_semanage.c \
 4644     src/util/atomic_io.c \
 4645     src/util/util.c \
 4646     src/util/util_ext.c \
 4647     src/util/util_errors.c
 4648     $(NULL)
 4649 selinux_child_CFLAGS = \
 4650     $(AM_CFLAGS) \
 4651     $(POPT_CFLAGS) \
 4652     $(NULL)
 4653 selinux_child_LDADD = \
 4654     libsss_debug.la \
 4655     $(TALLOC_LIBS) \
 4656     $(POPT_LIBS) \
 4657     $(DHASH_LIBS) \
 4658     $(SEMANAGE_LIBS) \
 4659     $(SELINUX_LIBS) \
 4660     $(NULL)
 4661 endif
 4662 
 4663 gpo_child_SOURCES = \
 4664     src/providers/ad/ad_gpo_child.c \
 4665     src/util/atomic_io.c \
 4666     src/util/util.c \
 4667     src/util/util_ext.c \
 4668     src/util/signal.c
 4669 gpo_child_CFLAGS = \
 4670     $(AM_CFLAGS) \
 4671     $(POPT_CFLAGS) \
 4672     $(KRB5_CFLAGS) \
 4673     $(INI_CONFIG_CFLAGS) \
 4674     $(SMBCLIENT_CFLAGS)
 4675 gpo_child_LDADD = \
 4676     libsss_debug.la \
 4677     $(TALLOC_LIBS) \
 4678     $(POPT_LIBS) \
 4679     $(DHASH_LIBS) \
 4680     $(INI_CONFIG_LIBS) \
 4681     $(SMBCLIENT_LIBS)
 4682 
 4683 proxy_child_SOURCES = \
 4684     src/providers/proxy/proxy_child.c \
 4685     $(NULL)
 4686 proxy_child_CFLAGS = \
 4687     $(AM_CFLAGS) \
 4688     $(POPT_CFLAGS)
 4689 proxy_child_LDADD = \
 4690     $(PAM_LIBS) \
 4691     $(SSSD_LIBS) \
 4692     $(SSSD_INTERNAL_LTLIBS) \
 4693     libsss_iface.la \
 4694     libsss_sbus.la \
 4695     $(NULL)
 4696 
 4697 p11_child_SOURCES = \
 4698     src/p11_child/p11_child_common.c \
 4699     src/p11_child/p11_child_common_utils.c \
 4700     src/util/atomic_io.c \
 4701     src/util/util.c \
 4702     src/util/util_ext.c \
 4703     $(NULL)
 4704 if HAVE_NSS
 4705 p11_child_SOURCES += src/p11_child/p11_child_nss.c
 4706 else
 4707 p11_child_SOURCES += src/p11_child/p11_child_openssl.c
 4708 endif
 4709 
 4710 p11_child_CFLAGS = \
 4711     $(AM_CFLAGS) \
 4712     $(POPT_CFLAGS) \
 4713     $(NULL)
 4714 if HAVE_NSS
 4715 p11_child_CFLAGS += \
 4716     $(NSS_CFLAGS) \
 4717     $(NULL)
 4718 else
 4719 p11_child_CFLAGS += \
 4720     $(P11_KIT_CFLAGS) \
 4721     $(CRYPTO_CFLAGS) \
 4722     $(SSL_CFLAGS) \
 4723     $(NULL)
 4724 endif
 4725 
 4726 p11_child_LDADD = \
 4727     libsss_debug.la \
 4728     $(TALLOC_LIBS) \
 4729     $(DHASH_LIBS) \
 4730     $(POPT_LIBS) \
 4731     libsss_crypt.la \
 4732     $(NULL)
 4733 if HAVE_NSS
 4734 p11_child_LDADD += \
 4735     $(NSS_LIBS) \
 4736     $(NULL)
 4737 else
 4738 p11_child_LDADD += \
 4739     $(P11_KIT_LIBS) \
 4740     $(CRYPTO_LIBS) \
 4741     $(SSL_LIBS) \
 4742     $(NULL)
 4743 endif
 4744 
 4745 memberof_la_SOURCES = \
 4746     src/ldb_modules/memberof.c \
 4747     src/util/util.c \
 4748     src/util/util_ext.c \
 4749     $(NULL)
 4750 memberof_la_CFLAGS = \
 4751     $(AM_CFLAGS) \
 4752     $(NULL)
 4753 memberof_la_LIBADD = \
 4754     libsss_debug.la \
 4755     $(TALLOC_LIBS) \
 4756     $(LDB_LIBS) \
 4757     $(DHASH_LIBS) \
 4758     $(NULL)
 4759 memberof_la_LDFLAGS = \
 4760     -avoid-version \
 4761     -module \
 4762     $(NULL)
 4763 
 4764 if BUILD_KRB5_LOCATOR_PLUGIN
 4765 sssd_krb5_locator_plugin_la_SOURCES = \
 4766     src/krb5_plugin/sssd_krb5_locator_plugin.c \
 4767     src/util/atomic_io.c
 4768 sssd_krb5_locator_plugin_la_CFLAGS = \
 4769     $(AM_CFLAGS) \
 4770     $(KRB5_CFLAGS)
 4771 sssd_krb5_locator_plugin_la_LDFLAGS = \
 4772     -avoid-version \
 4773     -module
 4774 endif
 4775 
 4776 if BUILD_KRB5_LOCALAUTH_PLUGIN
 4777 sssd_krb5_localauth_plugin_la_SOURCES = \
 4778     src/krb5_plugin/sssd_krb5_localauth_plugin.c \
 4779     src/util/murmurhash3.c \
 4780     src/util/io.c \
 4781     src/sss_client/common.c \
 4782     src/sss_client/nss_mc_common.c \
 4783     src/sss_client/nss_mc_passwd.c \
 4784     src/sss_client/nss_passwd.c
 4785 sssd_krb5_localauth_plugin_la_CFLAGS = \
 4786     $(AM_CFLAGS) \
 4787     $(KRB5_CFLAGS)
 4788 sssd_krb5_localauth_plugin_la_LIBADD = \
 4789     $(KRB5_LIBS)
 4790 sssd_krb5_localauth_plugin_la_LDFLAGS = \
 4791     -avoid-version \
 4792     -module
 4793 endif
 4794 
 4795 sssd_pac_plugin_la_SOURCES = \
 4796     src/sss_client/sssd_pac.c \
 4797     src/sss_client/common.c \
 4798     src/sss_client/sss_cli.h \
 4799     src/sss_client/krb5_authdata_int.h
 4800 sssd_pac_plugin_la_CFLAGS = \
 4801     $(AM_CFLAGS) \
 4802     $(KRB5_CFLAGS)
 4803 sssd_pac_plugin_la_LIBADD = \
 4804     $(CLIENT_LIBS) \
 4805     $(KRB5_LIBS)
 4806 sssd_pac_plugin_la_LDFLAGS = \
 4807     -avoid-version \
 4808     -module
 4809 
 4810 sssd_pac_test_client_SOURCES = \
 4811     src/sss_client/sss_pac_responder_client.c \
 4812     src/sss_client/common.c \
 4813     src/util/strtonum.c \
 4814     $(NULL)
 4815 sssd_pac_test_client_CFLAGS = \
 4816     $(AM_CFLAGS) \
 4817     $(NULL)
 4818 sssd_pac_test_client_LDADD = \
 4819     $(CLIENT_LIBS) \
 4820     -lpthread \
 4821     $(NULL)
 4822 
 4823 # python[23] bindings
 4824 pysss_la_SOURCES = \
 4825     $(SSSD_TOOLS_OBJ) \
 4826     src/python/pysss.c
 4827 pysss_la_LDFLAGS = \
 4828     -avoid-version \
 4829     -module
 4830 
 4831 _py2sss_la_SOURCES = $(pysss_la_SOURCES)
 4832 _py2sss_la_CFLAGS = \
 4833     $(AM_CFLAGS)  \
 4834     $(PYTHON2_CFLAGS)
 4835 _py2sss_la_LIBADD = \
 4836     $(SSSD_INTERNAL_LTLIBS) \
 4837     $(PYTHON_BINDINGS_LIBS) \
 4838     $(PYTHON2_LIBS)
 4839 _py2sss_la_LDFLAGS = $(pysss_la_LDFLAGS)
 4840 
 4841 _py3sss_la_SOURCES = $(pysss_la_SOURCES)
 4842 _py3sss_la_CFLAGS = \
 4843     $(AM_CFLAGS)  \
 4844     $(PYTHON3_CFLAGS)
 4845 _py3sss_la_LIBADD = \
 4846     $(SSSD_INTERNAL_LTLIBS) \
 4847     $(PYTHON_BINDINGS_LIBS) \
 4848     $(PYTHON3_LIBS)
 4849 _py3sss_la_LDFLAGS = $(pysss_la_LDFLAGS)
 4850 
 4851 
 4852 pyhbac_la_SOURCES = \
 4853     src/python/pyhbac.c \
 4854     src/util/sss_python.c
 4855 pyhbac_la_LDFLAGS = \
 4856     -avoid-version \
 4857     -module
 4858 
 4859 _py2hbac_la_SOURCES = $(pyhbac_la_SOURCES)
 4860 _py2hbac_la_CFLAGS = \
 4861     $(AM_CFLAGS)  \
 4862     $(PYTHON2_CFLAGS)
 4863 _py2hbac_la_LIBADD = \
 4864     $(PYTHON2_LIBS) \
 4865     libipa_hbac.la
 4866 _py2hbac_la_LDFLAGS = $(pyhbac_la_LDFLAGS)
 4867 
 4868 _py3hbac_la_SOURCES = $(pyhbac_la_SOURCES)
 4869 _py3hbac_la_CFLAGS = \
 4870     $(AM_CFLAGS)  \
 4871     $(PYTHON3_CFLAGS)
 4872 _py3hbac_la_LIBADD = \
 4873     $(PYTHON3_LIBS) \
 4874     libipa_hbac.la
 4875 _py3hbac_la_LDFLAGS = $(pyhbac_la_LDFLAGS)
 4876 
 4877 
 4878 pysss_murmur_la_SOURCES = \
 4879     src/python/pysss_murmur.c \
 4880     src/util/murmurhash3.c
 4881 pysss_murmur_la_LDFLAGS = \
 4882     -avoid-version \
 4883     -module
 4884 
 4885 _py2sss_murmur_la_SOURCES = $(pysss_murmur_la_SOURCES)
 4886 _py2sss_murmur_la_CFLAGS = \
 4887     $(AM_CFLAGS)  \
 4888     $(PYTHON2_CFLAGS)
 4889 _py2sss_murmur_la_LIBADD = \
 4890     $(PYTHON2_LIBS)
 4891 _py2sss_murmur_la_LDFLAGS = $(pysss_murmur_la_LDFLAGS)
 4892 
 4893 _py3sss_murmur_la_SOURCES = $(pysss_murmur_la_SOURCES)
 4894 _py3sss_murmur_la_CFLAGS = \
 4895     $(AM_CFLAGS)  \
 4896     $(PYTHON3_CFLAGS)
 4897 _py3sss_murmur_la_LIBADD = \
 4898     $(PYTHON3_LIBS)
 4899 _py3sss_murmur_la_LDFLAGS = $(pysss_murmur_la_LDFLAGS)
 4900 
 4901 
 4902 pysss_nss_idmap_la_SOURCES = \
 4903     src/python/pysss_nss_idmap.c
 4904 pysss_nss_idmap_la_LDFLAGS = \
 4905     -avoid-version \
 4906     -module
 4907 
 4908 _py2sss_nss_idmap_la_SOURCES = $(pysss_nss_idmap_la_SOURCES)
 4909 _py2sss_nss_idmap_la_CFLAGS = \
 4910     $(AM_CFLAGS)  \
 4911     $(PYTHON2_CFLAGS)
 4912 _py2sss_nss_idmap_la_LIBADD = \
 4913     $(PYTHON2_LIBS) \
 4914     libsss_nss_idmap.la
 4915 _py2sss_nss_idmap_la_LDFLAGS = $(pysss_nss_idmap_la_LDFLAGS)
 4916 
 4917 _py3sss_nss_idmap_la_SOURCES = $(pysss_nss_idmap_la_SOURCES)
 4918 _py3sss_nss_idmap_la_CFLAGS = \
 4919     $(AM_CFLAGS)  \
 4920     $(PYTHON3_CFLAGS)
 4921 _py3sss_nss_idmap_la_LIBADD = \
 4922     $(PYTHON3_LIBS) \
 4923     libsss_nss_idmap.la
 4924 _py3sss_nss_idmap_la_LDFLAGS = $(pysss_nss_idmap_la_LDFLAGS)
 4925 # end of python[23] bindings
 4926 
 4927 if BUILD_CIFS_IDMAP_PLUGIN
 4928 cifs_idmap_sss_la_SOURCES = \
 4929     src/lib/cifs_idmap_sss/cifs_idmap_sss.c
 4930 cifs_idmap_sss_la_LIBADD = \
 4931     libsss_idmap.la \
 4932     libsss_nss_idmap.la
 4933 cifs_idmap_sss_la_CFLAGS = \
 4934     $(AM_CFLAGS)
 4935 cifs_idmap_sss_la_LDFLAGS = \
 4936     -avoid-version \
 4937     -module
 4938 endif
 4939 
 4940 if BUILD_SAMBA
 4941 winbind_idmap_sss_la_SOURCES = \
 4942     src/lib/winbind_idmap_sss/winbind_idmap_sss.c \
 4943     src/util/util_sss_idmap.c \
 4944     $(NULL)
 4945 winbind_idmap_sss_la_LIBADD = \
 4946     libsss_idmap.la \
 4947     libsss_nss_idmap.la \
 4948     $(TALLOC_LIBS) \
 4949     $(NULL)
 4950 winbind_idmap_sss_la_CFLAGS = \
 4951     $(AM_CFLAGS) \
 4952     $(NDR_KRB5PAC_CFLAGS) \
 4953     $(NULL)
 4954 winbind_idmap_sss_la_LDFLAGS = \
 4955     -avoid-version \
 4956     -module \
 4957     $(NULL)
 4958 
 4959 libdlopen_test_winbind_idmap_la_SOURCES = \
 4960     src/lib/winbind_idmap_sss/libdlopen-test-winbind-idmap.c \
 4961     $(NULL)
 4962 libdlopen_test_winbind_idmap_la_CFLAGS = \
 4963     $(AM_CFLAGS) \
 4964     $(NDR_KRB5PAC_CFLAGS) \
 4965     $(NULL)
 4966 libdlopen_test_winbind_idmap_la_LDFLAGS = \
 4967     -shared \
 4968     -avoid-version \
 4969     -rpath $(abs_top_builddir) \
 4970     -export-dynamic
 4971     $(NULL)
 4972 endif
 4973 
 4974 ################
 4975 # TRANSLATIONS #
 4976 ################
 4977 update-po:
 4978 if HAVE_MANPAGES
 4979 	$(MAKE) -C src/man update-po
 4980 endif
 4981 	$(MAKE) -C po update-po
 4982 
 4983 #######################
 4984 # Installation Extras #
 4985 #######################
 4986 
 4987 init_SCRIPTS =
 4988 systemdunit_DATA =
 4989 systemdconf_DATA =
 4990 if HAVE_SYSTEMD_UNIT
 4991     systemdunit_DATA += \
 4992         src/sysv/systemd/sssd.service \
 4993         src/sysv/systemd/sssd-nss.socket \
 4994         src/sysv/systemd/sssd-nss.service \
 4995         src/sysv/systemd/sssd-pam.socket \
 4996         src/sysv/systemd/sssd-pam-priv.socket \
 4997         src/sysv/systemd/sssd-pam.service \
 4998         $(NULL)
 4999 if BUILD_AUTOFS
 5000     systemdunit_DATA += \
 5001         src/sysv/systemd/sssd-autofs.socket \
 5002         src/sysv/systemd/sssd-autofs.service \
 5003         $(NULL)
 5004 endif
 5005 if BUILD_IFP
 5006     systemdunit_DATA += \
 5007         src/sysv/systemd/sssd-ifp.service \
 5008         $(NULL)
 5009 endif
 5010 if BUILD_PAC_RESPONDER
 5011     systemdunit_DATA += \
 5012         src/sysv/systemd/sssd-pac.socket \
 5013         src/sysv/systemd/sssd-pac.service \
 5014         $(NULL)
 5015 endif
 5016 if BUILD_SECRETS
 5017     systemdunit_DATA += \
 5018         src/sysv/systemd/sssd-secrets.socket \
 5019         src/sysv/systemd/sssd-secrets.service \
 5020         $(NULL)
 5021 endif
 5022 if BUILD_SSH
 5023     systemdunit_DATA += \
 5024         src/sysv/systemd/sssd-ssh.socket \
 5025         src/sysv/systemd/sssd-ssh.service \
 5026         $(NULL)
 5027 endif
 5028 if BUILD_SUDO
 5029     systemdunit_DATA += \
 5030         src/sysv/systemd/sssd-sudo.socket \
 5031         src/sysv/systemd/sssd-sudo.service \
 5032         $(NULL)
 5033 endif
 5034 if BUILD_KCM
 5035     systemdunit_DATA += \
 5036         src/sysv/systemd/sssd-kcm.socket \
 5037         src/sysv/systemd/sssd-kcm.service \
 5038         $(NULL)
 5039 endif
 5040 else
 5041 if HAVE_SUSE
 5042     init_SCRIPTS += \
 5043         src/sysv/SUSE/sssd
 5044 else
 5045 if HAVE_GENTOO
 5046     init_SCRIPTS += \
 5047         src/sysv/gentoo/sssd
 5048 else
 5049     init_SCRIPTS += \
 5050         src/sysv/sssd
 5051 endif
 5052 endif
 5053 endif
 5054 
 5055 
 5056 dist_sssddata_DATA = \
 5057     src/config/etc/sssd.api.conf \
 5058     src/config/cfg_rules.ini \
 5059     $(NULL)
 5060 dist_sssdapiplugin_DATA = \
 5061     src/config/etc/sssd.api.d/sssd-ipa.conf \
 5062     src/config/etc/sssd.api.d/sssd-ad.conf \
 5063     src/config/etc/sssd.api.d/sssd-krb5.conf \
 5064     src/config/etc/sssd.api.d/sssd-ldap.conf \
 5065     src/config/etc/sssd.api.d/sssd-local.conf \
 5066     src/config/etc/sssd.api.d/sssd-proxy.conf \
 5067     src/config/etc/sssd.api.d/sssd-simple.conf \
 5068     src/config/etc/sssd.api.d/sssd-files.conf
 5069 
 5070 edit_cmd = $(SED) \
 5071         -e 's|@sbindir[@]|$(sbindir)|g' \
 5072         -e 's|@environment_file[@]|$(environment_file)|g' \
 5073         -e 's|@localstatedir[@]|$(localstatedir)|g' \
 5074         -e 's|@runstatedir[@]|$(runstatedir)|g' \
 5075         -e 's|@pidpath[@]|$(pidpath)|g' \
 5076         -e 's|@logpath[@]|$(logpath)|g' \
 5077         -e 's|@libexecdir[@]|$(libexecdir)|g' \
 5078         -e 's|@pipepath[@]|$(pipepath)|g' \
 5079         -e 's|@prefix[@]|$(prefix)|g' \
 5080         -e 's|@SSSD_USER[@]|$(SSSD_USER)|g'
 5081 
 5082 replace_script = \
 5083     @rm -f $@ $@.tmp; \
 5084     srcdir=''; \
 5085         test -f ./$@.in || srcdir=$(srcdir)/; \
 5086         $(edit_cmd) $${srcdir}$@.in >$@.tmp; \
 5087     mv $@.tmp $@
 5088 
 5089 EXTRA_DIST += \
 5090     src/sysv/systemd/sssd.service.in \
 5091     src/sysv/systemd/sssd-nss.socket.in \
 5092     src/sysv/systemd/sssd-nss.service.in \
 5093     src/sysv/systemd/sssd-pam.socket.in \
 5094     src/sysv/systemd/sssd-pam-priv.socket.in \
 5095     src/sysv/systemd/sssd-pam.service.in \
 5096     src/sysv/systemd/sssd-secrets.socket.in \
 5097     src/sysv/systemd/sssd-secrets.service.in \
 5098     src/sysv/systemd/sssd-autofs.socket.in \
 5099     src/sysv/systemd/sssd-autofs.service.in \
 5100     src/sysv/systemd/sssd-ifp.service.in \
 5101     src/sysv/systemd/sssd-pac.socket.in \
 5102     src/sysv/systemd/sssd-pac.service.in \
 5103     src/sysv/systemd/sssd-ssh.socket.in \
 5104     src/sysv/systemd/sssd-ssh.service.in \
 5105     src/sysv/systemd/sssd-sudo.socket.in \
 5106     src/sysv/systemd/sssd-sudo.service.in \
 5107     src/sysv/systemd/sssd-kcm.socket.in \
 5108     src/sysv/systemd/sssd-kcm.service.in \
 5109     $(NULL)
 5110 
 5111 src/sysv/systemd/sssd.service: src/sysv/systemd/sssd.service.in Makefile
 5112 	@$(MKDIR_P) src/sysv/systemd/
 5113 	$(replace_script)
 5114 
 5115 src/sysv/systemd/sssd-nss.socket: src/sysv/systemd/sssd-nss.socket.in Makefile
 5116 	@$(MKDIR_P) src/sysv/systemd/
 5117 	$(replace_script)
 5118 
 5119 src/sysv/systemd/sssd-nss.service: src/sysv/systemd/sssd-nss.service.in Makefile
 5120 	@$(MKDIR_P) src/sysv/systemd/
 5121 	$(replace_script)
 5122 
 5123 src/sysv/systemd/sssd-pam.socket: src/sysv/systemd/sssd-pam.socket.in Makefile
 5124 	@$(MKDIR_P) src/sysv/systemd/
 5125 	$(replace_script)
 5126 
 5127 src/sysv/systemd/sssd-pam-priv.socket: src/sysv/systemd/sssd-pam-priv.socket.in Makefile
 5128 	@$(MKDIR_P) src/sysv/systemd/
 5129 	$(replace_script)
 5130 
 5131 src/sysv/systemd/sssd-pam.service: src/sysv/systemd/sssd-pam.service.in Makefile
 5132 	@$(MKDIR_P) src/sysv/systemd/
 5133 	$(replace_script)
 5134 
 5135 if BUILD_SECRETS
 5136 src/sysv/systemd/sssd-secrets.socket: src/sysv/systemd/sssd-secrets.socket.in Makefile
 5137 	@$(MKDIR_P) src/sysv/systemd/
 5138 	$(replace_script)
 5139 
 5140 src/sysv/systemd/sssd-secrets.service: src/sysv/systemd/sssd-secrets.service.in Makefile
 5141 	@$(MKDIR_P) src/sysv/systemd/
 5142 	$(replace_script)
 5143 endif
 5144 
 5145 if BUILD_AUTOFS
 5146 src/sysv/systemd/sssd-autofs.socket: src/sysv/systemd/sssd-autofs.socket.in Makefile
 5147 	@$(MKDIR_P) src/sysv/systemd/
 5148 	$(replace_script)
 5149 
 5150 src/sysv/systemd/sssd-autofs.service: src/sysv/systemd/sssd-autofs.service.in Makefile
 5151 	@$(MKDIR_P) src/sysv/systemd/
 5152 	$(replace_script)
 5153 endif
 5154 
 5155 if BUILD_IFP
 5156 src/sysv/systemd/sssd-ifp.service: src/sysv/systemd/sssd-ifp.service.in Makefile
 5157 	@$(MKDIR_P) src/sysv/systemd/
 5158 	$(ifp_replace_script)
 5159 endif
 5160 
 5161 if BUILD_PAC_RESPONDER
 5162 src/sysv/systemd/sssd-pac.socket: src/sysv/systemd/sssd-pac.socket.in Makefile
 5163 	@$(MKDIR_P) src/sysv/systemd/
 5164 	$(replace_script)
 5165 
 5166 src/sysv/systemd/sssd-pac.service: src/sysv/systemd/sssd-pac.service.in Makefile
 5167 	@$(MKDIR_P) src/sysv/systemd/
 5168 	$(replace_script)
 5169 endif
 5170 
 5171 if BUILD_SSH
 5172 src/sysv/systemd/sssd-ssh.socket: src/sysv/systemd/sssd-ssh.socket.in Makefile
 5173 	@$(MKDIR_P) src/sysv/systemd/
 5174 	$(replace_script)
 5175 
 5176 src/sysv/systemd/sssd-ssh.service: src/sysv/systemd/sssd-ssh.service.in Makefile
 5177 	@$(MKDIR_P) src/sysv/systemd/
 5178 	$(replace_script)
 5179 endif
 5180 
 5181 if BUILD_SUDO
 5182 src/sysv/systemd/sssd-sudo.socket: src/sysv/systemd/sssd-sudo.socket.in Makefile
 5183 	@$(MKDIR_P) src/sysv/systemd/
 5184 	$(replace_script)
 5185 
 5186 src/sysv/systemd/sssd-sudo.service: src/sysv/systemd/sssd-sudo.service.in Makefile
 5187 	@$(MKDIR_P) src/sysv/systemd/
 5188 	$(replace_script)
 5189 endif
 5190 
 5191 if BUILD_KCM
 5192 if BUILD_SECRETS
 5193 kcm_socket_requires = Requires=sssd-secrets.socket
 5194 else
 5195 kcm_socket_requires =
 5196 endif
 5197 
 5198 kcm_edit_cmd = $(edit_cmd) \
 5199         -e 's|@kcm_socket_requires[@]|$(kcm_socket_requires)|g'
 5200 
 5201 kcm_replace_script = \
 5202     @rm -f $@ $@.tmp; \
 5203     srcdir=''; \
 5204         test -f ./$@.in || srcdir=$(srcdir)/; \
 5205         $(kcm_edit_cmd) $${srcdir}$@.in >$@.tmp; \
 5206     mv $@.tmp $@
 5207 
 5208 src/sysv/systemd/sssd-kcm.socket: src/sysv/systemd/sssd-kcm.socket.in Makefile
 5209 	@$(MKDIR_P) src/sysv/systemd/
 5210 	$(kcm_replace_script)
 5211 
 5212 src/sysv/systemd/sssd-kcm.service: src/sysv/systemd/sssd-kcm.service.in Makefile
 5213 	@$(MKDIR_P) src/sysv/systemd/
 5214 	$(replace_script)
 5215 endif
 5216 
 5217 EXTRA_DIST += \
 5218     src/tools/wrappers/sss_debuglevel.in \
 5219     $(NULL)
 5220 
 5221 src/tools/wrappers/sss_debuglevel: src/tools/wrappers/sss_debuglevel.in Makefile
 5222 	@$(MKDIR_P) src/tools/wrappers/
 5223 	$(replace_script)
 5224 
 5225 SSSD_USER_DIRS = \
 5226     $(DESTDIR)$(dbpath) \
 5227     $(DESTDIR)$(keytabdir) \
 5228     $(DESTDIR)$(mcpath) \
 5229     $(DESTDIR)$(pipepath) \
 5230     $(DESTDIR)$(pubconfpath) \
 5231     $(DESTDIR)$(pubconfpath)/krb5.include.d \
 5232     $(DESTDIR)$(gpocachepath) \
 5233     $(DESTDIR)$(sssdconfdir) \
 5234     $(DESTDIR)$(sssdconfdir)/conf.d \
 5235     $(DESTDIR)$(sssdconfdir)/pki \
 5236     $(DESTDIR)$(sssddefaultconfdir) \
 5237     $(DESTDIR)$(logpath) \
 5238     $(DESTDIR)$(deskprofilepath) \
 5239     $(NULL)
 5240 
 5241 installsssddirs::
 5242 	$(MKDIR_P) \
 5243     $(DESTDIR)$(includedir) \
 5244     $(DESTDIR)$(libdir) \
 5245     $(DESTDIR)$(bindir) \
 5246     $(DESTDIR)$(sbindir) \
 5247     $(DESTDIR)$(mandir) \
 5248     $(DESTDIR)$(pidpath) \
 5249     $(DESTDIR)$(pluginpath) \
 5250     $(DESTDIR)$(libdir)/ldb \
 5251     $(DESTDIR)$(dbuspolicydir) \
 5252     $(DESTDIR)$(dbusservicedir) \
 5253     $(DESTDIR)$(sssdlibdir) \
 5254     $(DESTDIR)$(pkglibdir) \
 5255     $(DESTDIR)$(sssddatadir) \
 5256     $(DESTDIR)$(sudolibdir) \
 5257     $(DESTDIR)$(autofslibdir) \
 5258     $(DESTDIR)$(pipepath)/private \
 5259     $(SSSD_USER_DIRS) \
 5260     $(NULL);
 5261 if SSSD_USER
 5262 	-chown $(SSSD_USER):$(SSSD_USER) $(SSSD_USER_DIRS)
 5263 	-chown $(SSSD_USER) $(DESTDIR)$(pipepath)/private
 5264 endif
 5265 	$(INSTALL) -d -m 0700 $(DESTDIR)$(dbpath) $(DESTDIR)$(logpath) \
 5266 	    $(DESTDIR)$(keytabdir) \
 5267 	    $(NULL)
 5268 	$(INSTALL) -d -m 0750 $(DESTDIR)$(pipepath)/private
 5269 	$(INSTALL) -d -m 0755 $(DESTDIR)$(mcpath) $(DESTDIR)$(pipepath) \
 5270             $(DESTDIR)$(pubconfpath) \
 5271             $(DESTDIR)$(pubconfpath)/krb5.include.d $(DESTDIR)$(gpocachepath)
 5272 	$(INSTALL) -d -m 0711 $(DESTDIR)$(sssdconfdir) \
 5273                           $(DESTDIR)$(sssdconfdir)/conf.d \
 5274                           $(DESTDIR)$(sssdconfdir)/pki
 5275 if BUILD_WITH_LIBSECRET
 5276 	$(MKDIR_P) $(DESTDIR)$(secdbpath)
 5277 endif
 5278 
 5279 if HAVE_DOXYGEN
 5280 docs:
 5281 	$(DOXYGEN) src/doxy.config
 5282 	$(DOXYGEN) src/lib/ipa_hbac/ipa_hbac.doxy
 5283 	$(DOXYGEN) src/lib/idmap/sss_idmap.doxy
 5284 	$(DOXYGEN) src/sss_client/idmap/sss_nss_idmap.doxy
 5285 	$(DOXYGEN) src/lib/certmap/sss_certmap.doxy
 5286 if BUILD_IFP
 5287 	$(DOXYGEN) src/lib/sifp/sss_simpleifp.doxy
 5288 endif
 5289 else !HAVE_DOXYGEN
 5290 docs:
 5291 	@echo "Doxygen not installed, cannot generate documentation"
 5292 	@exit 1
 5293 endif !HAVE_DOXYGEN
 5294 
 5295 if BUILD_PYTHON_BINDINGS
 5296 $(abs_builddir)/src/config/SSSDConfig/ipachangeconf.py:
 5297 	-cp $(srcdir)/src/config/SSSDConfig/ipachangeconf.py $(builddir)/src/config/SSSDConfig/
 5298 
 5299 SSSDCONFIG_MODULES = \
 5300     $(abs_builddir)/src/config/SSSDConfig/ipachangeconf.py
 5301 else
 5302 SSSSCONFIG_MODULES =
 5303 endif
 5304 
 5305 all-local: ldb_mod_test_dir $(SSSDCONFIG_MODULES)
 5306 if BUILD_PYTHON2_BINDINGS
 5307 	cd $(builddir)/src/config; \
 5308 	$(PYTHON2) setup.py build --build-base $(abs_builddir)/src/config
 5309 endif
 5310 if BUILD_PYTHON3_BINDINGS
 5311 	cd $(builddir)/src/config; \
 5312 	$(PYTHON3) setup.py build --build-base $(abs_builddir)/src/config
 5313 endif
 5314 
 5315 install-exec-hook: installsssddirs
 5316 if BUILD_PYTHON2_BINDINGS
 5317 	if [ "$(DESTDIR)" = "" ]; then \
 5318 		cd $(builddir)/src/config; \
 5319 		$(PYTHON2) setup.py build --build-base $(abs_builddir)/src/config \
 5320 			install $(DISTSETUPOPTS) --prefix=$(PYTHON2_PREFIX) \
 5321 			--record=$(abs_builddir)/src/config/.files2; \
 5322 	else \
 5323 		cd $(builddir)/src/config; \
 5324 		$(PYTHON2) setup.py build --build-base $(abs_builddir)/src/config \
 5325 			install $(DISTSETUPOPTS) --prefix=$(PYTHON2_PREFIX) \
 5326 			--record=$(abs_builddir)/src/config/.files2 --root=$(DESTDIR); \
 5327 	fi
 5328 	cd $(DESTDIR)$(py2execdir) && \
 5329 		mv -f _py2sss.so pysss.so ; \
 5330 		mv -f _py2hbac.so pyhbac.so ; \
 5331 		mv -f _py2sss_murmur.so pysss_murmur.so ; \
 5332 		mv -f _py2sss_nss_idmap.so pysss_nss_idmap.so
 5333 endif
 5334 if BUILD_PYTHON3_BINDINGS
 5335 	if [ "$(DESTDIR)" = "" ]; then \
 5336 		cd $(builddir)/src/config; \
 5337 		$(PYTHON3) setup.py build --build-base $(abs_builddir)/src/config \
 5338 			install $(DISTSETUPOPTS) --prefix=$(PYTHON3_PREFIX) \
 5339 			--record=$(abs_builddir)/src/config/.files3; \
 5340 	else \
 5341 		cd $(builddir)/src/config; \
 5342 		$(PYTHON3) setup.py build --build-base $(abs_builddir)/src/config \
 5343 			install $(DISTSETUPOPTS) --prefix=$(PYTHON3_PREFIX) \
 5344 			--record=$(abs_builddir)/src/config/.files3 --root=$(DESTDIR); \
 5345 	fi
 5346 	cd $(DESTDIR)$(py3execdir) && \
 5347 		mv -f _py3sss.so pysss.so ; \
 5348 		mv -f _py3hbac.so pyhbac.so ; \
 5349 		mv -f _py3sss_murmur.so pysss_murmur.so ; \
 5350 		mv -f _py3sss_nss_idmap.so pysss_nss_idmap.so
 5351 endif
 5352 	for doc in $(SSSD_DOCS); do \
 5353 		$(MKDIR_P) $$doc $(DESTDIR)/$(docdir); \
 5354 		cp -a $$doc $(DESTDIR)/$(docdir)/; \
 5355 	done;
 5356 
 5357 if HAVE_SYSTEMD_UNIT
 5358 	$(MKDIR_P) $(DESTDIR)$(systemdunitdir)
 5359 	$(MKDIR_P) $(DESTDIR)$(systemdconfdir)
 5360 else
 5361 	$(MKDIR_P) $(DESTDIR)$(initdir)
 5362 endif
 5363 
 5364 if SSSD_USER
 5365 	-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/ldap_child
 5366 	chmod 4750 $(DESTDIR)$(sssdlibexecdir)/ldap_child
 5367 	-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/krb5_child
 5368 	chmod 4750 $(DESTDIR)$(sssdlibexecdir)/krb5_child
 5369 	-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/proxy_child
 5370 	chmod 4750 $(DESTDIR)$(sssdlibexecdir)/proxy_child
 5371 if BUILD_SEMANAGE
 5372 	-chgrp $(SSSD_USER) $(DESTDIR)$(sssdlibexecdir)/selinux_child
 5373 	chmod 4750 $(DESTDIR)$(sssdlibexecdir)/selinux_child
 5374 endif
 5375 endif
 5376 
 5377 install-data-hook:
 5378 	rm $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2 \
 5379        $(DESTDIR)/$(nsslibdir)/libnss_sss.so
 5380 	mv $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2.0.0 $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2
 5381 	if [ ! $(krb5rcachedir) = "__LIBKRB5_DEFAULTS__" ]; then \
 5382         $(MKDIR_P) $(DESTDIR)/$(krb5rcachedir) ; \
 5383 	fi
 5384 if BUILD_SAMBA
 5385 	mv $(DESTDIR)/$(winbindplugindir)/winbind_idmap_sss.so $(DESTDIR)/$(winbindplugindir)/sss.so
 5386 endif
 5387 if BUILD_KCM
 5388 	$(MKDIR_P) $(DESTDIR)/$(sssdkcmdatadir)
 5389 endif
 5390 
 5391 uninstall-hook:
 5392 	if [ -f $(abs_builddir)/src/config/.files2 ]; then \
 5393 	    cat $(abs_builddir)/src/config/.files2 | xargs -iq rm -f $(DESTDIR)/q; \
 5394 	    rm $(abs_builddir)/src/config/.files2 ; \
 5395 	fi
 5396 	if [ -f $(abs_builddir)/src/config/.files3 ]; then \
 5397 	    cat $(abs_builddir)/src/config/.files3 | xargs -iq rm -f $(DESTDIR)/q; \
 5398 	    rm $(abs_builddir)/src/config/.files3 ; \
 5399 	fi
 5400 	for doc in $(SSSD_DOCS); do \
 5401 		rm -Rf $(DESTDIR)/$(docdir)/$$doc; \
 5402 	done;
 5403 if BUILD_PYTHON2_BINDINGS
 5404 	cd $(DESTDIR)$(py2execdir) && \
 5405 		rm -f pysss.so pyhbac.so pysss_murmur.so pysss_nss_idmap.so
 5406 endif
 5407 if BUILD_PYTHON3_BINDINGS
 5408 	cd $(DESTDIR)$(py3execdir) && \
 5409 		rm -f pysss.so pyhbac.so pysss_murmur.so pysss_nss_idmap.so
 5410 endif
 5411 if BUILD_SAMBA
 5412 	rm $(DESTDIR)/$(winbindplugindir)/sss.so
 5413 endif
 5414 
 5415 clean-local:
 5416 if BUILD_PYTHON2_BINDINGS
 5417 	if [ ! $(srcdir)/src/config/SSSDConfig/ipachangeconf.py -ef $(builddir)/src/config/SSSDConfig/ipachangeconf.py ]; then \
 5418 		rm -f $(builddir)/src/config/SSSDConfig/ipachangeconf.py ; \
 5419 	fi
 5420 
 5421 	rm -f $(builddir)/src/config/SSSDConfig/*.pyc
 5422 
 5423 	cd $(builddir)/src/config; $(PYTHON2) setup.py build --build-base $(abs_builddir)/src/config clean --all
 5424 endif
 5425 if BUILD_PYTHON3_BINDINGS
 5426 	if [ ! $(srcdir)/src/config/SSSDConfig/ipachangeconf.py -ef $(builddir)/src/config/SSSDConfig/ipachangeconf.py ]; then \
 5427 		rm -f $(builddir)/src/config/SSSDConfig/ipachangeconf.py ; \
 5428 	fi
 5429 
 5430 	rm -f $(builddir)/src/config/SSSDConfig/__pycache__/*.pyc
 5431 
 5432 	cd $(builddir)/src/config; $(PYTHON3) setup.py build --build-base $(abs_builddir)/src/config clean --all
 5433 endif
 5434 	for doc in $(SSSD_DOCS); do \
 5435 		rm -Rf $$doc; \
 5436 	done;
 5437 	rm -Rf ldb_mod_test_dir
 5438 	rm -f $(builddir)/src/responder/ifp/org.freedesktop.sssd.infopipe.service
 5439 	rm -f $(builddir)/src/sysv/systemd/sssd.service
 5440 	rm -f $(builddir)/src/sysv/systemd/sssd-autofs.socket
 5441 	rm -f $(builddir)/src/sysv/systemd/sssd-autofs.service
 5442 	rm -f $(builddir)/src/sysv/systemd/sssd-ifp.service
 5443 	rm -f $(builddir)/src/sysv/systemd/sssd-nss.socket
 5444 	rm -f $(builddir)/src/sysv/systemd/sssd-nss.service
 5445 	rm -f $(builddir)/src/sysv/systemd/sssd-pac.socket
 5446 	rm -f $(builddir)/src/sysv/systemd/sssd-pac.service
 5447 	rm -f $(builddir)/src/sysv/systemd/sssd-pam.socket
 5448 	rm -f $(builddir)/src/sysv/systemd/sssd-pam-priv.socket
 5449 	rm -f $(builddir)/src/sysv/systemd/sssd-pam.service
 5450 	rm -f $(builddir)/src/sysv/systemd/sssd-ssh.socket
 5451 	rm -f $(builddir)/src/sysv/systemd/sssd-ssh.service
 5452 	rm -f $(builddir)/src/sysv/systemd/sssd-sudo.socket
 5453 	rm -f $(builddir)/src/sysv/systemd/sssd-sudo.service
 5454 	rm -f $(builddir)/src/sysv/systemd/sssd-secrets.socket
 5455 	rm -f $(builddir)/src/sysv/systemd/sssd-secrets.service
 5456 	rm -f $(builddir)/src/sysv/systemd/sssd-kcm.socket
 5457 	rm -f $(builddir)/src/sysv/systemd/sssd-kcm.service
 5458 	rm -f $(builddir)/src/tools/wrappers/sss_debuglevel
 5459 
 5460 CLEANFILES += *.X */*.X */*/*.X
 5461 
 5462 test_CA: test_CA.stamp
 5463 
 5464 test_CA.stamp: $(srcdir)/src/tests/test_CA/* $(srcdir)/src/tests/test_ECC_CA/*
 5465 	$(MAKE) -C src/tests/test_CA ca_all
 5466 	$(MAKE) -C src/tests/test_ECC_CA ca_all
 5467 	touch $@
 5468 
 5469 if BUILD_TEST_CA
 5470 BUILT_SOURCES += test_CA
 5471 endif
 5472 CLEANFILES += test_CA.stamp
 5473 
 5474 tests: all $(check_PROGRAMS)
 5475 	(cd src/tests/cwrap && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
 5476 
 5477 
 5478 # RPM-related tasks
 5479 
 5480 RPMBUILD ?= $(PWD)/rpmbuild
 5481 
 5482 dist_noinst_DATA += \
 5483     m4 \
 5484     contrib/sssd.spec.in \
 5485     BUILD.txt \
 5486     COPYING \
 5487     src/tests/multihost/basic/conftest.py \
 5488     src/tests/multihost/basic/mhc.yaml \
 5489     src/tests/multihost/basic/README.md \
 5490     src/tests/multihost/basic/test_basic.py \
 5491     src/tests/multihost/basic/test_config.py \
 5492     src/tests/multihost/basic/test_files.py \
 5493     src/tests/multihost/basic/test_ifp.py \
 5494     src/tests/multihost/basic/test_kcm.py \
 5495     src/tests/multihost/basic/test_sssctl_config_check.py \
 5496     src/tests/multihost/basic/test_sudo.py \
 5497     src/tests/multihost/basic/utils_config.py \
 5498     $(NULL)
 5499 
 5500 rpmroot:
 5501 	$(MKDIR_P) $(RPMBUILD)/BUILD
 5502 	$(MKDIR_P) $(RPMBUILD)/RPMS
 5503 	$(MKDIR_P) $(RPMBUILD)/SOURCES
 5504 	$(MKDIR_P) $(RPMBUILD)/SPECS
 5505 	$(MKDIR_P) $(RPMBUILD)/SRPMS
 5506 
 5507 # pre-release related vars
 5508 
 5509 PR_VERSION_DATE := $(shell date +%Y%m%d.%H%M)
 5510 PR_VERSION_COMMIT_HASH := $(shell git log -1 --pretty=format:%h)
 5511 PR_VERSION_NUMBER = $(PR_VERSION_DATE).git$(PR_VERSION_COMMIT_HASH)
 5512 PR_VERSION_REGEX = m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.*\])
 5513 PR_VERSION_REPL = m4_define(\[PRERELEASE_VERSION_NUMBER\], \[.$(PR_VERSION_NUMBER)\])
 5514 
 5515 rpmbrprep: dist-gzip rpmroot
 5516 if GIT_CHECKOUT
 5517 # When we're building RPMs from a git checkout,
 5518 # we don't want to be bothered with translation
 5519 # updates
 5520 	git checkout $(srcdir)/po $(srcdir)/src/man/po
 5521 endif
 5522 	cp $(builddir)/contrib/sssd.spec $(RPMBUILD)/SPECS
 5523 	cp $(distdir).tar.gz $(RPMBUILD)/SOURCES
 5524 
 5525 rpms: rpmbrprep
 5526 	cd $(RPMBUILD); \
 5527 	rpmbuild --define "_topdir $(RPMBUILD)" -ba SPECS/sssd.spec
 5528 
 5529 if GIT_CHECKOUT
 5530 prerelease-rpms:
 5531 	cp $(srcdir)/version.m4 $(srcdir)/version.m4.orig
 5532 	sed -e "s/$(PR_VERSION_REGEX)/$(PR_VERSION_REPL)/" \
 5533 		< $(srcdir)/version.m4.orig > $(srcdir)/version.m4
 5534 	$(MAKE) rpms
 5535 	mv $(srcdir)/version.m4.orig $(srcdir)/version.m4
 5536 endif
 5537 
 5538 # make srpms will use the old digest algorithm to be compatible
 5539 # with RHEL5
 5540 srpm: rpmbrprep
 5541 	cd $(RPMBUILD); \
 5542 	rpmbuild --define "_topdir $(RPMBUILD)" \
 5543 	         -bs SPECS/sssd.spec
 5544 
 5545 if GIT_CHECKOUT
 5546 prerelease-srpm:
 5547 	cp $(srcdir)/version.m4 $(srcdir)/version.m4.orig
 5548 	sed -e "s/$(PR_VERSION_REGEX)/$(PR_VERSION_REPL)/" \
 5549 		< $(srcdir)/version.m4.orig > $(srcdir)/version.m4
 5550 	$(MAKE) srpm
 5551 	mv $(srcdir)/version.m4.orig $(srcdir)/version.m4
 5552 endif