build: use AM_CPPFLAGS instead of INCLUDES
[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 \
8         crypto_cipher_kernel.c pbkdf_check.c crc32.c
9
10 if CRYPTO_BACKEND_GCRYPT
11 libcrypto_backend_la_SOURCES += crypto_gcrypt.c
12 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
13 endif
14 if CRYPTO_BACKEND_OPENSSL
15 libcrypto_backend_la_SOURCES += crypto_openssl.c
16 endif
17 if CRYPTO_BACKEND_NSS
18 libcrypto_backend_la_SOURCES += crypto_nss.c
19 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
20 endif
21 if CRYPTO_BACKEND_KERNEL
22 libcrypto_backend_la_SOURCES += crypto_kernel.c
23 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
24 endif
25 if CRYPTO_BACKEND_NETTLE
26 libcrypto_backend_la_SOURCES += crypto_nettle.c
27 libcrypto_backend_la_SOURCES += pbkdf2_generic.c
28 endif
29
30 AM_CPPFLAGS = -D_GNU_SOURCE -I$(top_srcdir)/lib