Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile.am « service « zabbix_server « tests - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e099e8ed8a22893992efe7b9e225881eb48de060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
if SERVER
SERVER_tests = \
	service_get_status \
	service_get_main_status \
	service_get_rule_status \
	service_get_rootcause_eventids


noinst_PROGRAMS = $(SERVER_tests)

COMMON_SRC_FILES = \
	../../zbxmocktest.h

COMMON_LIBS = \
	$(top_srcdir)/tests/libzbxmocktest.a \
	$(top_srcdir)/src/zabbix_server/service/libservice.a \
	$(top_srcdir)/src/libs/zbxdbcache/libzbxdbcache.a \
	$(top_srcdir)/src/libs/zbxavailability/libzbxavailability.a \
	$(top_srcdir)/src/zabbix_server/availability/libavailability.a \
	$(top_srcdir)/src/libs/zbxipcservice/libzbxipcservice.a \
	$(top_srcdir)/src/libs/zbxtrends/libzbxtrends.a \
	$(top_srcdir)/src/zabbix_server/libzbxserver.a \
	$(top_srcdir)/src/libs/zbxserver/libzbxserver.a \
	$(top_srcdir)/src/libs/zbxservice/libzbxservice.a \
	$(top_srcdir)/src/libs/zbxxml/libzbxxml.a \
	$(top_srcdir)/src/libs/zbxeval/libzbxeval.a \
	$(top_srcdir)/src/libs/zbxserialize/libzbxserialize.a \
	$(top_srcdir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \
	$(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo_httpmetrics.a \
	$(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo_http.a \
	$(top_srcdir)/src/libs/zbxsysinfo/common/libcommonsysinfo.a \
	$(top_srcdir)/src/libs/zbxsysinfo/simple/libsimplesysinfo.a \
	$(top_srcdir)/src/libs/zbxhistory/libzbxhistory.a \
	$(top_srcdir)/src/libs/zbxmodules/libzbxmodules.a \
	$(top_srcdir)/src/libs/zbxcompress/libzbxcompress.a \
	$(top_srcdir)/src/libs/zbxhttp/libzbxhttp.a \
	$(top_builddir)/src/libs/zbxaudit/libzbxaudit.a \
	$(top_srcdir)/src/libs/zbxexec/libzbxexec.a \
	$(top_srcdir)/src/libs/zbxshmem/libzbxshmem.a \
	$(top_srcdir)/src/libs/zbxdbhigh/libzbxdbhigh.a \
	$(top_srcdir)/src/libs/zbxdbschema/libzbxdbschema.a \
	$(top_srcdir)/src/libs/zbxdb/libzbxdb.a \
	$(top_srcdir)/src/libs/zbxjson/libzbxjson.a \
	$(top_srcdir)/src/libs/zbxvariant/libzbxvariant.a \
	$(top_srcdir)/src/libs/zbxregexp/libzbxregexp.a \
	$(top_srcdir)/src/libs/zbxcrypto/libzbxcrypto.a \
	$(top_srcdir)/src/libs/zbxhash/libzbxhash.a \
	$(top_srcdir)/src/libs/zbxvault/libzbxvault.a \
	$(top_builddir)/src/libs/zbxcyberark/libzbxcyberark.a \
	$(top_builddir)/src/libs/zbxhashicorp/libzbxhashicorp.a \
	$(top_builddir)/src/libs/zbxkvs/libzbxkvs.a \
	$(top_srcdir)/src/libs/zbxexpr/libzbxexpr.a \
	$(top_srcdir)/src/libs/zbxnix/libzbxnix.a \
	$(top_srcdir)/src/libs/zbxcomms/libzbxcomms.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/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)/tests/libzbxmockdata.a

SERVICE_WRAP_FUNCS = \
	-Wl,--wrap=DCget_nextid \
	-Wl,--wrap=zbx_add_event \
	-Wl,--wrap=zbx_process_events \
	-Wl,--wrap=zbx_clean_events \
	-Wl,--wrap=zbx_interface_availability_is_set

# service_get_rootcause_eventids

service_get_rootcause_eventids_SOURCES = \
	service_get_rootcause_eventids.c \
	mock_service.c \
	mock_service.h

service_get_rootcause_eventids_LDADD = $(COMMON_LIBS)
service_get_rootcause_eventids_LDADD += @SERVER_LIBS@
service_get_rootcause_eventids_LDFLAGS = @SERVER_LDFLAGS@

service_get_rootcause_eventids_CFLAGS = $(SERVICE_WRAP_FUNCS) \
	-I@top_srcdir@/tests \
	-I@top_srcdir@/src/zabbix_server/service

# service_get_status

service_get_status_SOURCES = \
	service_get_status.c \
	mock_service.c \
	mock_service.h

service_get_status_LDADD = $(COMMON_LIBS)
service_get_status_LDADD += @SERVER_LIBS@
service_get_status_LDFLAGS = @SERVER_LDFLAGS@

service_get_status_CFLAGS = $(SERVICE_WRAP_FUNCS) \
	-I@top_srcdir@/tests \
	-I@top_srcdir@/src/zabbix_server/service

# service_get_main_status

service_get_main_status_SOURCES = \
	service_get_main_status.c \
	mock_service.c \
	mock_service.h

service_get_main_status_LDADD = $(COMMON_LIBS)
service_get_main_status_LDADD += @SERVER_LIBS@
service_get_main_status_LDFLAGS = @SERVER_LDFLAGS@

service_get_main_status_CFLAGS = $(SERVICE_WRAP_FUNCS) \
	-I@top_srcdir@/tests \
	-I@top_srcdir@/src/zabbix_server/service

# service_get_rule_status

service_get_rule_status_SOURCES = \
	service_get_rule_status.c \
	mock_service.c \
	mock_service.h

service_get_rule_status_LDADD = $(COMMON_LIBS)
service_get_rule_status_LDADD += @SERVER_LIBS@
service_get_rule_status_LDFLAGS = @SERVER_LDFLAGS@

service_get_rule_status_CFLAGS = $(SERVICE_WRAP_FUNCS) \
	-I@top_srcdir@/tests \
	-I@top_srcdir@/src/zabbix_server/service

endif