Makefile: Add security compiling option (RELRO, SC, and FORTIFY)
[platform/upstream/cryptsetup.git] / lib / crypto_backend / argon2 / Makemodule.am
1 noinst_LTLIBRARIES += libargon2.la
2
3 libargon2_la_CFLAGS = $(AM_CFLAGS) -std=c89 -pthread -O3
4 libargon2_la_CPPFLAGS = $(AM_CPPFLAGS) \
5         -I lib/crypto_backend/argon2 \
6         -I lib/crypto_backend/argon2/blake2
7
8 libargon2_la_SOURCES = \
9         lib/crypto_backend/argon2/blake2/blake2b.c \
10         lib/crypto_backend/argon2/blake2/blake2.h \
11         lib/crypto_backend/argon2/blake2/blake2-impl.h \
12         lib/crypto_backend/argon2/argon2.c \
13         lib/crypto_backend/argon2/argon2.h \
14         lib/crypto_backend/argon2/core.c \
15         lib/crypto_backend/argon2/core.h \
16         lib/crypto_backend/argon2/encoding.c \
17         lib/crypto_backend/argon2/encoding.h \
18         lib/crypto_backend/argon2/thread.c \
19         lib/crypto_backend/argon2/thread.h
20
21 if CRYPTO_INTERNAL_SSE_ARGON2
22 libargon2_la_SOURCES += lib/crypto_backend/argon2/blake2/blamka-round-opt.h \
23                         lib/crypto_backend/argon2/opt.c
24 else
25 libargon2_la_SOURCES += lib/crypto_backend/argon2/blake2/blamka-round-ref.h \
26                         lib/crypto_backend/argon2/ref.c
27 endif
28
29 EXTRA_DIST += lib/crypto_backend/argon2/LICENSE
30 EXTRA_DIST += lib/crypto_backend/argon2/README