1 EXTRA_DIST = README.md COPYING.LGPL FAQ.md docs misc autogen.sh
2 SUBDIRS = po tests tests/fuzz
9 -DDATADIR=\""$(datadir)"\" \
10 -DLOCALEDIR=\""$(datadir)/locale"\" \
11 -DLIBDIR=\""$(libdir)"\" \
12 -DPREFIX=\""$(prefix)"\" \
13 -DSYSCONFDIR=\""$(sysconfdir)"\" \
14 -DVERSION=\""$(VERSION)"\" \
15 -DEXTERNAL_LUKS2_TOKENS_PATH=\"${EXTERNAL_LUKS2_TOKENS_PATH}\"
16 AM_CFLAGS = -Wall -fPIE
20 if ENABLE_FUZZ_TARGETS
21 AM_CFLAGS += -fsanitize=fuzzer-no-link
22 AM_CXXFLAGS += -fsanitize=fuzzer-no-link
27 tmpfilesddir = @DEFAULT_TMPFILESDIR@
38 include man/Makemodule.am
40 include scripts/Makemodule.am
42 if CRYPTO_INTERNAL_ARGON2
43 include lib/crypto_backend/argon2/Makemodule.am
45 include lib/crypto_backend/Makemodule.am
46 include lib/Makemodule.am
48 include src/Makemodule.am
49 include tokens/Makemodule.am
51 ACLOCAL_AMFLAGS = -I m4
53 DISTCHECK_CONFIGURE_FLAGS = \
54 --with-tmpfilesdir=$$dc_install_base/usr/lib/tmpfiles.d \
55 --enable-internal-argon2 --enable-internal-sse-argon2 \
56 --enable-external-tokens --enable-ssh-token --enable-asciidoc
59 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
63 -rm -rf docs/doxygen_api_docs libargon2.la
66 $(MKDIR_P) -m 0755 $(DESTDIR)/${EXTERNAL_LUKS2_TOKENS_PATH}
69 rmdir $(DESTDIR)/${EXTERNAL_LUKS2_TOKENS_PATH} 2>/dev/null || :
71 check-programs: libcryptsetup.la
74 if ENABLE_FUZZ_TARGETS
75 fuzz-targets: libcryptsetup.la libcrypto_backend.la
76 $(MAKE) -C tests/fuzz $@