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