Makefile.am 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. AM_CFLAGS = @LUKSMETA_CFLAGS@ @cryptsetup_CFLAGS@
  2. BUILT_SOURCES=
  3. CLEANFILES=
  4. noinst_LTLIBRARIES = libcrc32c.la
  5. libcrc32c_la_SOURCES = crc32c.c crc32c.h
  6. include_HEADERS = luksmeta.h
  7. lib_LTLIBRARIES = libluksmeta.la
  8. libluksmeta_la_LDFLAGS = -export-symbols-regex '^luksmeta_'
  9. libluksmeta_la_LIBADD = libcrc32c.la @cryptsetup_LIBS@
  10. bin_PROGRAMS = luksmeta
  11. luksmeta_LDADD = libluksmeta.la @cryptsetup_LIBS@
  12. man_ADOC_FILES = luksmeta.8.adoc
  13. if HAVE_A2X
  14. man_ROFF_FILES = $(man_ADOC_FILES:.adoc=.roff)
  15. BUILT_SOURCES += $(man_ROFF_FILES)
  16. CLEANFILES += $(man_ROFF_FILES) $(man_ROFF_FILES:.roff=)
  17. $(top_builddir)/%.roff: %.adoc
  18. $(MKDIR_P) $$(dirname $@)
  19. $(A2X) -v -f manpage $^ -D $(top_builddir)/$$(dirname $@)
  20. $(INSTALL) -m 644 $(top_builddir)/$(@:.roff=) $(top_builddir)/$@
  21. man8_MANS = luksmeta.8
  22. else
  23. man8_MANS =
  24. endif
  25. pkgconfigdir = $(libdir)/pkgconfig
  26. pkgconfig_DATA = luksmeta.pc
  27. check_LTLIBRARIES = libtest.la
  28. libtest_la_SOURCES = test.c test.h
  29. check_PROGRAMS = test-crc32c test-lm-assumptions test-lm-init test-lm-one test-lm-two test-lm-big
  30. test_crc32c_LDADD = libcrc32c.la
  31. test_lm_assumptions_LDADD = libtest.la libluksmeta.la @cryptsetup_LIBS@
  32. test_lm_init_LDADD = libtest.la libluksmeta.la @cryptsetup_LIBS@
  33. test_lm_one_LDADD = libtest.la libluksmeta.la @cryptsetup_LIBS@
  34. test_lm_two_LDADD = libtest.la libluksmeta.la @cryptsetup_LIBS@
  35. test_lm_big_LDADD = libtest.la libluksmeta.la @cryptsetup_LIBS@
  36. EXTRA_DIST = $(man_ADOC_FILES) test-luksmeta
  37. TESTS = $(check_PROGRAMS) test-luksmeta