Initialize the pin mutex when converting (-C).
[pwmd.git] / src / Makefile.am
blob5a60f77834522da5ee8c7165ad0d800c50805084
1 bin_PROGRAMS = pwmd
2 pwmd_SOURCES = pwmd.c pwmd.h xml.c xml.h pwmd_error.c pwmd_error.h commands.c \
3                commands.h common.h cache.c cache.h gettext.h misc.c misc.h \
4                status.c status.h lock.h
5 pwmd_LDFLAGS = @XML_LIBS@ @GLIB_LIBS@ @LIBGCRYPT_LIBS@ @GPG_ERROR_LIBS@ \
6                @PTH_LDFLAGS@ @PTH_LIBS@
7 pwmd_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @XML_CPPFLAGS@ \
8               @GLIB_CFLAGS@ @LIBGCRYPT_CFLAGS@ @GPG_ERROR_CFLAGS@ \
9               @LIBASSUAN_PTH_CFLAGS@ @PTH_CFLAGS@
11 # It's a static library ATM, and linking will fail because _SOURCES is at the
12 # end if the linker command line.
13 LIBS += @LIBASSUAN_PTH_LIBS@
15 if WITH_DEBUG
16 CPPFLAGS += -DDEBUG
17 endif
19 if MEM_DEBUG
20 CPPFLAGS += -DMEM_DEBUG
21 else
22 pwmd_SOURCES += mem.c mem.h
23 endif
25 if WITH_PINENTRY
26 pwmd_SOURCES += pinentry.c pinentry.h
27 endif
29 if WITH_QUALITY
30 pwmd_LDFLAGS += -lcrack
31 endif