Always send pinentry options in pwmd_open().
[libpwmd.git] / src / Makefile.am
blobc8a7f826b5f8b48f56d09d849ce10919c4d5167c
1 DEFAULT_INCLUDES = -I. -I$(top_builddir)
3 lib_LTLIBRARIES = libpwmd.la
4 libpwmd_ladir = $(includedir)
5 libpwmd_la_SOURCES = libpwmd.c libpwmd.h types.h gettext.h mem.h misc.c misc.h
6 libpwmd_la_HEADERS = libpwmd.h
7 libpwmd_la_LDFLAGS = -version-info @VER_MAJOR@:@VER_PATCH@:@VER_MINOR@ \
8                     @PTHREAD_LIBS@ @GPG_ERROR_LIBS@ @LTLIBINTL@ \
9                     @LIBASSUAN_LIBS@
10 libpwmd_la_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @GPG_ERROR_CFLAGS@ \
11                     @PTHREAD_CFLAGS@ @LIBASSUAN_CFLAGS@
13 if WITH_TCP
14 libpwmd_la_SOURCES += ssh.c ssh.h
15 libpwmd_la_LDFLAGS += @libssh2_LIBS@
16 libpwmd_la_CFLAGS += @libssh2_CFLAGS@
17 endif
19 if WITH_PINENTRY
20 libpwmd_la_SOURCES += pinentry.c pinentry.h
21 endif
23 if WITH_QUALITY
24 libpwmd_la_LDFLAGS += -lcrack
25 endif
27 bin_PROGRAMS = pwmc
28 pwmc_SOURCES = pwmc.c
29 if NEED_GETOPT_LONG
30 pwmc_SOURCES += getopt_long.c getopt_long.h
31 endif
32 pwmc_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @GPG_ERROR_CFLAGS@
33 pwmc_LDFLAGS = @GPG_ERROR_LIBS@
34 pwmc_LDADD= -lpwmd
35 pwmc_DEPENDENCIES= libpwmd.la
36 if WITH_READLINE
37 pwmc_LDFLAGS += @READLINE_LIBS@
38 endif
40 if MEM_DEBUG
41 CPPFLAGS += -DMEM_DEBUG
42 else
43 libpwmd_la_SOURCES += mem.c
44 endif