Added assuan_socket_connect_fd() and assuan_set_finish_handler().
[libpwmd.git] / Makefile.am
blob309832164dd16cf5c70cd3afcba2f7aac0bf8ed8
1 EXTRA_DIST = TODO ChangeLog ChangeLog.old INSTALL KnownBugs NEWS debian \
2              ABOUT-NLS
3 dist_man3_MANS = libpwmd.3
5 DEFAULT_INCLUDES = -I. -Iassuan
7 lib_LTLIBRARIES = libpwmd.la
8 libpwmd_ladir = $(includedir)
9 libpwmd_la_SOURCES = libpwmd.c libpwmd.h types.h gettext.h
10 libpwmd_la_HEADERS = libpwmd.h
11 libpwmd_la_LDFLAGS = -version-info @VER_MAJOR@:@VER_PATCH@:@VER_COMPAT@ \
12     @GPG_ERROR_LIBS@ @LIBGNUTLS_LIBS@
13 libpwmd_la_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @GPG_ERROR_CFLAGS@ \
14                     @LIBGNUTLS_CFLAGS@
15 libpwmd_la_LIBADD = ${srcdir}/assuan/libassuan.a
17 if WITH_LIBPTH
18 lib_LTLIBRARIES += libpwmd-pth.la
19 libpwmd_pth_ladir = $(includedir)
20 libpwmd_pth_la_SOURCES = libpwmd.c libpwmd.h types.h gettext.h
21 libpwmd_pth_la_HEADERS = libpwmd.h
22 libpwmd_pth_la_LDFLAGS = -version-info @VER_MAJOR@:@VER_PATCH@:@VER_COMPAT@ \
23     @GPG_ERROR_LIBS@ @PTH_LDFLAGS@ @PTH_LIBS@ -DWITH_LIBPTH @LIBGNUTLS_LIBS@
24 libpwmd_pth_la_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" \
25                         @GPG_ERROR_CFLAGS@ @PTH_CFLAGS@ \
26                         -DWITH_LIBPTH @LIBGNUTLS_CFLAGS@
27 libpwmd_pth_la_LIBADD = ${srcdir}/assuan/libassuan-pth.a
28 endif
30 if WITH_TCP
31 libpwmd_la_LDFLAGS += @libcares_LIBS@
32 libpwmd_la_CFLAGS += @libcares_CFLAGS@
33 if WITH_LIBPTH
34 libpwmd_pth_la_LDFLAGS += @libcares_LIBS@
35 libpwmd_pth_la_CFLAGS += @libcares_CFLAGS@
36 endif
37 endif
39 dist_man1_MANS = pwmc.1
40 bin_PROGRAMS = pwmc
41 pwmc_SOURCES = pwmc.c
42 pwmc_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\"
43 pwmc_LDADD= -lpwmd
45 if MEM_DEBUG
46 CPPFLAGS += -DMEM_DEBUG
47 else
48 libpwmd_la_SOURCES += mem.c mem.h
49 pwmc_SOURCES += mem.c mem.h
50 if WITH_LIBPTH
51 libpwmd_pth_la_SOURCES += mem.c mem.h
52 endif
53 endif
55 install-data-hook:
56         install -m 0755 -d $(DESTDIR)${libdir}/pkgconfig
57         chmod u+w $(DESTDIR)${libdir}/pkgconfig
58         install -p -m 0644 ${top_builddir}/libpwmd.pc $(DESTDIR)${libdir}/pkgconfig
59 if WITH_LIBPTH
60         install -p -m 0644 ${top_builddir}/libpwmd-pth.pc $(DESTDIR)${libdir}/pkgconfig
61 endif
63 uninstall-hook:
64         rm -f $(DESTDIR)${libdir}/pkgconfig/libpwmd.pc
65         rm -f $(DESTDIR)${libdir}/pkgconfig/libpwmd-pth.pc
67 changelog:
68         git-log --no-color > ChangeLog || exit 1
70 deb: changelog
71         dpkg-buildpackage -B -uc -rfakeroot && dh_clean
73 version: changelog
74         $(MAKE) $(AM_MAKEFLAGS) distcheck
75         $(MAKE) $(AM_MAKEFLAGS) deb
77 SUBDIRS = po assuan
79 ACLOCAL_AMFLAGS = -I m4 -I/usr/local/share/aclocal