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 \
|
2019-11-05 16:07:51 +08:00
|
|
|
-D__USE_MINGW_ANSI_STDIO=1 \
|
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 \
|
|
|
|
@SEARPC_CFLAGS@ \
|
|
|
|
@GLIB2_CFLAGS@ \
|
|
|
|
@MSVC_CFLAGS@ \
|
2016-01-13 14:08:32 +08:00
|
|
|
@CURL_CFLAGS@ \
|
|
|
|
@BPWRAPPER_CFLAGS@ \
|
2016-12-20 18:24:03 +08:00
|
|
|
@GNUTLS_CFLAGS@ \
|
2016-03-08 10:36:45 +08:00
|
|
|
-Wall
|
2012-07-27 19:47:42 +08:00
|
|
|
|
2023-05-13 17:43:07 +08:00
|
|
|
if MACOS
|
|
|
|
if COMPILE_UNIVERSAL
|
|
|
|
AM_CFLAGS += -arch x86_64 -arch arm64
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-12-16 19:35:23 +08:00
|
|
|
bin_PROGRAMS = seaf-daemon
|
2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
noinst_HEADERS = \
|
2018-06-26 12:11:35 +08:00
|
|
|
job-mgr.h \
|
|
|
|
timer.h \
|
|
|
|
cevent.h \
|
2012-07-27 19:47:42 +08:00
|
|
|
repo-mgr.h \
|
2018-06-26 12:11:35 +08:00
|
|
|
sync-mgr.h \
|
2012-07-27 19:47:42 +08:00
|
|
|
wt-monitor.h \
|
2018-06-26 12:11:35 +08:00
|
|
|
vc-utils.h seafile-session.h \
|
2012-07-27 19:47:42 +08:00
|
|
|
clone-mgr.h \
|
2014-06-09 17:17:23 +08:00
|
|
|
wt-monitor-structs.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 \
|
2019-07-31 13:57:20 +08:00
|
|
|
change-set.h \
|
2022-12-24 16:51:55 +08:00
|
|
|
seafile-error-impl.h \
|
|
|
|
notif-mgr.h
|
2012-07-27 19:47:42 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-07-20 17:50:41 +08:00
|
|
|
if MACOS
|
|
|
|
ws_src = notif-mgr.c
|
|
|
|
else
|
|
|
|
if COMPILE_LINUX_WS
|
|
|
|
ws_src = notif-mgr.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-07-27 19:47:42 +08:00
|
|
|
common_src = \
|
2018-06-26 12:11:35 +08:00
|
|
|
job-mgr.c timer.c cevent.c \
|
2014-08-22 17:56:25 +08:00
|
|
|
http-tx-mgr.c \
|
2018-06-26 12:11:35 +08:00
|
|
|
vc-utils.c \
|
|
|
|
sync-mgr.c seafile-session.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
../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 \
|
2019-07-31 13:57:20 +08:00
|
|
|
seafile-error.c \
|
2012-07-27 19:47:42 +08:00
|
|
|
../common/branch-mgr.c ../common/fs-mgr.c \
|
|
|
|
repo-mgr.c ../common/commit-mgr.c \
|
2018-06-26 12:11:35 +08:00
|
|
|
../common/log.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/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 \
|
2024-10-16 20:11:40 +08:00
|
|
|
../common/password-hash.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 \
|
2022-12-24 16:51:55 +08:00
|
|
|
change-set.c \
|
2023-07-20 17:50:41 +08:00
|
|
|
$(ws_src)
|
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 \
|
2016-12-20 18:24:03 +08:00
|
|
|
@GLIB2_LIBS@ @GOBJECT_LIBS@ @SSL_LIBS@ @GNUTLS_LIBS@ @NETTLE_LIBS@ \
|
2019-11-04 11:20:36 +08:00
|
|
|
@LIB_RT@ @LIB_UUID@ -lsqlite3 @LIBEVENT_LIBS@ @LIBEVENT_PTHREADS_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@ \
|
2022-12-24 16:51:55 +08:00
|
|
|
@SEARPC_LIBS@ @JANSSON_LIBS@ @LIB_MAC@ @ZLIB_LIBS@ @CURL_LIBS@ @BPWRAPPER_LIBS@ \
|
2024-10-16 20:11:40 +08:00
|
|
|
@WS_LIBS@ @ARGON2_LIBS@
|
2012-07-27 19:47:42 +08:00
|
|
|
|
2016-12-16 19:35:23 +08:00
|
|
|
seaf_daemon_LDFLAGS = @CONSOLE@
|