1 EXTRA_DIST = TODO ChangeLog ChangeLog.old INSTALL KnownBugs NEWS debian \
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@ \
15 libpwmd_la_LIBADD = ${srcdir}/assuan/libassuan.a
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
31 libpwmd_la_LDFLAGS += @libcares_LIBS@
32 libpwmd_la_CFLAGS += @libcares_CFLAGS@
34 libpwmd_pth_la_LDFLAGS += @libcares_LIBS@
35 libpwmd_pth_la_CFLAGS += @libcares_CFLAGS@
39 dist_man1_MANS = pwmc.1
42 pwmc_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\"
46 CPPFLAGS += -DMEM_DEBUG
48 libpwmd_la_SOURCES += mem.c mem.h
49 pwmc_SOURCES += mem.c mem.h
51 libpwmd_pth_la_SOURCES += mem.c mem.h
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
60 install -p -m 0644 ${top_builddir}/libpwmd-pth.pc $(DESTDIR)${libdir}/pkgconfig
64 rm -f $(DESTDIR)${libdir}/pkgconfig/libpwmd.pc
65 rm -f $(DESTDIR)${libdir}/pkgconfig/libpwmd-pth.pc
68 git-log --no-color > ChangeLog || exit 1
71 dpkg-buildpackage -B -uc -rfakeroot && dh_clean
74 $(MAKE) $(AM_MAKEFLAGS) distcheck
75 $(MAKE) $(AM_MAKEFLAGS) deb
79 ACLOCAL_AMFLAGS = -I m4 -I/usr/local/share/aclocal