Fix hex_to_bytes and add it to common utils.
[platform/upstream/cryptsetup.git] / src / Makefile.am
index 473120c..60e740d 100644 (file)
@@ -41,6 +41,7 @@ endif
 if VERITYSETUP
 
 veritysetup_SOURCES = \
+       $(top_builddir)/lib/utils_crypt.c       \
        $(top_builddir)/lib/utils_loop.c        \
        veritysetup.c                           \
        cryptsetup.h
@@ -64,3 +65,27 @@ veritysetup_static_LDADD = $(veritysetup_LDADD)      \
        @UUID_LIBS@
 endif
 endif
+
+# reencrypt
+if REENCRYPT
+cryptsetup_reencrypt_SOURCES = \
+       $(top_builddir)/lib/utils_crypt.c       \
+       cryptsetup_reencrypt.c                  \
+       cryptsetup.h
+
+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