You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.9 KiB
79 lines
2.9 KiB
if IPV6
|
|
noinst_PROGRAMS = zbx_tcp_check_allowed_peers
|
|
else
|
|
noinst_PROGRAMS = zbx_tcp_check_allowed_peers_ipv4
|
|
endif
|
|
|
|
COMMON_SRC_FILES = \
|
|
../../zbxmocktest.h
|
|
|
|
COMMON_LIB_FILES = \
|
|
$(top_srcdir)/tests/libzbxmockdata.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/libzbxagentsysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/$(ARCH)/libfunclistsysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/$(ARCH)/libspechostnamesysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/agent/libagentsysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/simple/libsimplesysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxsysinfo/$(ARCH)/libspecsysinfo.a \
|
|
$(top_srcdir)/src/libs/zbxregexp/libzbxregexp.a \
|
|
$(top_srcdir)/src/libs/zbxcomms/libzbxcomms.a \
|
|
$(top_srcdir)/src/libs/zbxcompress/libzbxcompress.a \
|
|
$(top_srcdir)/src/libs/zbxxml/libzbxxml.a \
|
|
$(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \
|
|
$(top_srcdir)/src/libs/zbxhash/libzbxhash.a \
|
|
$(top_srcdir)/src/libs/zbxjson/libzbxjson.a \
|
|
$(top_srcdir)/src/libs/zbxvariant/libzbxvariant.a \
|
|
$(top_srcdir)/src/libs/zbxexec/libzbxexec.a \
|
|
$(top_srcdir)/src/libs/zbxmodules/libzbxmodules.a \
|
|
$(top_srcdir)/src/libs/zbxregexp/libzbxregexp.a \
|
|
$(top_srcdir)/src/libs/zbxnum/libzbxnum.a \
|
|
$(top_srcdir)/src/libs/zbxstr/libzbxstr.a \
|
|
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
|
|
$(top_srcdir)/src/libs/zbxlog/libzbxlog.a \
|
|
$(top_srcdir)/src/libs/zbxconf/libzbxconf.a \
|
|
$(top_srcdir)/src/libs/zbxthreads/libzbxthreads.a \
|
|
$(top_srcdir)/src/libs/zbxtime/libzbxtime.a \
|
|
$(top_srcdir)/src/libs/zbxmutexs/libzbxmutexs.a \
|
|
$(top_srcdir)/src/libs/zbxprof/libzbxprof.a \
|
|
$(top_srcdir)/src/libs/zbxalgo/libzbxalgo.a \
|
|
$(top_srcdir)/src/libs/zbxip/libzbxip.a \
|
|
$(top_srcdir)/src/libs/zbxnix/libzbxnix.a \
|
|
$(top_srcdir)/src/libs/zbxstr/libzbxstr.a \
|
|
$(top_srcdir)/src/libs/zbxnum/libzbxnum.a \
|
|
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
|
|
$(top_srcdir)/tests/libzbxmocktest.a \
|
|
$(top_srcdir)/tests/libzbxmockdata.a \
|
|
$(CMOCKA_LIBS) $(YAML_LIBS)
|
|
|
|
COMMON_COMPILER_FLAGS = -DZABBIX_DAEMON -I@top_srcdir@/tests $(CMOCKA_CFLAGS) $(YAML_CFLAGS)
|
|
|
|
if IPV6
|
|
zbx_tcp_check_allowed_peers_SOURCES = \
|
|
zbx_tcp_check_allowed_peers.c \
|
|
$(COMMON_SRC_FILES)
|
|
|
|
zbx_tcp_check_allowed_peers_LDADD = \
|
|
$(COMMON_LIB_FILES) $(TLS_LIBS)
|
|
|
|
zbx_tcp_check_allowed_peers_LDADD += @AGENT_LIBS@
|
|
|
|
zbx_tcp_check_allowed_peers_LDFLAGS = @AGENT_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS) $(TLS_LDFLAGS)
|
|
|
|
zbx_tcp_check_allowed_peers_CFLAGS = $(COMMON_COMPILER_FLAGS) $(TLS_CFLAGS)
|
|
else
|
|
zbx_tcp_check_allowed_peers_ipv4_SOURCES = \
|
|
zbx_tcp_check_allowed_peers_ipv4.c \
|
|
$(COMMON_SRC_FILES)
|
|
|
|
zbx_tcp_check_allowed_peers_ipv4_LDADD = \
|
|
$(COMMON_LIB_FILES)
|
|
|
|
zbx_tcp_check_allowed_peers_ipv4_LDADD += @AGENT_LIBS@
|
|
|
|
zbx_tcp_check_allowed_peers_ipv4_LDFLAGS = @AGENT_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS)
|
|
|
|
zbx_tcp_check_allowed_peers_ipv4_CFLAGS = $(COMMON_COMPILER_FLAGS)
|
|
endif
|
|
|