@@ -473,8 +473,13 @@ all::
473473#
474474# If your platform supports a built-in fsmonitor backend, set
475475# FSMONITOR_DAEMON_BACKEND to the "<name>" of the corresponding
476- # `compat/fsmonitor/fsmonitor-fs-listen-<name>.c` that implements the
477- # `fsmonitor_fs_listen__*()` routines.
476+ # `compat/fsmonitor/fsm-listen-<name>.c` that implements the
477+ # `fsm_listen__*()` routines.
478+ #
479+ # If your platform has os-specific ways to tell if a repo is incompatible with
480+ # fsmonitor (whether the hook or ipc daemon version), set FSMONITOR_OS_SETTINGS
481+ # to the "<name>" of the corresponding `compat/fsmonitor/fsm-settings-<name>.c`
482+ # that implements the `fsm_os_settings__*()` routines.
478483#
479484# Define DEVELOPER to enable more compiler warnings. Compiler version
480485# and family are auto detected, but could be overridden by defining
@@ -909,6 +914,7 @@ LIB_OBJS += fmt-merge-msg.o
909914LIB_OBJS += fsck.o
910915LIB_OBJS += fsmonitor.o
911916LIB_OBJS += fsmonitor-ipc.o
917+ LIB_OBJS += fsmonitor-settings.o
912918LIB_OBJS += gettext.o
913919LIB_OBJS += gpg-interface.o
914920LIB_OBJS += graph.o
@@ -1946,7 +1952,12 @@ endif
19461952
19471953ifdef FSMONITOR_DAEMON_BACKEND
19481954 COMPAT_CFLAGS += -DHAVE_FSMONITOR_DAEMON_BACKEND
1949- COMPAT_OBJS += compat/fsmonitor/fsmonitor-fs-listen-$(FSMONITOR_DAEMON_BACKEND).o
1955+ COMPAT_OBJS += compat/fsmonitor/fsm-listen-$(FSMONITOR_DAEMON_BACKEND).o
1956+ endif
1957+
1958+ ifdef FSMONITOR_OS_SETTINGS
1959+ COMPAT_CFLAGS += -DHAVE_FSMONITOR_OS_SETTINGS
1960+ COMPAT_OBJS += compat/fsmonitor/fsm-settings-$(FSMONITOR_OS_SETTINGS).o
19501961endif
19511962
19521963ifeq ($(TCLTK_PATH ) ,)
@@ -2833,6 +2844,9 @@ GIT-BUILD-OPTIONS: FORCE
28332844ifdef FSMONITOR_DAEMON_BACKEND
28342845 @echo FSMONITOR_DAEMON_BACKEND=\''$(subst ','\'',$(subst ','\'',$(FSMONITOR_DAEMON_BACKEND)))'\' >>$@+
28352846endif
2847+ ifdef FSMONITOR_OS_SETTINGS
2848+ @echo FSMONITOR_OS_SETTINGS=\''$(subst ','\'',$(subst ','\'',$(FSMONITOR_OS_SETTINGS)))'\' >>$@+
2849+ endif
28362850ifdef TEST_OUTPUT_DIRECTORY
28372851 @echo TEST_OUTPUT_DIRECTORY=\''$(subst ','\'',$(subst ','\'',$(TEST_OUTPUT_DIRECTORY)))'\' >>$@+
28382852endif
0 commit comments