Fix ACL crash for non-existing user.
[pwmd.git] / src / Makefile.am
blob5902a104ba38fe2463d061187fcde724bfd1d701
1 DEFAULT_INCLUDES = -I. -I$(top_builddir)
3 noinst_LTLIBRARIES = libmemzero.la
4 libmemzero_la_SOURCES = memzero.c memzero.h
5 libmemzero_la_CFLAGS = @CFLAGS_MEMZERO@
7 bin_PROGRAMS = pwmd
8 pwmd_SOURCES = pwmd.c xml.c xml.h pwmd-error.c pwmd-error.h commands.c \
9                commands.h common.h cache.c cache.h status.c status.h \
10                mutex.h rcfile.c rcfile.h cipher.c cipher.h convert.c \
11                convert.h util-slist.c util-slist.h util-string.c \
12                util-string.h util-misc.c util-misc.h gettext.h \
13                crypto.c crypto.h pinentry.c pinentry.h
14 pwmd_LDFLAGS = @PTHREAD_LIBS@ @GPG_ERROR_LIBS@ @LIBASSUAN_LIBS@ \
15                @LIBGCRYPT_LIBS@ @XML_LIBS@
16 pwmd_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @PTHREAD_CFLAGS@ \
17                @XML_CPPFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \
18                @LIBGCRYPT_CFLAGS@ @CFLAGS_ORIG@
19 pwmd_LDADD = libmemzero.la
21 if NEED_GETOPT_LONG
22 pwmd_SOURCES += getopt_long.c getopt_long.h
23 endif
25 if WITH_AGENT
26 pwmd_SOURCES += agent.c agent.h
27 endif
29 if WITH_QUALITY
30 pwmd_LDFLAGS += -lcrack
31 endif
33 if WITH_GNUTLS
34 pwmd_SOURCES += tls.c tls.h
35 pwmd_CFLAGS += @GNUTLS_CFLAGS@
36 pwmd_LDFLAGS += @GNUTLS_LIBS@
37 endif
39 if WITH_DEBUG
40 CPPFLAGS += -DDEBUG
41 endif
43 if MEM_DEBUG
44 CPPFLAGS += -DMEM_DEBUG
45 else
46 pwmd_SOURCES += mem.c mem.h
47 endif
49 if WITH_MUTEX_DEBUG
50 CPPFLAGS += -DMUTEX_DEBUG
51 endif