Merge branch 'upstream' into tizen
[platform/upstream/cryptsetup.git] / lib / Makemodule.am
1 pkgconfigdir = $(libdir)/pkgconfig
2 pkgconfig_DATA = lib/libcryptsetup.pc
3
4 lib_LTLIBRARIES = libcryptsetup.la
5
6 noinst_LTLIBRARIES += libutils_io.la
7
8 include_HEADERS = lib/libcryptsetup.h
9
10 EXTRA_DIST += lib/libcryptsetup.pc.in lib/libcryptsetup.sym
11
12 libutils_io_la_CFLAGS = $(AM_CFLAGS)
13
14 libutils_io_la_SOURCES = \
15         lib/utils_io.c                  \
16         lib/utils_io.h
17
18 libcryptsetup_la_CPPFLAGS = $(AM_CPPFLAGS) \
19         -I $(top_srcdir)/lib/crypto_backend     \
20         -I $(top_srcdir)/lib/luks1              \
21         -I $(top_srcdir)/lib/luks2              \
22         -I $(top_srcdir)/lib/loopaes            \
23         -I $(top_srcdir)/lib/verity             \
24         -I $(top_srcdir)/lib/tcrypt             \
25         -I $(top_srcdir)/lib/integrity          \
26         -I $(top_srcdir)/lib/bitlk
27
28 libcryptsetup_la_DEPENDENCIES = libutils_io.la libcrypto_backend.la lib/libcryptsetup.sym
29
30 libcryptsetup_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined \
31         -Wl,--version-script=$(top_srcdir)/lib/libcryptsetup.sym \
32         -version-info @LIBCRYPTSETUP_VERSION_INFO@
33
34 libcryptsetup_la_CFLAGS = $(AM_CFLAGS) @CRYPTO_CFLAGS@
35
36 libcryptsetup_la_LIBADD = \
37         @UUID_LIBS@             \
38         @DEVMAPPER_LIBS@        \
39         @CRYPTO_LIBS@           \
40         @LIBARGON2_LIBS@        \
41         @JSON_C_LIBS@           \
42         @BLKID_LIBS@            \
43         $(LTLIBICONV)           \
44         libcrypto_backend.la    \
45         libutils_io.la
46
47 libcryptsetup_la_SOURCES = \
48         lib/setup.c                     \
49         lib/internal.h                  \
50         lib/bitops.h                    \
51         lib/nls.h                       \
52         lib/libcryptsetup.h             \
53         lib/utils.c                     \
54         lib/utils_benchmark.c           \
55         lib/utils_crypt.c               \
56         lib/utils_crypt.h               \
57         lib/utils_loop.c                \
58         lib/utils_loop.h                \
59         lib/utils_devpath.c             \
60         lib/utils_wipe.c                \
61         lib/utils_fips.c                \
62         lib/utils_fips.h                \
63         lib/utils_device.c              \
64         lib/utils_keyring.c             \
65         lib/utils_keyring.h             \
66         lib/utils_device_locking.c      \
67         lib/utils_device_locking.h      \
68         lib/utils_pbkdf.c               \
69         lib/utils_safe_memory.c         \
70         lib/utils_storage_wrappers.c    \
71         lib/utils_storage_wrappers.h    \
72         lib/libdevmapper.c              \
73         lib/utils_dm.h                  \
74         lib/volumekey.c                 \
75         lib/random.c                    \
76         lib/crypt_plain.c               \
77         lib/base64.h                    \
78         lib/base64.c                    \
79         lib/integrity/integrity.h       \
80         lib/integrity/integrity.c       \
81         lib/loopaes/loopaes.h           \
82         lib/loopaes/loopaes.c           \
83         lib/tcrypt/tcrypt.h             \
84         lib/tcrypt/tcrypt.c             \
85         lib/luks1/af.h                  \
86         lib/luks1/af.c                  \
87         lib/luks1/keyencryption.c       \
88         lib/luks1/keymanage.c           \
89         lib/luks1/luks.h                \
90         lib/verity/verity_hash.c        \
91         lib/verity/verity_fec.c         \
92         lib/verity/verity.c             \
93         lib/verity/verity.h             \
94         lib/verity/rs_encode_char.c     \
95         lib/verity/rs_decode_char.c     \
96         lib/verity/rs.h         \
97         lib/luks2/luks2_disk_metadata.c \
98         lib/luks2/luks2_json_format.c   \
99         lib/luks2/luks2_json_metadata.c \
100         lib/luks2/luks2_luks1_convert.c \
101         lib/luks2/luks2_digest.c        \
102         lib/luks2/luks2_digest_pbkdf2.c \
103         lib/luks2/luks2_keyslot.c       \
104         lib/luks2/luks2_keyslot_luks2.c \
105         lib/luks2/luks2_keyslot_reenc.c \
106         lib/luks2/luks2_reencrypt.c     \
107         lib/luks2/luks2_reencrypt_digest.c      \
108         lib/luks2/luks2_segment.c       \
109         lib/luks2/luks2_token_keyring.c \
110         lib/luks2/luks2_token.c         \
111         lib/luks2/luks2_internal.h      \
112         lib/luks2/luks2.h               \
113         lib/utils_blkid.c               \
114         lib/utils_blkid.h               \
115         lib/bitlk/bitlk.h               \
116         lib/bitlk/bitlk.c