Move PBKDF2 into crypto backend wrapper.
[platform/upstream/cryptsetup.git] / lib / crypto_backend / Makefile.am
1 moduledir = $(libdir)/cryptsetup
2
3 noinst_LTLIBRARIES = libcrypto_backend.la
4
5 libcrypto_backend_la_CFLAGS = -Wall @CRYPTO_CFLAGS@
6
7 libcrypto_backend_la_SOURCES = crypto_backend.h pbkdf_check.c
8
9 if CRYPTO_BACKEND_GCRYPT
10 libcrypto_backend_la_SOURCES += crypto_gcrypt.c
11 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
12 endif
13 if CRYPTO_BACKEND_OPENSSL
14 libcrypto_backend_la_SOURCES += crypto_openssl.c
15 endif
16 if CRYPTO_BACKEND_NSS
17 libcrypto_backend_la_SOURCES += crypto_nss.c
18 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
19 endif
20 if CRYPTO_BACKEND_KERNEL
21 libcrypto_backend_la_SOURCES += crypto_kernel.c
22 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
23 endif
24 if CRYPTO_BACKEND_NETTLE
25 libcrypto_backend_la_SOURCES += crypto_nettle.c
26 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
27 endif
28
29 INCLUDES = -D_GNU_SOURCE -I$(top_srcdir)/lib