Fixed a FreeBSD compilation warning.
[pwmd.git] / src / Makefile.am
blobe00efb512e82a55d4b213e36440268e7a6d1c496
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.h
5 pwmd_LDFLAGS = @XML_LIBS@ @GLIB_LIBS@ @LIBGCRYPT_LIBS@ @GPG_ERROR_LIBS@
6 pwmd_CFLAGS = -DLOCALEDIR=\"${prefix}/share/locale\" @XML_CPPFLAGS@ @GLIB_CFLAGS@ \
7               @LIBGCRYPT_CFLAGS@ @LIBASSUAN_PTH_CFLAGS@ @GPG_ERROR_CFLAGS@
9 # It's a static library ATM, and linking will fail because _SOURCES is at the
10 # end if the linker command line.
11 LIBS += @LIBASSUAN_PTH_LIBS@
13 if WITH_DEBUG
14 CPPFLAGS += -DDEBUG
15 endif
17 if MEM_DEBUG
18 CPPFLAGS += -DMEM_DEBUG
19 else
20 pwmd_SOURCES += mem.c mem.h
21 endif
23 if WITH_PINENTRY
24 pwmd_SOURCES += pinentry.c pinentry.h
25 endif
27 if WITH_QUALITY
28 pwmd_LDFLAGS += -lcrack
29 endif