"Fossies" - the Fresh Open Source Software Archive

Member "sssd-2.4.2/Makefile.am" (19 Feb 2021, 151680 Bytes) of package /linux/misc/sssd-2.4.2.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.4.1_vs_2.4.2.

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