Fixed the --get-hostkey option.
[libpwmd.git] / src / Makefile.am
blobcd37818343960d23843e216c2b091ec5e5d034cf
1 DEFAULT_INCLUDES = -I. -I$(top_builddir) -I$(top_srcdir)/assuan
3 lib_LTLIBRARIES = libpwmd.la
4 libpwmd_ladir = $(includedir)
5 libpwmd_la_SOURCES = libpwmd.c libpwmd.h types.h gettext.h mem.h
6 libpwmd_la_HEADERS = libpwmd.h
7 libpwmd_la_LDFLAGS = -version-info @VER_MAJOR@:@VER_PATCH@:@VER_COMPAT@ \
8     @GPG_ERROR_LIBS@ @LTLIBINTL@
9 libpwmd_la_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @GPG_ERROR_CFLAGS@
10 libpwmd_la_LIBADD = ${top_builddir}/assuan/libassuan.la
12 if WITH_LIBPTH
13 lib_LTLIBRARIES += libpwmd-pth.la
14 libpwmd_pth_ladir = $(includedir)
15 libpwmd_pth_la_SOURCES = libpwmd.c libpwmd.h types.h gettext.h mem.h mem.h
16 libpwmd_pth_la_HEADERS = libpwmd.h
17 libpwmd_pth_la_LDFLAGS = -version-info @VER_MAJOR@:@VER_PATCH@:@VER_COMPAT@ \
18     @GPG_ERROR_LIBS@ @PTH_LDFLAGS@ @PTH_LIBS@ -DWITH_LIBPTH @LTLIBINTL@
19 libpwmd_pth_la_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" \
20                         @GPG_ERROR_CFLAGS@ @PTH_CFLAGS@ \
21                         -DWITH_LIBPTH
22 libpwmd_pth_la_LIBADD = ${top_builddir}/assuan/libassuan-pth.la
23 endif
25 if WITH_TCP
26 libpwmd_la_LDFLAGS += @libcares_LIBS@ -lssh2
27 libpwmd_la_CFLAGS += @libcares_CFLAGS@
28 if WITH_LIBPTH
29 libpwmd_pth_la_LDFLAGS += @libcares_LIBS@ -lssh2
30 libpwmd_pth_la_CFLAGS += @libcares_CFLAGS@
31 endif
32 endif
34 bin_PROGRAMS = pwmc
35 pwmc_SOURCES = pwmc.c
36 if NEED_GETOPT_LONG
37 pwmc_SOURCES += getopt_long.c getopt_long.h
38 endif
39 pwmc_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\"
40 pwmc_LDADD= -lpwmd
42 if MEM_DEBUG
43 CPPFLAGS += -DMEM_DEBUG
44 else
45 libpwmd_la_SOURCES += mem.c
46 if WITH_LIBPTH
47 libpwmd_pth_la_SOURCES += mem.c
48 endif
49 endif