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.

48 lines
1.2 KiB

1 year ago
if SERVER
SERVER_tests = \
zbx_iso8601_utc
endif
noinst_PROGRAMS = $(SERVER_tests)
if SERVER
COMMON_SRC_FILES = \
../../zbxmocktest.h
COMMON_LIB_FILES = \
$(top_srcdir)/tests/libzbxmockdata.a \
$(top_srcdir)/src/libs/zbxtime/libzbxtime.a \
$(top_srcdir)/src/libs/zbxnix/libzbxnix.a \
$(top_srcdir)/src/libs/zbxconf/libzbxconf.a \
$(top_srcdir)/src/libs/zbxalgo/libzbxalgo.a \
$(top_srcdir)/src/libs/zbxip/libzbxip.a \
$(top_srcdir)/src/libs/zbxstr/libzbxstr.a \
$(top_srcdir)/src/libs/zbxnum/libzbxnum.a \
$(top_srcdir)/src/libs/zbxcommon/libzbxcommon.a \
$(top_srcdir)/src/libs/zbxthreads/libzbxthreads.a \
$(top_srcdir)/tests/libzbxmocktest.a \
$(top_srcdir)/src/libs/zbxlog/libzbxlog.a \
$(top_srcdir)/src/libs/zbxmutexs/libzbxmutexs.a \
$(top_srcdir)/src/libs/zbxprof/libzbxprof.a \
$(top_srcdir)/tests/libzbxmockdata.a \
$(CMOCKA_LIBS) $(YAML_LIBS)
COMMON_COMPILER_FLAGS = -I@top_srcdir@/tests $(CMOCKA_CFLAGS) $(YAML_CFLAGS)
zbx_iso8601_utc_SOURCES = \
zbx_iso8601_utc.c \
$(COMMON_SRC_FILES)
zbx_iso8601_utc_LDADD = \
$(COMMON_LIB_FILES)
zbx_iso8601_utc_LDADD += @SERVER_LIBS@
zbx_iso8601_utc_LDFLAGS = @SERVER_LDFLAGS@ $(CMOCKA_LDFLAGS) $(YAML_LDFLAGS)
zbx_iso8601_utc_CFLAGS = $(COMMON_COMPILER_FLAGS)
endif