198ca65b6e
this is better than using PassCmd, as it allows the keychain manager to identify the calling process and therefore use a selective whitelist. unlike in the now removed example, we use an "internet password" for the imap protocol, rather than a "generic password" - this seems more appropriate. based on a patch by Oliver Runge <oliver.runge@gmail.com>
29 lines
914 B
Makefile
29 lines
914 B
Makefile
mbsync_SOURCES = main.c sync.c config.c util.c socket.c driver.c drv_imap.c drv_maildir.c drv_proxy.c
|
|
mbsync_LDADD = $(DB_LIBS) $(SSL_LIBS) $(SOCK_LIBS) $(SASL_LIBS) $(Z_LIBS) $(KEYCHAIN_LIBS)
|
|
noinst_HEADERS = common.h config.h driver.h sync.h socket.h
|
|
|
|
drv_proxy.$(OBJEXT): drv_proxy.inc
|
|
drv_proxy.inc: $(srcdir)/driver.h $(srcdir)/drv_proxy.c $(srcdir)/drv_proxy_gen.pl
|
|
perl $(srcdir)/drv_proxy_gen.pl $(srcdir)/driver.h $(srcdir)/drv_proxy.c drv_proxy.inc
|
|
|
|
mdconvert_SOURCES = mdconvert.c
|
|
mdconvert_LDADD = $(DB_LIBS)
|
|
if with_mdconvert
|
|
mdconvert_prog = mdconvert
|
|
mdconvert_man = mdconvert.1
|
|
endif
|
|
|
|
EXTRA_PROGRAMS = tst_timers
|
|
|
|
tst_timers_SOURCES = tst_timers.c util.c
|
|
|
|
bin_PROGRAMS = mbsync $(mdconvert_prog)
|
|
man_MANS = mbsync.1 $(mdconvert_man)
|
|
|
|
exampledir = $(docdir)/examples
|
|
example_DATA = mbsyncrc.sample
|
|
|
|
EXTRA_DIST = drv_proxy_gen.pl run-tests.pl $(example_DATA) $(man_MANS)
|
|
|
|
CLEANFILES = drv_proxy.inc
|