1 DEFAULT_INCLUDES = -I. -I$(top_builddir)
2 BUILT_SOURCES = version.h
3 DISTCLEANFILES = $(top_builddir)/src/version.h
5 bin_PROGRAMS = pwmd pwmd-dump
7 pwmd_dump_SOURCES = pwmd-dump.c util-string.c util-string.h version.h
8 pwmd_dump_LDADD = @PTHREAD_LIBS@ @GPG_ERROR_LIBS@ @LIBGCRYPT_LIBS@ \
9 @LIBASSUAN_LIBS@ @XML_LIBS@ @LIBINTL@
10 pwmd_dump_CFLAGS = @PTHREAD_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBGCRYPT_CFLAGS@ \
11 @LIBASSUAN_CFLAGS@ @XML_CPPFLAGS@
13 pwmd_SOURCES = pwmd.c xml.c xml.h pwmd-error.c pwmd-error.h commands.c \
14 commands.h common.h cache.c cache.h status.c status.h \
15 mutex.h rcfile.c rcfile.h util-slist.c util-slist.h \
16 util-string.c util-string.h util-misc.c util-misc.h gettext.h \
17 crypto.c crypto.h agent.c agent.h acl.c acl.h bulk.c bulk.h \
19 pwmd_LDADD = @PTHREAD_LIBS@ @GPG_ERROR_LIBS@ @LIBGCRYPT_LIBS@ \
20 @GPGME_PTHREAD_LIBS@ @XML_LIBS@ @LIBASSUAN_LIBS@ @LIBINTL@
21 pwmd_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @PTHREAD_CFLAGS@ \
22 @XML_CPPFLAGS@ @GPG_ERROR_CFLAGS@ @GPGME_PTHREAD_CFLAGS@ \
23 @LIBGCRYPT_CFLAGS@ @LIBASSUAN_CFLAGS@
26 pwmd_SOURCES += getopt_long.c getopt_long.h
27 pwmd_dump_SOURCES += getopt_long.c getopt_long.h
31 pwmd_SOURCES += tls.c tls.h
32 pwmd_CFLAGS += @GNUTLS_CFLAGS@
33 pwmd_LDADD += @GNUTLS_LIBS@
41 CPPFLAGS += -DMEM_DEBUG
43 pwmd_SOURCES += mem.c mem.h
44 pwmd_dump_SOURCES += mem.c mem.h
47 CPPFLAGS += -DMUTEX_DEBUG
51 version.h: $(top_builddir)/.git/refs/heads/@GIT_BRANCH@
52 test $(BUILDING_PKG) && echo '#define PWMD_GIT_HASH ""' >$@ || \
53 echo '#define PWMD_GIT_HASH "-g'`git log -1 --format="%h"`'"' \ >$@
55 echo '#define PWMD_GIT_HASH ""' >$@