6acd0891b1
but manual tests show that it works in principle, albeit with some loss of attributes in the server for calendars (time zone) - removed "disabled" configuration option, use "sync = none" instead - added selection of databases to synchronize via additional command line parameters Source: - Refactored code so that EvolutionSyncSource contains the client-library facing code and commong logging/error handling. EvolutionContactSource and EvolutionCalendarSource (for both calendars and tasks) can now indicate errors via exceptions in all functions. git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@62 15ad00c4-1369-45f4-8270-35d70d36bdcd
90 lines
2.6 KiB
Makefile
90 lines
2.6 KiB
Makefile
INCLUDES = @EPACKAGE_CFLAGS@ @SYNC4J_CFLAGS@
|
|
|
|
# Please remove '-Wno-return-type' when Evo fixes the warning in their headers.
|
|
AM_CFLAGS = -Wall -Werror -Wno-return-type
|
|
|
|
bin_PROGRAMS = syncevolution
|
|
bin_SCRIPTS = normalize_vcard
|
|
EXTRA_DIST = normalize_vcard.pl testVCard.vcf
|
|
|
|
DISTCLEANFILES = normalize_vcard
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
normalize_vcard : normalize_vcard.pl
|
|
cp $< $@
|
|
chmod u+x $@
|
|
|
|
CORE_SOURCES = \
|
|
EvolutionContactSource.h \
|
|
EvolutionCalendarSource.h \
|
|
EvolutionSmartPtr.h \
|
|
EvolutionSyncClient.h \
|
|
EvolutionSyncSource.h \
|
|
\
|
|
EvolutionSyncSource.cpp \
|
|
EvolutionSyncClient.cpp \
|
|
EvolutionCalendarSource.cpp \
|
|
EvolutionContactSource.cpp
|
|
CORE_LDADD = @EPACKAGE_LIBS@ @SYNC4J_LIBS@ @LIBS@
|
|
|
|
syncevolution_SOURCES = \
|
|
syncevolution.cpp \
|
|
$(CORE_SOURCES)
|
|
|
|
syncevolution_LDADD = $(CORE_LDADD)
|
|
|
|
# test suite - *not* declared as an obligatory check,
|
|
# because some of them are known to fail and thus
|
|
# prevent a successful "distcheck"
|
|
# TESTS = test
|
|
# check_PROGRAMS = test
|
|
EXTRA_PROGRAMS = test
|
|
test_SOURCES = \
|
|
TestMain.cpp \
|
|
TestEvolution.cpp \
|
|
$(CORE_SOURCES)
|
|
|
|
test_CFLAGS = `cppunit-config --cflags`
|
|
test_LDFLAGS = `cppunit-config --libs`
|
|
test_LDADD = $(CORE_LDADD)
|
|
|
|
# SYNC4J_SUBDIR specifies the directory where we compile
|
|
# the client library by invoking make there.
|
|
# Installing its source is done explicitly.
|
|
#
|
|
# The path may be empty!
|
|
SYNC4JSRC = @SYNC4JSRC@
|
|
SYNC4J_SUBDIR = @SYNC4J_SUBDIR@
|
|
BUILT_SOURCES = $(SYNC4J_SUBDIR)/all
|
|
|
|
clean distclean mostlyclean distdir maintainer-clean : % : $(SYNC4J_SUBDIR)/%
|
|
clean : testclean
|
|
|
|
test syncevolution : $(SYNC4J_SUBDIR)/src/libsync4j.la
|
|
|
|
testclean :
|
|
rm -f *.test.vcf *.log
|
|
|
|
$(SYNC4J_SUBDIR)/maintainer-clean $(SYNC4J_SUBDIR)/distclean :
|
|
rm -rf $(SYNC4J_SUBDIR) client-api
|
|
|
|
$(SYNC4J_SUBDIR)/distdir :
|
|
[ ! "$(SYNC4J_SUBDIR)" ] || ( cp -r client-api $(distdir) && ( find $(distdir)/client-api -name .libs -o -name "*.o" -o -name "*.lo" -o -name CVS -name autom4te.cache | xargs rm -rf ) )
|
|
|
|
# rule to satisfy automatic dependencies on header files
|
|
$(SYNC4J_SUBDIR)/%.h :
|
|
[ ! "$(SYNC4J_SUBDIR)" ] || ( cd $(SYNC4J_SUBDIR)/include && $(MAKE) all )
|
|
|
|
# default rule for building in $(SYNC4J_SUBDIR)
|
|
$(SYNC4J_SUBDIR)/% :
|
|
[ ! "$(SYNC4J_SUBDIR)" ] || ( cd ${@D} && $(MAKE) ${@F} )
|
|
|
|
# compare the local copy of the C++ client library against
|
|
# the files where it was copied from
|
|
client-api-diff :
|
|
diff -r -c -x CVS -x '.#*' -x '*~' $(SYNC4JSRC) client-api
|
|
|
|
# special target for testing with valgrind
|
|
valgrind : test
|
|
valgrind --leak-check=yes --suppressions=valgrind.supp ./test
|