$(top_builddir)/src/lib-imap/libimap.la \
$(top_builddir)/src/lib-mail/libmail.la \
$(top_builddir)/src/lib-sasl/libsasl.la \
+ $(top_builddir)/src/lib-otp/libotp.la \
+ $(top_builddir)/src/lib-auth/libauth.la \
$(top_builddir)/src/lib-auth-client/libauth-client.la \
$(top_builddir)/src/lib-charset/libcharset.la \
$(top_builddir)/src/lib-ssl-iostream/libssl_iostream.la \
lib-test \
lib \
lib-settings \
+ lib-otp \
lib-auth \
lib-auth-client \
lib-dns \
lib-index \
lib-storage \
lib-sql \
- lib-otp \
lib-lda \
lib-dict-backend \
anvil \
-noinst_LTLIBRARIES = libpassword.la libauth.la
+noinst_LTLIBRARIES = libauth.la
auth_moduledir = $(moduledir)/auth
# automake seems to force making this unconditional..
auth_LDFLAGS = -export-dynamic
-libpassword_la_SOURCES = \
- crypt-blowfish.c \
- mycrypt.c \
- password-scheme.c \
- password-scheme-crypt.c \
- password-scheme-md5crypt.c \
- password-scheme-scram.c \
- password-scheme-otp.c \
- password-scheme-pbkdf2.c \
- password-scheme-sodium.c
-libpassword_la_CFLAGS = $(AM_CPPFLAGS) $(LIBSODIUM_CFLAGS)
-
auth_libs = \
libauth.la \
- libpassword.la \
- ../lib-auth/libauth.la \
../lib-otp/libotp.la \
$(AUTH_LUA_LIBS) \
$(LIBDOVECOT_SQL)
db-passwd-file.h \
db-oauth2.h \
mech.h \
- mycrypt.h \
passdb.h \
passdb-blocking.h \
passdb-cache.h \
passdb-template.h \
- password-scheme.h \
userdb.h \
userdb-blocking.h \
userdb-template.h
pkginc_lib_HEADERS = $(headers)
test_programs = \
- test-libpassword \
test-auth-cache \
test-auth \
test-mech
noinst_PROGRAMS = $(test_programs)
-noinst_HEADERS = test-auth.h crypt-blowfish.h db-lua.h
+noinst_HEADERS = test-auth.h db-lua.h
test_libs = \
../lib-dovecot/libdovecot.la
-test_libpassword_SOURCES = test-libpassword.c
-test_libpassword_LDADD = \
- libpassword.la \
- ../lib-auth/libauth.la \
- ../lib-otp/libotp.la \
- $(CRYPT_LIBS) \
- $(LIBDOVECOT_SQL) \
- $(LIBSODIUM_LIBS) \
- $(test_libs) \
- $(BINARY_LDFLAGS)
-
-test_libpassword_DEPENDENCIES = libpassword.la
-test_libpassword_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS)
-
test_auth_cache_SOURCES = auth-cache.c test-auth-cache.c
test_auth_cache_LDADD = $(test_libs)
test_auth_cache_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs)
-I$(top_srcdir)/src/lib-imap-storage \
-I$(top_srcdir)/src/lib-http \
-I$(top_srcdir)/src/lib-dcrypt \
- -I$(top_srcdir)/src/auth \
-I$(top_srcdir)/src/stats \
-DMODULEDIR=\""$(moduledir)"\" \
-DAUTH_MODULE_DIR=\""$(moduledir)/auth"\" \
$(BINARY_CFLAGS)
cmd_pw_libs = \
- ../auth/libpassword.la \
../lib-auth/libauth.la \
../lib-otp/libotp.la
-noinst_LTLIBRARIES = libauth-common.la
+noinst_LTLIBRARIES = libauth.la
AM_CPPFLAGS = \
+ $(LIBSODIUM_CFLAGS) \
-I$(top_srcdir)/src/lib \
- -I$(top_srcdir)/src/lib-test
+ -I$(top_srcdir)/src/lib-test \
+ -I$(top_srcdir)/src/lib-otp
-libauth_common_la_SOURCES = \
+libauth_la_SOURCES = \
+ crypt-blowfish.c \
+ mycrypt.c \
auth-scram.c \
- auth-scram-server.c
+ auth-scram-server.c \
+ password-scheme.c \
+ password-scheme-crypt.c \
+ password-scheme-md5crypt.c \
+ password-scheme-scram.c \
+ password-scheme-otp.c \
+ password-scheme-pbkdf2.c \
+ password-scheme-sodium.c
+
+libauth_la_LIBADD = \
+ $(LIBSODIUM_LIBS) \
+ $(CRYPT_LIBS)
+libauth_la_DEPENDENCIES = \
+ $(LIBSODIUM_LIBS) \
+ $(CRYPT_LIBS)
headers = \
+ mycrypt.h \
auth-scram.h \
- auth-scram-server.h
+ auth-scram-server.h \
+ password-scheme.h
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
-test_programs =
+noinst_HEADERS = crypt-blowfish.h
+
+test_programs = \
+ test-password-scheme
noinst_PROGRAMS = $(test_programs)
../lib-test/libtest.la \
../lib/liblib.la
+test_password_scheme_SOURCES = \
+ test-password-scheme.c
+test_password_scheme_LDFLAGS = -export-dynamic
+test_password_scheme_LDADD = \
+ $(test_libs) \
+ ../lib-otp/libotp.la \
+ $(CRYPT_LIBS) \
+ $(LIBSODIUM_LIBS)
+test_password_scheme_DEPENDENCIES = \
+ $(test_deps)
+
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \