Merge branch 'vendor/GCC44'
[dragonfly.git] / contrib / cryptsetup / 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 @LIBCRYPTSETUP_VERSION_INFO@
30
31 libcryptsetup_la_CFLAGS = -Wall @LIBGCRYPT_CFLAGS@
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         nls.h                                   \
43         blockdev.h                              \
44         libcryptsetup.h                         \
45         utils.c                                 \
46         utils_debug.c                           \
47         backends.c                              \
48         libdevmapper.c                          \
49         gcrypt.c
50
51 include_HEADERS = libcryptsetup.h
52
53 EXTRA_DIST = libcryptsetup.pc.in libcryptsetup.sym