Fix TLS socket timeouts and rename parameters.
[libpwmd.git] / src / Makefile.am
blobb566f0b7f19ee08fff19b05c94a26465036de76f
1 DEFAULT_INCLUDES = -I. -I$(top_builddir)
3 noinst_LTLIBRARIES = libmemzero.la
4 libmemzero_la_SOURCES = memzero.c memzero.h
5 libmemzero_la_CFLAGS = @CFLAGS_MEMZERO@
7 lib_LTLIBRARIES = libpwmd.la
8 libpwmd_ladir = $(includedir)
9 libpwmd_la_SOURCES = libpwmd.c libpwmd.h types.h gettext.h mem.h misc.c misc.h
10 libpwmd_la_HEADERS = libpwmd.h
11 libpwmd_la_LDFLAGS = -version-info @VER_MAJOR@:@VER_PATCH@:@VER_MINOR@ \
12                     @PTHREAD_LIBS@ @GPG_ERROR_LIBS@ @LTLIBINTL@ \
13                     @LIBASSUAN_LIBS@
14 libpwmd_la_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @GPG_ERROR_CFLAGS@ \
15                     @PTHREAD_CFLAGS@ @LIBASSUAN_CFLAGS@ @CFLAGS_ORIG@
16 libpwmd_la_LIBADD = libmemzero.la
18 if WITH_SSH
19 libpwmd_la_SOURCES += ssh.c ssh.h
20 libpwmd_la_LDFLAGS += @libssh2_LIBS@
21 libpwmd_la_CFLAGS += @libssh2_CFLAGS@
22 endif
24 if WITH_GNUTLS
25 libpwmd_la_SOURCES += tls.c tls.h
26 libpwmd_la_CFLAGS += @GNUTLS_CFLAGS@
27 libpwmd_la_LDFLAGS += @GNUTLS_LIBS@
28 endif
30 if WITH_PINENTRY
31 libpwmd_la_SOURCES += pinentry.c pinentry.h
32 endif
34 if WITH_QUALITY
35 libpwmd_la_LDFLAGS += -lcrack
36 endif
38 bin_PROGRAMS = pwmc
39 pwmc_SOURCES = pwmc.c
40 if NEED_GETOPT_LONG
41 pwmc_SOURCES += getopt_long.c getopt_long.h
42 endif
43 pwmc_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @GPG_ERROR_CFLAGS@ \
44               @GNUTLS_CFLAGS@ @libssh2_CFLAGS@ @LIBASSUAN_CFLAGS@ @CFLAGS_ORIG@
45 pwmc_LDFLAGS = @GPG_ERROR_LIBS@ @LIBASSUAN_LIBS@ @GNUTLS_LIBS@ @libssh2_LIBS@
46 pwmc_LDADD= -lpwmd
47 pwmc_DEPENDENCIES= libpwmd.la
49 if WITH_READLINE
50 pwmc_LDFLAGS += @READLINE_LIBS@
51 endif
53 if MEM_DEBUG
54 CPPFLAGS += -DMEM_DEBUG
55 else
56 libpwmd_la_SOURCES += mem.c
57 endif