When DEBUG is defined, pwmc has a new option -E to specify the
[libpwmd.git] / Makefile.am
bloba5572602264daad687aa6d30175b95809358316e
1 EXTRA_DIST = TODO ChangeLog ChangeLog.old INSTALL KnownBugs NEWS debian ABOUT-NLS
2 dist_man3_MANS = libpwmd.3
3 lib_LTLIBRARIES = libpwmd.la
4 libpwmd_ladir = $(includedir)
5 libpwmd_la_SOURCES = libpwmd.c libpwmd.h types.h gettext.h
6 libpwmd_la_HEADERS = libpwmd.h
7 libpwmd_la_LDFLAGS = -version-info 5:1:0 @LIBASSUAN_LIBS@ @GPG_ERROR_LIBS@
8 libpwmd_la_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @LIBASSUAN_CFLAGS@ @GPG_ERROR_CFLAGS@ 
10 dist_man1_MANS = pwmc.1
11 bin_PROGRAMS = pwmc
12 pwmc_SOURCES = pwmc.c
13 pwmc_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\"
14 pwmc_LDADD= -lpwmd
16 if MEM_DEBUG
17 CPPFLAGS += -DMEM_DEBUG
18 else
19 libpwmd_la_SOURCES += mem.c mem.h
20 pwmc_SOURCES += mem.c mem.h
21 endif
23 install-data-hook:
24         install -m 0755 -d $(DESTDIR)${libdir}/pkgconfig
25         chmod u+w $(DESTDIR)${libdir}/pkgconfig
26         install -p -m 0644 ${top_builddir}/libpwmd.pc $(DESTDIR)${libdir}/pkgconfig
28 uninstall-hook:
29         rm -f $(DESTDIR)${libdir}/pkgconfig/libpwmd.pc
31 changelog:
32         git-log --no-color > ChangeLog || exit 1
34 deb: changelog
35         dpkg-buildpackage -B -uc -rfakeroot && dh_clean
37 version: changelog
38         $(MAKE) $(AM_MAKEFLAGS) distcheck
39         $(MAKE) $(AM_MAKEFLAGS) deb
41 SUBDIRS = po
43 ACLOCAL_AMFLAGS = -I m4 -I/usr/local/share/aclocal