-ldl -lrt -lpthread
afb_lib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-fake' )
-afb_clib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-fake|afb-supervision' )
+afb_clib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-fake' )
afb_daemon_srcs = $(srcdir)/main-afb-daemon.c $(afb_lib_src)
afb_daemon_defs = '-DAFB_VERSION="cov"' -DAGL_DEVEL -DWITH_MONITORING_OPTION '-DBINDING_INSTALL_DIR="fake"'
afb-proto-ws.c
afb-session.c
afb-stub-ws.c
- afb-supervision.c
afb-systemd.c
afb-trace.c
afb-websock.c
ADD_DEFINITIONS(-DWITH_DBUS_TRANSPARENCY)
SET(AFB_LIB_SOURCES ${AFB_LIB_SOURCES} afb-api-dbus.c)
ENDIF()
+IF(INCLUDE_SUPERVISOR)
+ ADD_DEFINITIONS(-DWITH_SUPERVISION)
+ SET(AFB_LIB_SOURCES ${AFB_LIB_SOURCES} afb-supervision.c)
+ENDIF()
ADD_LIBRARY(afb-lib STATIC ${AFB_LIB_SOURCES})
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+#if defined(WITH_SUPERVISION)
+
#define _GNU_SOURCE
#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO
}
}
+#endif
#include "afb-hook.h"
#include "afb-debug.h"
#include "process-name.h"
-#include "afb-supervision.h"
+#if defined(WITH_SUPERVISION)
+# include "afb-supervision.h"
+#endif
/*
if SELF_PGROUP == 0 the launched command is the group leader
ERROR("failed to setup monitor");
goto error;
}
+#if defined(WITH_SUPERVISION)
if (afb_supervision_init() < 0) {
ERROR("failed to setup supervision");
goto error;
}
+#endif
/* install hooks */
if (main_config->tracereq)