2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
AM_CFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
|
|
-DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
|
2014-04-03 15:08:27 +08:00
|
|
|
-DSEAFILE_CLIENT \
|
2012-07-27 19:47:42 +08:00
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
-I$(top_srcdir)/lib \
|
2012-09-22 16:57:29 +08:00
|
|
|
-I$(top_builddir)/lib \
|
2012-07-27 19:47:42 +08:00
|
|
|
-I$(top_srcdir)/common \
|
|
|
|
@CCNET_CFLAGS@ \
|
|
|
|
@SEARPC_CFLAGS@ \
|
|
|
|
@GLIB2_CFLAGS@ \
|
|
|
|
@MSVC_CFLAGS@ \
|
|
|
|
-Wall
|
|
|
|
|
|
|
|
bin_PROGRAMS =
|
|
|
|
if !SERVER_ONLY
|
|
|
|
bin_PROGRAMS += seaf-daemon
|
|
|
|
endif
|
|
|
|
|
|
|
|
proc_headers = $(addprefix processors/, \
|
|
|
|
check-tx-proc.h \
|
|
|
|
check-tx-v2-proc.h \
|
2013-02-05 19:10:02 +08:00
|
|
|
check-tx-v3-proc.h \
|
2012-07-27 19:47:42 +08:00
|
|
|
sendfs-proc.h \
|
|
|
|
getfs-proc.h \
|
|
|
|
sendbranch-proc.h \
|
|
|
|
getcs-proc.h \
|
|
|
|
sync-repo-proc.h \
|
|
|
|
check-tx-slave-proc.h \
|
|
|
|
getcommit-v2-proc.h \
|
|
|
|
sendcommit-v3-proc.h \
|
2014-04-30 08:57:44 +08:00
|
|
|
sendcommit-v3-new-proc.h \
|
2013-08-11 11:10:13 +08:00
|
|
|
getcs-v2-proc.h \
|
2014-01-08 10:19:03 +08:00
|
|
|
checkbl-proc.h \
|
|
|
|
getcommit-v3-proc.h \
|
2014-01-16 15:07:29 +08:00
|
|
|
checkff-proc.h \
|
|
|
|
getca-proc.h)
|
2012-07-27 19:47:42 +08:00
|
|
|
|
2012-09-22 16:57:29 +08:00
|
|
|
proc_headers += ../common/processors/objecttx-common.h \
|
|
|
|
../common/processors/blocktx-common.h \
|
|
|
|
../common/processors/blocktx-common-impl.h \
|
|
|
|
../common/processors/blocktx-common-impl-v2.h
|
|
|
|
|
2012-07-27 19:47:42 +08:00
|
|
|
noinst_HEADERS = \
|
|
|
|
repo-mgr.h \
|
|
|
|
transfer-mgr.h \
|
|
|
|
status.h sync-mgr.h \
|
|
|
|
wt-monitor.h \
|
|
|
|
merge.h merge-recursive.h vc-utils.h seafile-session.h \
|
|
|
|
clone-mgr.h \
|
2012-09-22 16:57:29 +08:00
|
|
|
share-mgr.h \
|
2014-06-09 17:17:23 +08:00
|
|
|
wt-monitor-structs.h \
|
2012-09-22 16:57:29 +08:00
|
|
|
../common/sync-repo-common.h \
|
2013-08-11 11:10:13 +08:00
|
|
|
block-tx-client.h \
|
2013-10-29 17:07:58 +08:00
|
|
|
seafile-config.h \
|
2014-03-03 10:09:57 +08:00
|
|
|
gc-core.h \
|
2014-06-16 20:09:15 +08:00
|
|
|
client-migrate.h \
|
2012-07-27 19:47:42 +08:00
|
|
|
$(proc_headers)
|
|
|
|
|
|
|
|
if LINUX
|
2014-06-09 17:17:23 +08:00
|
|
|
wt_monitor_src = wt-monitor.c wt-monitor-linux.c wt-monitor-structs.c
|
2012-07-27 19:47:42 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if WIN32
|
2014-06-09 17:17:23 +08:00
|
|
|
wt_monitor_src = wt-monitor.c wt-monitor-win32.c wt-monitor-structs.c
|
2012-07-27 19:47:42 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if MACOS
|
2014-06-09 17:17:23 +08:00
|
|
|
wt_monitor_src = wt-monitor.c wt-monitor-macos.c wt-monitor-structs.c
|
2013-06-18 22:31:03 +08:00
|
|
|
endif
|
|
|
|
|
2012-07-27 19:47:42 +08:00
|
|
|
common_src = \
|
|
|
|
transfer-mgr.c \
|
|
|
|
../common/unpack-trees.c ../common/seaf-tree-walk.c \
|
|
|
|
merge.c merge-recursive.c vc-utils.c \
|
|
|
|
status.c sync-mgr.c seafile-session.c \
|
|
|
|
../common/seafile-crypt.c ../common/diff-simple.c $(wt_monitor_src) \
|
2012-11-16 18:40:29 +08:00
|
|
|
clone-mgr.c \
|
2013-10-29 17:07:58 +08:00
|
|
|
seafile-config.c ../common/bitfield.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
../common/branch-mgr.c ../common/fs-mgr.c \
|
|
|
|
repo-mgr.c ../common/commit-mgr.c \
|
|
|
|
../common/log.c ../common/avl/avl.c ../common/object-list.c \
|
|
|
|
../common/rpc-service.c \
|
2014-03-03 10:09:57 +08:00
|
|
|
gc-core.c ../common/vc-common.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
../common/seaf-utils.c \
|
|
|
|
../common/obj-store.c \
|
|
|
|
../common/obj-backend-fs.c \
|
|
|
|
../common/block-mgr.c \
|
|
|
|
../common/block-backend.c \
|
|
|
|
../common/block-backend-fs.c \
|
|
|
|
../common/mq-mgr.c \
|
2013-08-11 11:10:13 +08:00
|
|
|
block-tx-client.c \
|
|
|
|
../common/block-tx-utils.c \
|
2014-06-16 20:09:15 +08:00
|
|
|
client-migrate.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
processors/check-tx-proc.c \
|
|
|
|
processors/check-tx-v2-proc.c \
|
2013-02-05 19:10:02 +08:00
|
|
|
processors/check-tx-v3-proc.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
processors/sendfs-proc.c \
|
|
|
|
processors/getfs-proc.c \
|
|
|
|
processors/sendbranch-proc.c \
|
|
|
|
processors/getcs-proc.c \
|
|
|
|
processors/sync-repo-proc.c \
|
|
|
|
processors/check-tx-slave-proc.c \
|
|
|
|
processors/getcommit-v2-proc.c \
|
|
|
|
processors/sendcommit-v3-proc.c \
|
2014-04-30 08:57:44 +08:00
|
|
|
processors/sendcommit-v3-new-proc.c \
|
2013-08-11 11:10:13 +08:00
|
|
|
processors/getcs-v2-proc.c \
|
2014-01-08 10:19:03 +08:00
|
|
|
processors/checkbl-proc.c \
|
|
|
|
processors/getcommit-v3-proc.c \
|
2014-01-16 15:07:29 +08:00
|
|
|
processors/checkff-proc.c \
|
|
|
|
processors/getca-proc.c
|
2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
seaf_daemon_SOURCES = seaf-daemon.c $(common_src)
|
|
|
|
|
2012-10-13 15:30:53 +08:00
|
|
|
seaf_daemon_LDADD = $(top_builddir)/lib/libseafile_common.la \
|
2012-07-27 19:47:42 +08:00
|
|
|
@LIB_INTL@ \
|
|
|
|
@GLIB2_LIBS@ @GOBJECT_LIBS@ -lssl @LIB_RT@ @LIB_UUID@ -lsqlite3 -levent \
|
|
|
|
$(top_builddir)/common/cdc/libcdc.la \
|
|
|
|
$(top_builddir)/common/index/libindex.la ${LIB_WS32} \
|
2014-04-30 16:41:46 +08:00
|
|
|
@SEARPC_LIBS@ @CCNET_LIBS@ @GNOME_KEYRING_LIBS@ @JANSSON_LIBS@ @LIB_MAC@ @ZLIB_LIBS@
|
2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
seaf_daemon_LDFLAGS = @STATIC_COMPILE@ @CONSOLE@
|
|
|
|
|
|
|
|
# seaf_tool_CFLAGS = $(AM_CFLAGS) -DSEAF_TOOL
|
|
|
|
|
|
|
|
# seaf_tool_SOURCES = seaf-tool.c $(common_src)
|
|
|
|
|
|
|
|
# seaf_tool_LDADD = $(seaf_daemon_LDADD)
|
|
|
|
|
|
|
|
# seaf_tool_LDFLAGS = @STATIC_COMPILE@ # @CONSOLE@
|
|
|
|
|
2012-09-22 16:57:29 +08:00
|
|
|
#check_PROGRAMS = seaf-test
|
|
|
|
|
|
|
|
#seaf_test_SOURCES = \
|
|
|
|
# seaf-test.c transfer-mgr.c \
|
|
|
|
# merge.c merge-recursive.c vc-utils.c \
|
|
|
|
# status.c sync-mgr.c seafile-session.c \
|
|
|
|
# ../common/seafile-crypt.c ../common/diff-simple.c ${wt_monitor_src} \
|
2012-11-16 18:40:29 +08:00
|
|
|
# ../common/seafile-config.c ../common/bitfield.c clone-mgr.c \
|
2012-09-22 16:57:29 +08:00
|
|
|
# ../common/branch-mgr.c ../common/fs-mgr.c \
|
|
|
|
# repo-mgr.c ../common/commit-mgr.c \
|
|
|
|
# ../common/log.c ../common/avl/avl.c ../common/object-list.c \
|
|
|
|
# ../common/rpc-service.c \
|
|
|
|
# ../common/gc.c ../common/vc-common.c ../common/seaf-utils.c \
|
|
|
|
# ../common/unpack-trees.c ../common/seaf-tree-walk.c \
|
|
|
|
# ../common/mq-mgr.c \
|
|
|
|
# ../common/obj-store.c \
|
|
|
|
# ../common/obj-backend-fs.c \
|
|
|
|
# ../common/block-mgr.c \
|
|
|
|
# ../common/block-backend.c \
|
|
|
|
# ../common/block-backend-fs.c \
|
|
|
|
# processors/check-tx-proc.c \
|
|
|
|
# processors/getcommit-proc.c \
|
|
|
|
# processors/sendcommit-proc.c \
|
|
|
|
# processors/sendfs-proc.c \
|
|
|
|
# processors/getfs-proc.c \
|
|
|
|
# processors/getblock-proc.c \
|
|
|
|
# processors/sendblock-proc.c \
|
|
|
|
# processors/sendbranch-proc.c \
|
|
|
|
# processors/getcs-proc.c \
|
|
|
|
# processors/notifysync-proc.c \
|
|
|
|
# processors/notifysync-slave-proc.c \
|
|
|
|
# processors/sync-repo-proc.c \
|
|
|
|
# processors/getcommit-v2-proc.c \
|
|
|
|
# processors/sendcommit-v2-proc.c
|
|
|
|
|
|
|
|
#seaf_test_CPPFLAGS = -DDEBUG_UNPACK_TREES -DSEAF_TEST
|
|
|
|
#seaf_test_LDADD = @CCNET_LIBS@ \
|
|
|
|
# @LIB_INTL@ \
|
|
|
|
# $(top_builddir)/lib/libseafile_common.la \
|
|
|
|
# @GLIB2_LIBS@ @GOBJECT_LIBS@ -lssl @LIB_RT@ @LIB_UUID@ -lsqlite3 -levent \
|
|
|
|
# $(top_builddir)/common/cdc/libcdc.la \
|
|
|
|
# $(top_builddir)/common/index/libindex.la ${LIB_WS32} \
|
|
|
|
# @SEARPC_LIBS@ @LIB_DIRWATCH@
|
|
|
|
|
|
|
|
#seaf_test_LDFLAGS = @STATIC_COMPILE@ @CONSOLE@
|
2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
#TESTS = seaf-test
|