add elasticsearch output module
[rsyslog.git] / Makefile.am
1 sbin_PROGRAMS =
2 pkglib_LTLIBRARIES = 
3
4 if ENABLE_INET
5 pkglib_LTLIBRARIES += lmtcpsrv.la lmtcpclt.la
6 #
7 #
8 # TCP (stream) server support
9 #
10 lmtcpsrv_la_SOURCES = \
11         tcps_sess.c \
12         tcps_sess.h \
13         tcpsrv.c \
14         tcpsrv.h
15 lmtcpsrv_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(RSRT_CFLAGS)
16 lmtcpsrv_la_LDFLAGS = -module -avoid-version
17 lmtcpsrv_la_LIBADD = 
18
19 #
20 # TCP (stream) client support
21 #
22 lmtcpclt_la_SOURCES = \
23         tcpclt.c \
24         tcpclt.h
25 lmtcpclt_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(RSRT_CFLAGS)
26 lmtcpclt_la_LDFLAGS = -module -avoid-version
27 lmtcpclt_la_LIBADD = 
28
29 endif # if ENABLE_INET
30
31 #
32 # gssapi support
33
34 if ENABLE_GSSAPI
35 pkglib_LTLIBRARIES += lmgssutil.la
36 lmgssutil_la_SOURCES = gss-misc.c gss-misc.h
37 lmgssutil_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(RSRT_CFLAGS)
38 lmgssutil_la_LDFLAGS = -module -avoid-version
39 lmgssutil_la_LIBADD = $(GSS_LIBS)
40 endif
41
42 #
43 # systemd support
44 #
45 if HAVE_SYSTEMD
46
47 nodist_systemdsystemunit_DATA = \
48         rsyslog.service
49
50 CLEANFILES = \
51         rsyslog.service
52
53 %.service: %.service.in
54         $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
55
56 endif
57
58 EXTRA_DIST = \
59         freebsd/rsyslogd \
60         slackware/rc.rsyslogd \
61         contrib/README \
62         rsyslog.conf \
63         COPYING.LESSER \
64         contrib/gnutls/ca.pem \
65         contrib/gnutls/cert.pem \
66         contrib/gnutls/key.pem \
67         rsyslog.service.in
68
69 SUBDIRS = doc runtime . plugins/immark plugins/imuxsock plugins/imtcp plugins/imudp plugins/omtesting
70
71 if ENABLE_RSYSLOGD
72 SUBDIRS += tools
73 endif
74
75 if ENABLE_IMKLOG
76 SUBDIRS += plugins/imklog
77 endif
78
79 if ENABLE_IMPSTATS
80 SUBDIRS += plugins/impstats
81 endif
82
83 if ENABLE_IMSOLARIS
84 SUBDIRS += plugins/imsolaris
85 endif
86
87 if ENABLE_GSSAPI
88 SUBDIRS += plugins/omgssapi plugins/imgssapi
89 endif
90
91 if ENABLE_RELP
92 SUBDIRS += plugins/omrelp plugins/imrelp
93 endif
94
95 if ENABLE_MYSQL
96 SUBDIRS += plugins/ommysql
97 endif
98
99 if ENABLE_OMLIBDBI
100 SUBDIRS += plugins/omlibdbi
101 endif
102
103 if ENABLE_PGSQL
104 SUBDIRS += plugins/ompgsql
105 endif
106
107 if ENABLE_SNMP
108 SUBDIRS += plugins/omsnmp
109 endif
110
111 if ENABLE_CUST1
112 SUBDIRS += plugins/cust1
113 endif
114
115 if ENABLE_SMCUSTBINDCDR
116 SUBDIRS += plugins/sm_cust_bindcdr
117 endif
118
119 if ENABLE_IMTEMPLATE
120 SUBDIRS += plugins/imtemplate
121 endif
122
123 if ENABLE_OMSTDOUT
124 SUBDIRS += plugins/omstdout
125 endif
126
127 if ENABLE_PMCISCONAMES
128 SUBDIRS += plugins/pmcisconames
129 endif
130
131 if ENABLE_PMAIXFORWARDEDFROM
132 SUBDIRS += plugins/pmaixforwardedfrom
133 endif
134
135 if ENABLE_PMSNARE
136 SUBDIRS += plugins/pmsnare
137 endif
138
139 if ENABLE_PMLASTMSG
140 SUBDIRS += plugins/pmlastmsg
141 endif
142
143 if ENABLE_PMRFC3164SD
144 SUBDIRS += plugins/pmrfc3164sd
145 endif
146
147 if ENABLE_OMRULESET
148 SUBDIRS += plugins/omruleset
149 endif
150
151 if ENABLE_OMDBALERTING
152 SUBDIRS += plugins/omdbalerting
153 endif
154
155 if ENABLE_OMUDPSPOOF
156 SUBDIRS += plugins/omudpspoof
157 endif
158
159 if ENABLE_OMUXSOCK
160 SUBDIRS += plugins/omuxsock
161 endif
162
163 if ENABLE_OMHDFS
164 SUBDIRS += plugins/omhdfs
165 endif
166
167 if ENABLE_OMTEMPLATE
168 SUBDIRS += plugins/omtemplate
169 endif
170
171 if ENABLE_ELASTICSEARCH
172 SUBDIRS += plugins/omelasticsearch
173 endif
174
175 if ENABLE_MMSNMPTRAPD
176 SUBDIRS += plugins/mmsnmptrapd
177 endif
178
179 if ENABLE_IMFILE
180 SUBDIRS += plugins/imfile
181 endif
182
183 if ENABLE_IMPTCP
184 SUBDIRS += plugins/imptcp
185 endif
186
187 if ENABLE_IMDIAG
188 SUBDIRS += plugins/imdiag
189 endif
190
191 if ENABLE_MAIL
192 SUBDIRS += plugins/ommail
193 endif
194
195 if ENABLE_OMPROG
196 SUBDIRS += plugins/omprog
197 endif
198
199 if ENABLE_RFC3195
200 SUBDIRS += plugins/im3195
201 endif
202
203 if ENABLE_ORACLE
204 SUBDIRS += plugins/omoracle
205 endif
206
207 if ENABLE_GUI
208 SUBDIRS += java
209 endif
210
211 # tests are added as last element, because tests may need different
212 # modules that need to be generated first
213 SUBDIRS += tests
214
215
216 # make sure "make distcheck" tries to build all modules. This means that
217 # a developer must always have an environment where every supporting library
218 # is available. If that is not the case, the respective configure option may
219 # temporarily be removed below. The intent behind forcing everthing to compile
220 # in a make distcheck is so that we detect code that accidently was not updated
221 # when some global update happened.
222 DISTCHECK_CONFIGURE_FLAGS=      --enable-gssapi_krb5 \
223                                 --enable-imfile \
224                                 --enable-snmp \
225                                 --enable-pgsql \
226                                 --enable-libdbi \
227                                 --enable-mysql \
228                                 --enable-relp \
229                                 --enable-rsyslogd \
230                                 --enable-mail \
231                                 --enable-klog \
232                                 --enable-diagtools \
233                                 --enable-gnutls \
234                                 --enable-omstdout \
235                                 --enable-pmlastmsg \
236                                 --enable-omruleset \
237                                 --enable-omprog \
238                                 --enable-imdiag \
239                                 --enable-imptcp \
240                                 --enable-omuxsock \
241                                 --enable-extended-tests \
242                                 --enable-impstats \
243                                 --enable-imptcp \
244                                 --enable-memcheck \
245                                 --enable-pmaixforwardedfrom \
246                                 --enable-pmcisconames \
247                                 --enable-pmsnare \
248                                 --enable-imtemplate \
249                                 --enable-omtemplate \
250                                 --enable-mmsnmptrapd \
251                                 --enable-elasticsearch \
252                                 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
253 ACLOCAL_AMFLAGS = -I m4