Fix build for non-standard gcrypt library location.
[platform/upstream/cryptsetup.git] / src / Makefile.am
1 INCLUDES = \
2         -I$(top_srcdir)                         \
3         -I$(top_srcdir)/lib                     \
4         -DDATADIR=\""$(datadir)"\"              \
5         -DLOCALEDIR=\""$(datadir)/locale"\"     \
6         -DLIBDIR=\""$(libdir)"\"                \
7         -DPREFIX=\""$(prefix)"\"                \
8         -DSYSCONFDIR=\""$(sysconfdir)"\"        \
9         -DVERSION=\""$(VERSION)"\"              \
10         -D_GNU_SOURCE
11
12 cryptsetup_SOURCES = \
13         cryptsetup.c                            \
14         cryptsetup.h
15
16 if STATIC_CRYPTSETUP
17 _STATIC_FLAGS = -all-static
18 _STATIC_LDADD = @LIBGCRYPT_LIBS@ @SELINUX_STATIC_LIBS@
19 endif
20
21 cryptsetup_LDADD = \
22         @POPT_LIBS@                             \
23         $(top_builddir)/lib/libcryptsetup.la    \
24         $(_STATIC_LDADD)
25
26
27 cryptsetup_LDFLAGS = \
28         $(_STATIC_FLAGS)
29
30 cryptsetup_CFLAGS = -Wall
31
32 sbin_PROGRAMS=cryptsetup