Avoids linking everything with libsodium and libcrypt
auth_LDFLAGS = -export-dynamic
auth_libs = \
+ ../lib-auth/libauth-crypt.la \
$(AUTH_LUA_LIBS) \
$(LIBDOVECOT_SQL)
libs = \
+ ../lib-auth/libauth-crypt.la \
dsync/libdsync.la \
../lib-compression/libcompression.la
-noinst_LTLIBRARIES = libauth.la
+noinst_LTLIBRARIES = libauth-crypt.la libauth.la
AM_CPPFLAGS = \
$(LIBSODIUM_CFLAGS) \
-I$(top_srcdir)/src/lib-otp
libauth_la_SOURCES = \
- crypt-blowfish.c \
- mycrypt.c \
auth-scram.c \
auth-scram-client.c \
- auth-scram-server.c \
+ auth-scram-server.c
+
+libauth_crypt_la_SOURCES = \
+ crypt-blowfish.c \
+ mycrypt.c \
password-scheme.c \
password-scheme-crypt.c \
password-scheme-md5crypt.c \
password-scheme-pbkdf2.c \
password-scheme-sodium.c
-libauth_la_LIBADD = \
+libauth_crypt_la_LIBADD = \
+ libauth.la \
$(LIBSODIUM_LIBS) \
$(CRYPT_LIBS)