Add master key dump option for tcryptDump.
[platform/upstream/cryptsetup.git] / src / Makefile.am
index e772875..f071acc 100644 (file)
@@ -14,6 +14,7 @@ cryptsetup_SOURCES = \
        $(top_builddir)/lib/utils_crypt.c       \
        $(top_builddir)/lib/utils_loop.c        \
        $(top_builddir)/lib/utils_fips.c        \
+       utils_tools.c                           \
        cryptsetup.c                            \
        cryptsetup.h
 
@@ -41,7 +42,9 @@ endif
 if VERITYSETUP
 
 veritysetup_SOURCES = \
+       $(top_builddir)/lib/utils_crypt.c       \
        $(top_builddir)/lib/utils_loop.c        \
+       utils_tools.c                           \
        veritysetup.c                           \
        cryptsetup.h
 
@@ -66,11 +69,26 @@ endif
 endif
 
 # reencrypt
-crypt_reencrypt_SOURCES = \
+if REENCRYPT
+cryptsetup_reencrypt_SOURCES = \
        $(top_builddir)/lib/utils_crypt.c       \
-       crypt_reencrypt.c                       \
+       utils_tools.c                           \
+       cryptsetup_reencrypt.c                  \
        cryptsetup.h
 
-crypt_reencrypt_LDADD = $(cryptsetup_LDADD)
-crypt_reencrypt_CFLAGS = $(cryptsetup_CFLAGS)
-sbin_PROGRAMS += crypt_reencrypt
+cryptsetup_reencrypt_LDADD = $(cryptsetup_LDADD)
+cryptsetup_reencrypt_CFLAGS = $(cryptsetup_CFLAGS)
+
+sbin_PROGRAMS += cryptsetup-reencrypt
+
+if STATIC_TOOLS
+sbin_PROGRAMS += cryptsetup-reencrypt.static
+cryptsetup_reencrypt_static_SOURCES = $(cryptsetup_reencrypt_SOURCES)
+cryptsetup_reencrypt_static_CFLAGS = $(cryptsetup_reencrypt_CFLAGS)
+cryptsetup_reencrypt_static_LDFLAGS = -all-static
+cryptsetup_reencrypt_static_LDADD = $(cryptsetup_reencrypt_LDADD)      \
+       @CRYPTO_STATIC_LIBS@ \
+       @DEVMAPPER_STATIC_LIBS@ \
+       @UUID_LIBS@
+endif
+endif