Allow manipulate with device with only header on it (no data).
[platform/upstream/cryptsetup.git] / lib / Makefile.am
1 moduledir = $(libdir)/cryptsetup
2
3 pkgconfigdir = $(libdir)/pkgconfig
4 pkgconfig_DATA = libcryptsetup.pc
5
6 INCLUDES = \
7         -I$(top_srcdir)                         \
8         -I$(top_srcdir)/luks                    \
9         -DDATADIR=\""$(datadir)"\"              \
10         -DLIBDIR=\""$(libdir)"\"                \
11         -DPREFIX=\""$(prefix)"\"                \
12         -DSYSCONFDIR=\""$(sysconfdir)"\"        \
13         -DVERSION=\""$(VERSION)"\"              \
14         -D_GNU_SOURCE                           \
15         -D_LARGEFILE64_SOURCE                   \
16         -D_FILE_OFFSET_BITS=64
17
18 lib_LTLIBRARIES = libcryptsetup.la
19
20 if STATIC_LIBRARY
21 _STATIC_LIBRARY = -static
22 endif
23
24 libcryptsetup_la_DEPENDENCIES = libcryptsetup.sym
25
26 libcryptsetup_la_LDFLAGS = \
27         $(_STATIC_LIBRARY) \
28         -Wl,--version-script=$(top_srcdir)/lib/libcryptsetup.sym \
29         -version-info 1:0:0
30
31 libcryptsetup_la_CFLAGS = -Wall
32
33 libcryptsetup_la_LIBADD = \
34         @UUID_LIBS@                             \
35         @DEVMAPPER_LIBS@                        \
36         @LIBGCRYPT_LIBS@                        \
37         ../luks/libluks.la
38
39 libcryptsetup_la_SOURCES = \
40         setup.c                                 \
41         internal.h                              \
42         blockdev.h                              \
43         libcryptsetup.h                         \
44         utils.c                                 \
45         backends.c                              \
46         libdevmapper.c                          \
47         gcrypt.c
48
49 include_HEADERS = libcryptsetup.h
50
51 EXTRA_DIST = libcryptsetup.pc.in libcryptsetup.sym