X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=a8264466a6d6bb0282aef933fb04a68d62c7d156;hb=e37016bf649adb19e649da494e5ebea9183f33b9;hp=e772875641e5623fd8338f4405c7da1c6acb2127;hpb=05b695d5165f280bcdffbac9a312a3fee1202436;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/src/Makefile.am b/src/Makefile.am index e772875..a826446 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -66,11 +66,25 @@ endif endif # reencrypt -crypt_reencrypt_SOURCES = \ +if REENCRYPT +cryptsetup_reencrypt_SOURCES = \ $(top_builddir)/lib/utils_crypt.c \ - crypt_reencrypt.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