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@ \
|
2016-01-13 14:08:32 +08:00
|
|
|
@CURL_CFLAGS@ \
|
|
|
|
@BPWRAPPER_CFLAGS@ \
|
2016-03-08 10:36:45 +08:00
|
|
|
-Wall
|
2012-07-27 19:47:42 +08:00
|
|
|
|
2016-01-13 14:08:32 +08:00
|
|
|
bin_PROGRAMS =
|
2012-07-27 19:47:42 +08:00
|
|
|
if !SERVER_ONLY
|
|
|
|
bin_PROGRAMS += seaf-daemon
|
|
|
|
endif
|
|
|
|
|
|
|
|
proc_headers = $(addprefix processors/, \
|
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 \
|
|
|
|
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 \
|
2014-06-26 16:27:36 +08:00
|
|
|
getca-proc.h \
|
|
|
|
check-protocol-proc.h \
|
|
|
|
sendcommit-v4-proc.h \
|
2014-07-08 20:22:32 +08:00
|
|
|
sendfs-v2-proc.h \
|
|
|
|
getfs-v2-proc.h)
|
2012-07-27 19:47:42 +08:00
|
|
|
|
2016-03-21 17:52:07 +08:00
|
|
|
proc_headers += ../common/processors/objecttx-common.h
|
2012-09-22 16:57:29 +08:00
|
|
|
|
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 \
|
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-08-22 17:56:25 +08:00
|
|
|
http-tx-mgr.h \
|
2015-04-29 14:43:15 +08:00
|
|
|
sync-status-tree.h \
|
2015-07-02 20:21:09 +08:00
|
|
|
filelock-mgr.h \
|
|
|
|
set-perm.h \
|
2015-07-21 12:00:00 +08:00
|
|
|
change-set.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 = \
|
2014-08-22 17:56:25 +08:00
|
|
|
http-tx-mgr.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
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 \
|
2014-07-30 17:47:35 +08:00
|
|
|
seafile-config.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
../common/branch-mgr.c ../common/fs-mgr.c \
|
|
|
|
repo-mgr.c ../common/commit-mgr.c \
|
2014-07-22 15:11:09 +08:00
|
|
|
../common/log.c ../common/object-list.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
../common/rpc-service.c \
|
2014-06-26 16:27:36 +08:00
|
|
|
../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 \
|
2016-02-26 17:48:06 +08:00
|
|
|
../common/curl-init.c \
|
2013-08-11 11:10:13 +08:00
|
|
|
block-tx-client.c \
|
|
|
|
../common/block-tx-utils.c \
|
2015-04-29 14:43:15 +08:00
|
|
|
sync-status-tree.c \
|
2015-07-02 20:21:09 +08:00
|
|
|
filelock-mgr.c \
|
|
|
|
set-perm.c \
|
2015-07-21 12:00:00 +08:00
|
|
|
change-set.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/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 \
|
2014-06-26 16:27:36 +08:00
|
|
|
processors/getca-proc.c \
|
|
|
|
processors/check-protocol-proc.c \
|
|
|
|
processors/sendcommit-v4-proc.c \
|
2014-07-08 20:22:32 +08:00
|
|
|
processors/sendfs-v2-proc.c \
|
|
|
|
processors/getfs-v2-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@ \
|
2014-09-11 18:55:20 +08:00
|
|
|
@GLIB2_LIBS@ @GOBJECT_LIBS@ @SSL_LIBS@ @LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ \
|
2012-07-27 19:47:42 +08:00
|
|
|
$(top_builddir)/common/cdc/libcdc.la \
|
2015-05-18 20:43:34 +08:00
|
|
|
$(top_builddir)/common/index/libindex.la @LIB_WS32@ @LIB_CRYPT32@ \
|
2016-01-13 14:08:32 +08:00
|
|
|
@SEARPC_LIBS@ @CCNET_LIBS@ @GNOME_KEYRING_LIBS@ @JANSSON_LIBS@ @LIB_MAC@ @ZLIB_LIBS@ @CURL_LIBS@ @BPWRAPPER_LIBS@
|
2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
seaf_daemon_LDFLAGS = @STATIC_COMPILE@ @CONSOLE@
|