mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Add new LDAP utility functions.
* dirmngr/Makefile.am (module_tests): New variable. (noinst_PROGRAMS): New primary. Set it to $(module_tests). (TESTS): New variable. Set it to $(module_tests). (t_common_src): New variable. (t_common_ldadd): Likewise. (t_ldap_parse_uri_SOURCES): New primary. (t_ldap_parse_uri_LDADD): Likewise. * dirmngr/ldap-parse-uri.c: New file. * dirmngr/ldap-parse-uri.h: Likewise. * dirmngr/t-ldap-parse-uri.c: Likewise. * dirmngr/t-support.h: Likewise. -- Signed-off-by: Neal H. Walfield <neal@g10code.de>
This commit is contained in:
parent
e23b3ba5ff
commit
1a75b7c39f
5 changed files with 580 additions and 0 deletions
|
@ -27,6 +27,9 @@ if USE_LDAPWRAPPER
|
|||
libexec_PROGRAMS = dirmngr_ldap
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = $(module_tests)
|
||||
TESTS = $(module_tests)
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
|
||||
|
||||
include $(top_srcdir)/am/cmacros.am
|
||||
|
@ -99,4 +102,14 @@ no-libgcrypt.c : $(top_srcdir)/tools/no-libgcrypt.c
|
|||
cat $(top_srcdir)/tools/no-libgcrypt.c > no-libgcrypt.c
|
||||
|
||||
|
||||
t_common_src = t-support.h
|
||||
# We need libcommontls, because we use the http functions.
|
||||
t_common_ldadd = $(libcommontls) $(libcommon) no-libgcrypt.o $(GPG_ERROR_LIBS)
|
||||
|
||||
module_tests = t-ldap-parse-uri
|
||||
t_ldap_parse_uri_SOURCES = \
|
||||
t-ldap-parse-uri.c ldap-parse-uri.c ldap-parse-uri.h \
|
||||
$(t_common_src)
|
||||
t_ldap_parse_uri_LDADD = $(ldaplibs) $(t_common_ldadd)
|
||||
|
||||
$(PROGRAMS) : $(libcommon) $(libcommonpth) $(libcommontls) $(libcommontlsnpth)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue