blob: f14b87dd70caf7514ff4e08e94c2b3c4dbc69d94 (
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
135
136
137
138
139
140
|
## Process this file with automake to produce Makefile.in
SUBDIRS = \
alerter \
dbsyncer \
dbconfig \
discoverer \
housekeeper \
httppoller \
pinger \
poller \
snmptrapper \
timer \
trapper \
escalator \
proxypoller \
selfmon \
vmware \
taskmanager \
ipmi \
odbc \
scripts \
preprocessor \
availability \
lld \
reporter \
service
sbin_PROGRAMS = zabbix_server
noinst_LIBRARIES = libzbxserver.a
libzbxserver_a_SOURCES = \
actions.c \
actions.h \
events.c \
events.h \
operations.c \
operations.h \
postinit.c \
postinit.h
libzbxserver_a_CFLAGS = \
-DZABBIX_DAEMON \
-I$(top_srcdir)/src/libs/zbxdbcache
zabbix_server_SOURCES = server.c
zabbix_server_LDADD = \
alerter/libzbxalerter.a \
dbsyncer/libzbxdbsyncer.a \
dbconfig/libzbxdbconfig.a \
discoverer/libzbxdiscoverer.a \
pinger/libzbxpinger.a \
poller/libzbxpoller.a \
housekeeper/libzbxhousekeeper.a \
timer/libzbxtimer.a \
trapper/libzbxtrapper.a \
trapper/libzbxtrapper_server.a \
reporter/libzbxreporter.a \
snmptrapper/libzbxsnmptrapper.a \
httppoller/libzbxhttppoller.a \
escalator/libzbxescalator.a \
proxypoller/libzbxproxypoller.a \
selfmon/libzbxselfmon.a \
vmware/libzbxvmware.a \
taskmanager/libzbxtaskmanager.a \
odbc/libzbxodbc.a \
scripts/libzbxscripts.a \
preprocessor/libpreprocessor.a \
availability/libavailability.a \
service/libservice.a \
$(top_builddir)/src/libs/zbxembed/libzbxembed.a \
poller/libzbxpoller_server.a \
lld/libzbxlld.a \
libzbxserver.a \
$(top_builddir)/src/libs/zbxprometheus/libzbxprometheus.a \
$(top_builddir)/src/libs/zbxsysinfo/libzbxserversysinfo.a \
$(top_builddir)/src/libs/zbxsysinfo/common/libcommonsysinfo.a \
$(top_builddir)/src/libs/zbxsysinfo/simple/libsimplesysinfo.a \
$(top_builddir)/src/libs/zbxlog/libzbxlog.a \
$(top_builddir)/src/libs/zbxdbcache/libzbxdbcache.a \
$(top_builddir)/src/libs/zbxserver/libzbxserver.a \
$(top_builddir)/src/libs/zbxeval/libzbxeval.a \
$(top_builddir)/src/libs/zbxhistory/libzbxhistory.a \
$(top_builddir)/src/libs/zbxmemory/libzbxmemory.a \
$(top_builddir)/src/libs/zbxregexp/libzbxregexp.a \
$(top_builddir)/src/libs/zbxself/libzbxself.a \
$(top_builddir)/src/libs/zbxself/libzbxself_server.a \
$(top_builddir)/src/libs/zbxnix/libzbxnix.a \
$(top_builddir)/src/libs/zbxalgo/libzbxalgo.a \
$(top_builddir)/src/libs/zbxsys/libzbxsys.a \
$(top_builddir)/src/libs/zbxconf/libzbxconf.a \
$(top_builddir)/src/libs/zbxmedia/libzbxmedia.a \
$(top_builddir)/src/libs/zbxaudit/libzbxaudit.a \
$(top_builddir)/src/libs/zbxcommon/libzbxcommon.a \
$(top_builddir)/src/libs/zbxcrypto/libzbxcrypto.a \
$(top_builddir)/src/libs/zbxcomms/libzbxcomms.a \
$(top_builddir)/src/libs/zbxcommshigh/libzbxcommshigh.a \
$(top_builddir)/src/libs/zbxjson/libzbxjson.a \
$(top_builddir)/src/libs/zbxhttp/libzbxhttp.a \
$(top_builddir)/src/libs/zbxipcservice/libzbxipcservice.a \
$(top_builddir)/src/libs/zbxexec/libzbxexec.a \
$(top_builddir)/src/libs/zbxicmpping/libzbxicmpping.a \
$(top_builddir)/src/libs/zbxdbupgrade/libzbxdbupgrade.a \
$(top_builddir)/src/libs/zbxdbhigh/libzbxdbhigh.a \
$(top_builddir)/src/libs/zbxdb/libzbxdb.a \
$(top_builddir)/src/libs/zbxmodules/libzbxmodules.a \
$(top_builddir)/src/libs/zbxtasks/libzbxtasks.a \
$(top_builddir)/src/libs/zbxdiag/libzbxdiag_server.a \
$(top_builddir)/src/libs/zbxcompress/libzbxcompress.a \
$(top_builddir)/src/libs/zbxtrends/libzbxtrends.a \
$(top_builddir)/src/libs/zbxserver/libzbxserver_server.a \
$(top_builddir)/src/libs/zbxvault/libzbxvault.a \
$(top_builddir)/src/libs/zbxavailability/libzbxavailability.a \
$(top_builddir)/src/libs/zbxaudit/libzbxaudit.a \
$(top_builddir)/src/libs/zbxservice/libzbxservice.a
if HAVE_IPMI
zabbix_server_LDADD += ipmi/libipmi.a
endif
zabbix_server_LDADD += $(SERVER_LIBS)
zabbix_server_LDFLAGS = $(SERVER_LDFLAGS)
zabbix_server_CFLAGS = \
-DDEFAULT_SSL_CERT_LOCATION="\"$(CURL_SSL_CERT_LOCATION)\"" \
-DDEFAULT_SSL_KEY_LOCATION="\"$(CURL_SSL_KEY_LOCATION)\"" \
-DDEFAULT_CONFIG_FILE="\"$(SERVER_CONFIG_FILE)\"" \
-DDEFAULT_EXTERNAL_SCRIPTS_PATH="\"$(EXTERNAL_SCRIPTS_PATH)\"" \
-DDEFAULT_ALERT_SCRIPTS_PATH="\"$(ALERT_SCRIPTS_PATH)\"" \
-DDEFAULT_LOAD_MODULE_PATH="\"$(LOAD_MODULE_PATH)\""
install-data-hook:
$(MKDIR_P) "$(DESTDIR)$(SERVER_CONFIG_FILE).d"
$(MKDIR_P) "$(DESTDIR)$(EXTERNAL_SCRIPTS_PATH)"
$(MKDIR_P) "$(DESTDIR)$(ALERT_SCRIPTS_PATH)"
$(MKDIR_P) "$(DESTDIR)$(LOAD_MODULE_PATH)"
test -f "$(DESTDIR)$(SERVER_CONFIG_FILE)" || cp "../../conf/zabbix_server.conf" "$(DESTDIR)$(SERVER_CONFIG_FILE)"
|