-abook_SOURCES = abook.c database.c filter.c list.c misc.c \
- options.c edit.c ldif.c ui.c getname.c \
- getopt.c getopt1.c gettext.c abook_rl.c mbswidth.c \
- xmalloc.c \
- abook.h database.h filter.h list.h misc.h help.h \
- options.h edit.h ldif.h abook_curses.h ui.h getname.h \
- getopt.h gettext.h abook_rl.h mbswidth.h \
- xmalloc.h
+if ENABLE_VFORMAT_SUPPORT
+vformat_SOURCE = vcard.c vcard.h
+AM_LDFLAGS = -lvformat
+else
+vformat_SOURCE =
+endif
+
+abook_SOURCES = abook.c abook_rl.c database.c edit.c \
+ filter.c getname.c getopt.c getopt1.c gettext.c \
+ ldif.c list.c mbswidth.c misc.c options.c \
+ ui.c views.c xmalloc.c \
+ \
+ abook.h abook_curses.h abook_rl.h database.h edit.h \
+ filter.h getname.h getopt.h gettext.h \
+ help.h list.h ldif.h mbswidth.h misc.h options.h \
+ ui.h views.h xmalloc.h \
+ $(vformat_SOURCE)