2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
AM_CFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
|
|
-DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
|
|
|
|
-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
|
|
|
getcommit-proc.h \
|
|
|
|
sendcommit-proc.h \
|
|
|
|
sendfs-proc.h \
|
|
|
|
getfs-proc.h \
|
|
|
|
getblock-proc.h \
|
|
|
|
getblock-v2-proc.h \
|
|
|
|
sendblock-proc.h \
|
|
|
|
sendblock-v2-proc.h \
|
|
|
|
sendbranch-proc.h \
|
|
|
|
getcs-proc.h \
|
|
|
|
sync-repo-proc.h \
|
|
|
|
notifysync-proc.h \
|
|
|
|
notifysync-slave-proc.h \
|
|
|
|
sync-repo-slave-proc.h \
|
|
|
|
check-tx-slave-proc.h \
|
|
|
|
putcommit-proc.h \
|
|
|
|
putfs-proc.h \
|
|
|
|
getcommit-v2-proc.h \
|
|
|
|
sendcommit-v2-proc.h \
|
|
|
|
sendcommit-v3-proc.h \
|
|
|
|
getrepoemailtoken-proc.h )
|
|
|
|
|
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 \
|
2012-11-28 21:02:10 +08:00
|
|
|
gc.h \
|
2012-09-22 16:57:29 +08:00
|
|
|
wt-monitor-common.h \
|
|
|
|
../common/sync-repo-common.h \
|
2012-07-27 19:47:42 +08:00
|
|
|
$(proc_headers)
|
|
|
|
|
|
|
|
if LINUX
|
|
|
|
wt_monitor_src = wt-monitor-linux.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if WIN32
|
|
|
|
wt_monitor_src = wt-monitor-win32.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if MACOS
|
|
|
|
wt_monitor_src = wt-monitor-macos.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
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 \
|
2012-07-27 19:47:42 +08:00
|
|
|
../common/seafile-config.c ../common/bitfield.c \
|
|
|
|
../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 \
|
2012-11-28 21:02:10 +08:00
|
|
|
gc.c ../common/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 \
|
|
|
|
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/getcommit-proc.c \
|
|
|
|
processors/sendcommit-proc.c \
|
|
|
|
processors/sendfs-proc.c \
|
|
|
|
processors/getfs-proc.c \
|
|
|
|
processors/getblock-proc.c \
|
|
|
|
processors/getblock-v2-proc.c \
|
|
|
|
processors/sendblock-proc.c \
|
|
|
|
processors/sendblock-v2-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/sync-repo-slave-proc.c \
|
|
|
|
processors/check-tx-slave-proc.c \
|
|
|
|
processors/putcommit-proc.c \
|
|
|
|
processors/putfs-proc.c \
|
|
|
|
processors/getcommit-v2-proc.c \
|
|
|
|
processors/sendcommit-v2-proc.c \
|
|
|
|
processors/sendcommit-v3-proc.c \
|
|
|
|
processors/getrepoemailtoken-proc.c
|
|
|
|
|
|
|
|
|
|
|
|
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} \
|
2012-12-04 22:44:39 +08:00
|
|
|
@SEARPC_LIBS@ @CCNET_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
|