[tests] skip mod-secdownload HMAC-SHA1,HMAC-SHA256
[lighttpd.git] / src / Makefile.am
blob2dccaabbd3bc0d50a65f7bf91405eb19e31448a1
1 AM_CFLAGS = $(FAM_CFLAGS) $(LIBUNWIND_CFLAGS)
3 noinst_PROGRAMS=\
4         t/test_array \
5         t/test_buffer \
6         t/test_burl \
7         t/test_base64 \
8         t/test_configfile \
9         t/test_keyvalue \
10         t/test_mod_access \
11         t/test_mod_evhost \
12         t/test_mod_simple_vhost \
13         t/test_request
15 sbin_PROGRAMS=lighttpd lighttpd-angel
16 LEMON=$(top_builddir)/src/lemon$(BUILD_EXEEXT)
18 TESTS=\
19         t/test_array$(EXEEXT) \
20         t/test_buffer$(EXEEXT) \
21         t/test_burl$(EXEEXT) \
22         t/test_base64$(EXEEXT) \
23         t/test_configfile$(EXEEXT) \
24         t/test_keyvalue$(EXEEXT) \
25         t/test_mod_access$(EXEEXT) \
26         t/test_mod_evhost$(EXEEXT) \
27         t/test_mod_simple_vhost$(EXEEXT) \
28         t/test_request$(EXEEXT)
30 lemon$(BUILD_EXEEXT): lemon.c
31         $(AM_V_CC)$(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(srcdir)/lemon.c
33 lighttpd_angel_SOURCES=lighttpd-angel.c
35 .PHONY: versionstamp parsers
37 versionstamp:
38         @test -f versionstamp.h || touch versionstamp.h; \
39         REVISION=""; \
40         if test -d "$(top_srcdir)/.svn" -a -x "`which svnversion`"; then \
41                 REVISION="$$(LANG= LC_ALL=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)"; \
42                 if test "$$REVISION" = "exported"; then \
43                         REVISION=""; \
44                 fi; \
45         fi; \
46         if test -z "$$REVISION" -a -d "$(top_srcdir)/.git" -a -x "`which git`"; then \
47                 REVISION="$$(cd "$(top_srcdir)"; LANG= LC_ALL=C git describe --always 2>/dev/null || echo)"; \
48         fi; \
49         if test -n "$$REVISION"; then \
50                 echo "#define REPO_VERSION \"-devel-$$REVISION\"" > versionstamp.h.tmp; \
51         else \
52                 echo "#define REPO_VERSION \"\"" > versionstamp.h.tmp; \
53         fi; \
54         if ! diff versionstamp.h.tmp versionstamp.h >/dev/null 2>/dev/null; then \
55                 mv versionstamp.h.tmp versionstamp.h; \
56         else \
57                 rm versionstamp.h.tmp; \
58         fi
60 configparser.h: configparser.c
61 configparser.c: $(srcdir)/configparser.y $(srcdir)/lempar.c lemon$(BUILD_EXEEXT)
62         rm -f configparser.h
63         $(LEMON) -q $(srcdir)/configparser.y $(srcdir)/lempar.c
65 mod_ssi_exprparser.h: mod_ssi_exprparser.c
66 mod_ssi_exprparser.c: $(srcdir)/mod_ssi_exprparser.y $(srcdir)/lempar.c lemon$(BUILD_EXEEXT)
67         rm -f mod_ssi_exprparser.h
68         $(LEMON) -q $(srcdir)/mod_ssi_exprparser.y $(srcdir)/lempar.c
70 parsers: configparser.c mod_ssi_exprparser.c
72 BUILT_SOURCES = parsers versionstamp
73 MAINTAINERCLEANFILES = configparser.c configparser.h mod_ssi_exprparser.c mod_ssi_exprparser.h
74 CLEANFILES = versionstamp.h versionstamp.h.tmp lemon$(BUILD_EXEEXT)
76 common_src=base64.c buffer.c burl.c log.c \
77         http_header.c http_kv.c keyvalue.c chunk.c  \
78         http_chunk.c stream.c fdevent.c gw_backend.c \
79         stat_cache.c plugin.c joblist.c etag.c array.c \
80         data_string.c data_array.c \
81         data_integer.c algo_sha1.c md5.c \
82         vector.c \
83         fdevent_select.c fdevent_libev.c \
84         fdevent_poll.c fdevent_linux_sysepoll.c \
85         fdevent_solaris_devpoll.c fdevent_solaris_port.c \
86         fdevent_freebsd_kqueue.c \
87         data_config.c \
88         crc32.c \
89         connections-glue.c \
90         configfile-glue.c \
91         http-header-glue.c \
92         http_auth.c \
93         http_vhostdb.c \
94         rand.c \
95         request.c \
96         sock_addr.c \
97         splaytree.c \
98         safe_memclear.c
100 src = server.c response.c connections.c \
101         inet_ntop_cache.c \
102         network.c \
103         network_write.c \
104         configfile.c configparser.c
106 lib_LTLIBRARIES =
108 if NO_RDYNAMIC
109 # if the linker doesn't allow referencing symbols of the binary
110 # we have to put everything into a shared-lib and link it into
111 # everything
112 common_ldflags = -avoid-version -no-undefined
113 lib_LTLIBRARIES += liblightcomp.la
114 liblightcomp_la_SOURCES=$(common_src)
115 liblightcomp_la_CFLAGS=$(AM_CFLAGS) $(LIBEV_CFLAGS)
116 liblightcomp_la_LDFLAGS = $(common_ldflags)
117 liblightcomp_la_LIBADD = $(PCRE_LIB) $(CRYPTO_LIB) $(FAM_LIBS) $(LIBEV_LIBS) $(ATTR_LIB)
118 common_libadd = liblightcomp.la
119 else
120 src += $(common_src)
121 common_ldflags = -avoid-version
122 common_libadd =
123 endif
124 common_module_ldflags = -module -export-dynamic $(common_ldflags)
126 lib_LTLIBRARIES += mod_flv_streaming.la
127 mod_flv_streaming_la_SOURCES = mod_flv_streaming.c
128 mod_flv_streaming_la_LDFLAGS = $(common_module_ldflags)
129 mod_flv_streaming_la_LIBADD = $(common_libadd)
131 if BUILD_WITH_GEOIP
132 lib_LTLIBRARIES += mod_geoip.la
133 mod_geoip_la_SOURCES = mod_geoip.c
134 mod_geoip_la_LDFLAGS = $(common_module_ldflags)
135 mod_geoip_la_LIBADD = $(common_libadd) $(GEOIP_LIB)
136 endif
138 lib_LTLIBRARIES += mod_evasive.la
139 mod_evasive_la_SOURCES = mod_evasive.c
140 mod_evasive_la_LDFLAGS = $(common_module_ldflags)
141 mod_evasive_la_LIBADD = $(common_libadd)
143 lib_LTLIBRARIES += mod_webdav.la
144 mod_webdav_la_SOURCES = mod_webdav.c
145 mod_webdav_la_CFLAGS = $(AM_CFLAGS) $(XML_CFLAGS) $(SQLITE_CFLAGS) 
146 mod_webdav_la_LDFLAGS = $(common_module_ldflags)
147 mod_webdav_la_LIBADD = $(common_libadd) $(XML_LIBS) $(SQLITE_LIBS) $(UUID_LIBS) $(ELFTC_LIB)
149 if BUILD_WITH_LUA
150 lib_LTLIBRARIES += mod_magnet.la
151 mod_magnet_la_SOURCES = mod_magnet.c mod_magnet_cache.c
152 mod_magnet_la_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
153 mod_magnet_la_LDFLAGS = $(common_module_ldflags)
154 mod_magnet_la_LIBADD = $(common_libadd) $(LUA_LIBS) -lm
155 endif
157 if BUILD_WITH_LUA
158 lib_LTLIBRARIES += mod_cml.la
159 mod_cml_la_SOURCES = mod_cml.c mod_cml_lua.c mod_cml_funcs.c
160 mod_cml_la_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
161 mod_cml_la_LDFLAGS = $(common_module_ldflags)
162 mod_cml_la_LIBADD = $(MEMCACHED_LIB) $(common_libadd) $(LUA_LIBS) -lm
163 endif
165 if BUILD_MOD_TRIGGER_B4_DL
166 lib_LTLIBRARIES += mod_trigger_b4_dl.la
167 mod_trigger_b4_dl_la_SOURCES = mod_trigger_b4_dl.c
168 mod_trigger_b4_dl_la_LDFLAGS = $(common_module_ldflags)
169 mod_trigger_b4_dl_la_LIBADD = $(GDBM_LIB) $(MEMCACHED_LIB) $(PCRE_LIB) $(common_libadd)
170 endif
172 lib_LTLIBRARIES += mod_vhostdb.la
173 mod_vhostdb_la_SOURCES = mod_vhostdb.c
174 mod_vhostdb_la_LDFLAGS = $(common_module_ldflags)
175 mod_vhostdb_la_LIBADD = $(common_libadd)
177 if BUILD_WITH_LDAP
178 lib_LTLIBRARIES += mod_vhostdb_ldap.la
179 mod_vhostdb_ldap_la_SOURCES = mod_vhostdb_ldap.c
180 mod_vhostdb_ldap_la_LDFLAGS = $(common_module_ldflags)
181 mod_vhostdb_ldap_la_LIBADD = $(LDAP_LIB) $(LBER_LIB) $(common_libadd)
182 endif
184 if BUILD_WITH_MYSQL
185 lib_LTLIBRARIES += mod_mysql_vhost.la
186 mod_mysql_vhost_la_SOURCES = mod_mysql_vhost.c
187 mod_mysql_vhost_la_LDFLAGS = $(common_module_ldflags)
188 mod_mysql_vhost_la_LIBADD = $(MYSQL_LIBS) $(common_libadd)
189 mod_mysql_vhost_la_CPPFLAGS = $(MYSQL_CFLAGS)
190 endif
192 if BUILD_WITH_MYSQL
193 lib_LTLIBRARIES += mod_vhostdb_mysql.la
194 mod_vhostdb_mysql_la_SOURCES = mod_vhostdb_mysql.c
195 mod_vhostdb_mysql_la_LDFLAGS = $(common_module_ldflags)
196 mod_vhostdb_mysql_la_LIBADD = $(MYSQL_LIBS) $(common_libadd)
197 mod_vhostdb_mysql_la_CPPFLAGS = $(MYSQL_CFLAGS)
198 endif
200 if BUILD_WITH_PGSQL
201 lib_LTLIBRARIES += mod_vhostdb_pgsql.la
202 mod_vhostdb_pgsql_la_SOURCES = mod_vhostdb_pgsql.c
203 mod_vhostdb_pgsql_la_LDFLAGS = $(common_module_ldflags)
204 mod_vhostdb_pgsql_la_LIBADD = $(PGSQL_LIBS) $(common_libadd)
205 mod_vhostdb_pgsql_la_CPPFLAGS = $(PGSQL_INCLUDE)
206 endif
208 if BUILD_WITH_DBI
209 lib_LTLIBRARIES += mod_vhostdb_dbi.la
210 mod_vhostdb_dbi_la_SOURCES = mod_vhostdb_dbi.c
211 mod_vhostdb_dbi_la_LDFLAGS = $(common_module_ldflags)
212 mod_vhostdb_dbi_la_LIBADD = $(DBI_LIBS) $(common_libadd)
213 mod_vhostdb_dbi_la_CPPFLAGS = $(DBI_CFLAGS)
214 endif
216 lib_LTLIBRARIES += mod_cgi.la
217 mod_cgi_la_SOURCES = mod_cgi.c
218 mod_cgi_la_LDFLAGS = $(common_module_ldflags)
219 mod_cgi_la_LIBADD = $(common_libadd)
221 lib_LTLIBRARIES += mod_scgi.la
222 mod_scgi_la_SOURCES = mod_scgi.c
223 mod_scgi_la_LDFLAGS = $(common_module_ldflags)
224 mod_scgi_la_LIBADD = $(common_libadd)
226 lib_LTLIBRARIES += mod_staticfile.la
227 mod_staticfile_la_SOURCES = mod_staticfile.c
228 mod_staticfile_la_LDFLAGS = $(common_module_ldflags)
229 mod_staticfile_la_LIBADD = $(common_libadd)
231 lib_LTLIBRARIES += mod_dirlisting.la
232 mod_dirlisting_la_SOURCES = mod_dirlisting.c
233 mod_dirlisting_la_LDFLAGS = $(common_module_ldflags)
234 mod_dirlisting_la_LIBADD = $(common_libadd) $(PCRE_LIB)
236 lib_LTLIBRARIES += mod_indexfile.la
237 mod_indexfile_la_SOURCES = mod_indexfile.c
238 mod_indexfile_la_LDFLAGS = $(common_module_ldflags)
239 mod_indexfile_la_LIBADD = $(common_libadd)
241 lib_LTLIBRARIES += mod_setenv.la
242 mod_setenv_la_SOURCES = mod_setenv.c
243 mod_setenv_la_LDFLAGS = $(common_module_ldflags)
244 mod_setenv_la_LIBADD = $(common_libadd)
246 lib_LTLIBRARIES += mod_alias.la
247 mod_alias_la_SOURCES = mod_alias.c
248 mod_alias_la_LDFLAGS = $(common_module_ldflags)
249 mod_alias_la_LIBADD = $(common_libadd)
251 lib_LTLIBRARIES += mod_userdir.la
252 mod_userdir_la_SOURCES = mod_userdir.c
253 mod_userdir_la_LDFLAGS = $(common_module_ldflags)
254 mod_userdir_la_LIBADD = $(common_libadd)
256 lib_LTLIBRARIES += mod_rrdtool.la
257 mod_rrdtool_la_SOURCES = mod_rrdtool.c
258 mod_rrdtool_la_LDFLAGS = $(common_module_ldflags)
259 mod_rrdtool_la_LIBADD = $(common_libadd)
261 lib_LTLIBRARIES += mod_usertrack.la
262 mod_usertrack_la_SOURCES = mod_usertrack.c
263 mod_usertrack_la_LDFLAGS = $(common_module_ldflags)
264 mod_usertrack_la_LIBADD = $(common_libadd)
266 lib_LTLIBRARIES += mod_proxy.la
267 mod_proxy_la_SOURCES = mod_proxy.c
268 mod_proxy_la_LDFLAGS = $(common_module_ldflags)
269 mod_proxy_la_LIBADD = $(common_libadd)
271 lib_LTLIBRARIES += mod_sockproxy.la
272 mod_sockproxy_la_SOURCES = mod_sockproxy.c
273 mod_sockproxy_la_LDFLAGS = $(common_module_ldflags)
274 mod_sockproxy_la_LIBADD = $(common_libadd)
276 lib_LTLIBRARIES += mod_ssi.la
277 mod_ssi_la_SOURCES = mod_ssi_exprparser.c mod_ssi_expr.c mod_ssi.c
278 mod_ssi_la_LDFLAGS = $(common_module_ldflags)
279 mod_ssi_la_LIBADD = $(common_libadd)
281 lib_LTLIBRARIES += mod_secdownload.la
282 mod_secdownload_la_SOURCES = mod_secdownload.c
283 mod_secdownload_la_LDFLAGS = $(common_module_ldflags)
284 mod_secdownload_la_LIBADD = $(common_libadd) $(CRYPTO_LIB)
286 #lib_LTLIBRARIES += mod_httptls.la
287 #mod_httptls_la_SOURCES = mod_httptls.c
288 #mod_httptls_la_LDFLAGS = $(common_module_ldflags)
289 #mod_httptls_la_LIBADD = $(common_libadd)
291 lib_LTLIBRARIES += mod_expire.la
292 mod_expire_la_SOURCES = mod_expire.c
293 mod_expire_la_LDFLAGS = $(common_module_ldflags)
294 mod_expire_la_LIBADD = $(common_libadd)
296 lib_LTLIBRARIES += mod_evhost.la
297 mod_evhost_la_SOURCES = mod_evhost.c
298 mod_evhost_la_LDFLAGS = $(common_module_ldflags)
299 mod_evhost_la_LIBADD = $(common_libadd)
301 lib_LTLIBRARIES += mod_simple_vhost.la
302 mod_simple_vhost_la_SOURCES = mod_simple_vhost.c
303 mod_simple_vhost_la_LDFLAGS = $(common_module_ldflags)
304 mod_simple_vhost_la_LIBADD = $(common_libadd)
306 lib_LTLIBRARIES += mod_fastcgi.la
307 mod_fastcgi_la_SOURCES = mod_fastcgi.c
308 mod_fastcgi_la_LDFLAGS = $(common_module_ldflags)
309 mod_fastcgi_la_LIBADD = $(common_libadd)
311 lib_LTLIBRARIES += mod_extforward.la
312 mod_extforward_la_SOURCES = mod_extforward.c
313 mod_extforward_la_LDFLAGS = $(common_module_ldflags)
314 mod_extforward_la_LIBADD = $(common_libadd)
316 lib_LTLIBRARIES += mod_access.la
317 mod_access_la_SOURCES = mod_access.c
318 mod_access_la_LDFLAGS = $(common_module_ldflags)
319 mod_access_la_LIBADD = $(common_libadd)
321 lib_LTLIBRARIES += mod_compress.la
322 mod_compress_la_SOURCES = mod_compress.c
323 mod_compress_la_LDFLAGS = $(common_module_ldflags)
324 mod_compress_la_LIBADD = $(Z_LIB) $(BZ_LIB) $(common_libadd)
326 lib_LTLIBRARIES += mod_deflate.la
327 mod_deflate_la_SOURCES = mod_deflate.c
328 mod_deflate_la_LDFLAGS = $(common_module_ldflags)
329 mod_deflate_la_LIBADD = $(Z_LIB) $(BZ_LIB) $(common_libadd)
331 lib_LTLIBRARIES += mod_auth.la
332 mod_auth_la_SOURCES = mod_auth.c
333 mod_auth_la_LDFLAGS = $(common_module_ldflags)
334 mod_auth_la_LIBADD = $(CRYPTO_LIB) $(common_libadd)
336 lib_LTLIBRARIES += mod_authn_file.la
337 mod_authn_file_la_SOURCES = mod_authn_file.c
338 mod_authn_file_la_LDFLAGS = $(common_module_ldflags)
339 mod_authn_file_la_LIBADD = $(CRYPT_LIB) $(CRYPTO_LIB) $(common_libadd)
341 if BUILD_WITH_KRB5
342 lib_LTLIBRARIES += mod_authn_gssapi.la
343 mod_authn_gssapi_la_SOURCES = mod_authn_gssapi.c
344 mod_authn_gssapi_la_LDFLAGS = $(common_module_ldflags)
345 mod_authn_gssapi_la_LIBADD = $(KRB5_LIB) $(common_libadd)
346 endif
348 if BUILD_WITH_LDAP
349 lib_LTLIBRARIES += mod_authn_ldap.la
350 mod_authn_ldap_la_SOURCES = mod_authn_ldap.c
351 mod_authn_ldap_la_LDFLAGS = $(common_module_ldflags)
352 mod_authn_ldap_la_LIBADD = $(LDAP_LIB) $(LBER_LIB) $(common_libadd)
353 endif
355 if BUILD_WITH_PAM
356 lib_LTLIBRARIES += mod_authn_pam.la
357 mod_authn_pam_la_SOURCES = mod_authn_pam.c
358 mod_authn_pam_la_LDFLAGS = $(common_module_ldflags)
359 mod_authn_pam_la_LIBADD = $(PAM_LIB) $(common_libadd)
360 endif
362 if BUILD_WITH_MYSQL
363 lib_LTLIBRARIES += mod_authn_mysql.la
364 mod_authn_mysql_la_SOURCES = mod_authn_mysql.c
365 mod_authn_mysql_la_LDFLAGS = $(common_module_ldflags)
366 mod_authn_mysql_la_LIBADD = $(CRYPT_LIB) $(MYSQL_LIBS) $(common_libadd)
367 mod_authn_mysql_la_CPPFLAGS = $(MYSQL_CFLAGS)
368 endif
370 if BUILD_WITH_SASL
371 lib_LTLIBRARIES += mod_authn_sasl.la
372 mod_authn_sasl_la_SOURCES = mod_authn_sasl.c
373 mod_authn_sasl_la_LDFLAGS = $(common_module_ldflags)
374 mod_authn_sasl_la_LIBADD = $(SASL_LIBS) $(common_libadd)
375 mod_authn_sasl_la_CPPFLAGS = $(SASL_CFLAGS)
376 endif
378 if BUILD_WITH_OPENSSL
379 lib_LTLIBRARIES += mod_openssl.la
380 mod_openssl_la_SOURCES = mod_openssl.c
381 mod_openssl_la_LDFLAGS = $(common_module_ldflags)
382 mod_openssl_la_LIBADD = $(SSL_LIB) $(common_libadd)
383 endif
385 lib_LTLIBRARIES += mod_rewrite.la
386 mod_rewrite_la_SOURCES = mod_rewrite.c
387 mod_rewrite_la_LDFLAGS = $(common_module_ldflags)
388 mod_rewrite_la_LIBADD = $(PCRE_LIB) $(common_libadd)
390 lib_LTLIBRARIES += mod_redirect.la
391 mod_redirect_la_SOURCES = mod_redirect.c
392 mod_redirect_la_LDFLAGS = $(common_module_ldflags)
393 mod_redirect_la_LIBADD = $(PCRE_LIB) $(common_libadd)
395 lib_LTLIBRARIES += mod_status.la
396 mod_status_la_SOURCES = mod_status.c
397 mod_status_la_LDFLAGS = $(common_module_ldflags)
398 mod_status_la_LIBADD = $(common_libadd)
400 lib_LTLIBRARIES += mod_accesslog.la
401 mod_accesslog_la_SOURCES = mod_accesslog.c
402 mod_accesslog_la_LDFLAGS = $(common_module_ldflags)
403 mod_accesslog_la_LIBADD = $(common_libadd)
405 lib_LTLIBRARIES += mod_uploadprogress.la
406 mod_uploadprogress_la_SOURCES = mod_uploadprogress.c
407 mod_uploadprogress_la_LDFLAGS = $(common_module_ldflags)
408 mod_uploadprogress_la_LIBADD = $(common_libadd)
410 lib_LTLIBRARIES += mod_wstunnel.la
411 mod_wstunnel_la_SOURCES = mod_wstunnel.c
412 mod_wstunnel_la_LDFLAGS = $(common_module_ldflags)
413 mod_wstunnel_la_LIBADD = $(common_libadd) $(CRYPTO_LIB)
416 hdr = base64.h buffer.h burl.h network.h log.h http_kv.h keyvalue.h \
417         response.h request.h fastcgi.h chunk.h \
418         first.h settings.h http_chunk.h \
419         algo_sha1.h md5.h http_auth.h http_header.h http_vhostdb.h stream.h \
420         fdevent.h gw_backend.h connections.h base.h base_decls.h stat_cache.h \
421         plugin.h \
422         etag.h joblist.h array.h vector.h crc32.h \
423         fdevent_impl.h network_write.h configfile.h \
424         mod_ssi.h mod_ssi_expr.h inet_ntop_cache.h \
425         configparser.h mod_ssi_exprparser.h \
426         rand.h \
427         sys-crypto.h sys-endian.h sys-mmap.h sys-socket.h sys-strings.h \
428         mod_cml.h mod_cml_funcs.h \
429         safe_memclear.h sock_addr.h splaytree.h status_counter.h \
430         mod_magnet_cache.h
433 DEFS= @DEFS@ -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR="\"$(libdir)\"" -DSBIN_DIR="\"$(sbindir)\""
436 if LIGHTTPD_STATIC
438 ## static lighttpd server (used in conjunction with -DLIGHTTPD_STATIC)
439 ## (order is not important)
440 lighttpd_SOURCES = \
441   $(src) \
442   mod_access.c \
443   mod_accesslog.c \
444   mod_alias.c \
445   mod_auth.c \
446   mod_authn_file.c \
447   mod_cgi.c \
448   mod_compress.c \
449   mod_deflate.c \
450   mod_dirlisting.c \
451   mod_evasive.c \
452   mod_expire.c \
453   mod_extforward.c \
454   mod_fastcgi.c \
455   mod_flv_streaming.c \
456   mod_indexfile.c \
457   mod_proxy.c \
458   mod_redirect.c \
459   mod_rewrite.c \
460   mod_rrdtool.c \
461   mod_scgi.c \
462   mod_secdownload.c \
463   mod_setenv.c \
464   mod_simple_vhost.c \
465   mod_ssi_exprparser.c mod_ssi_expr.c mod_ssi.c \
466   mod_staticfile.c \
467   mod_status.c \
468   mod_uploadprogress.c \
469   mod_userdir.c \
470   mod_usertrack.c \
471   mod_vhostdb.c \
472   mod_webdav.c
473 lighttpd_CPPFLAGS = \
474   -DLIGHTTPD_STATIC \
475   $(XML_CFLAGS) $(SQLITE_CFLAGS) \
476   $(FAM_CFLAGS) $(LIBEV_CFLAGS) $(LIBUNWIND_CFLAGS)
477 lighttpd_LDADD = \
478   $(common_libadd) \
479   $(CRYPT_LIB) $(CRYPTO_LIB) \
480   $(XML_LIBS) $(SQLITE_LIBS) $(UUID_LIBS) $(ELFTC_LIB) \
481   $(PCRE_LIB) $(Z_LIB) $(BZ_LIB) $(DL_LIB) $(SENDFILE_LIB) $(ATTR_LIB) \
482   $(FAM_LIBS) $(LIBEV_LIBS) $(LIBUNWIND_LIBS)
483 lighttpd_LDFLAGS = -export-dynamic
485 if BUILD_WITH_GEOIP
486 lighttpd_SOURCES += mod_geoip.c
487 lighttpd_LDADD += $(GEOIP_LIB)
488 endif
489 if BUILD_WITH_LUA
490 lighttpd_SOURCES += mod_cml.c mod_cml_lua.c mod_cml_funcs.c \
491                     mod_magnet.c mod_magnet_cache.c
492 lighttpd_CPPFLAGS += $(LUA_CFLAGS)
493 lighttpd_LDADD += $(LUA_LIBS) -lm
494 endif
495 if BUILD_WITH_KRB5
496 lighttpd_SOURCES += mod_authn_gssapi.c
497 lighttpd_LDADD += $(KRB5_LIB)
498 endif
499 if BUILD_WITH_LDAP
500 lighttpd_SOURCES += mod_authn_ldap.c mod_vhostdb_ldap.c
501 lighttpd_LDADD += $(LDAP_LIB) $(LBER_LIB)
502 endif
503 if BUILD_WITH_PAM
504 lighttpd_SOURCES += mod_authn_pam.c
505 lighttpd_LDADD += $(PAM_LIB)
506 endif
507 if BUILD_WITH_MYSQL
508 lighttpd_SOURCES += mod_authn_mysql.c mod_mysql_vhost.c mod_vhostdb_mysql.c
509 lighttpd_CPPFLAGS += $(MYSQL_CFLAGS)
510 lighttpd_LDADD += $(MYSQL_LIBS)
511 endif
512 if BUILD_WITH_PGSQL
513 lighttpd_SOURCES += mod_vhostdb_pgsql.c
514 lighttpd_CPPFLAGS += $(PGSQL_INCLUDE)
515 lighttpd_LDADD += $(PGSQL_LIBS)
516 endif
517 if BUILD_WITH_DBI
518 lighttpd_SOURCES += mod_vhostdb_dbi.c
519 lighttpd_CPPFLAGS += $(DBI_CFLAGS)
520 lighttpd_LDADD += $(DBI_LIBS)
521 endif
522 if BUILD_WITH_OPENSSL
523 lighttpd_SOURCES += mod_openssl.c
524 lighttpd_LDADD += $(SSL_LIB)
525 endif
526 if BUILD_WITH_MEMCACHED
527 lighttpd_CPPFLAGS += $(MEMCACHED_CFLAGS)
528 lighttpd_LDADD += $(MEMCACHED_LIB)
529 endif
530 if BUILD_WITH_GDBM
531 lighttpd_LDADD += $(GDBM_LIB)
532 endif
533 if BUILD_MOD_TRIGGER_B4_DL
534 lighttpd_SOURCES += mod_trigger_b4_dl.c
535 endif
537 else
539 ## default lighttpd server
540 lighttpd_SOURCES = $(src)
541 lighttpd_CPPFLAGS = $(FAM_CFLAGS) $(LIBEV_CFLAGS)
542 lighttpd_LDADD = $(PCRE_LIB) $(DL_LIB) $(SENDFILE_LIB) $(ATTR_LIB) $(common_libadd) $(CRYPTO_LIB) $(FAM_LIBS) $(LIBEV_LIBS) $(LIBUNWIND_LIBS)
543 lighttpd_LDFLAGS = -export-dynamic
545 endif
547 t_test_array_SOURCES = t/test_array.c array.c data_array.c data_integer.c data_string.c buffer.c
548 t_test_array_LDADD = $(LIBUNWIND_LIBS)
550 t_test_buffer_SOURCES = t/test_buffer.c buffer.c
551 t_test_buffer_LDADD = $(LIBUNWIND_LIBS)
553 t_test_base64_SOURCES = t/test_base64.c base64.c buffer.c
554 t_test_base64_LDADD = $(LIBUNWIND_LIBS)
556 t_test_burl_SOURCES = t/test_burl.c burl.c buffer.c base64.c
557 t_test_burl_LDADD = $(LIBUNWIND_LIBS)
559 t_test_configfile_SOURCES = t/test_configfile.c buffer.c array.c data_config.c data_integer.c data_string.c http_header.c http_kv.c vector.c log.c sock_addr.c
560 t_test_configfile_LDADD = $(PCRE_LIB) $(LIBUNWIND_LIBS)
562 t_test_keyvalue_SOURCES = t/test_keyvalue.c burl.c buffer.c base64.c array.c data_integer.c data_string.c log.c
563 t_test_keyvalue_LDADD = $(PCRE_LIB) $(LIBUNWIND_LIBS)
565 t_test_mod_access_SOURCES = t/test_mod_access.c configfile-glue.c buffer.c array.c data_config.c data_integer.c data_string.c http_header.c http_kv.c vector.c log.c sock_addr.c
566 t_test_mod_access_LDADD = $(PCRE_LIB) $(LIBUNWIND_LIBS)
568 t_test_mod_evhost_SOURCES = t/test_mod_evhost.c configfile-glue.c buffer.c array.c data_config.c data_integer.c data_string.c http_header.c http_kv.c vector.c log.c sock_addr.c
569 t_test_mod_evhost_LDADD = $(PCRE_LIB) $(LIBUNWIND_LIBS)
571 t_test_mod_simple_vhost_SOURCES = t/test_mod_simple_vhost.c configfile-glue.c buffer.c array.c data_config.c data_integer.c data_string.c http_header.c http_kv.c vector.c log.c sock_addr.c
572 t_test_mod_simple_vhost_LDADD = $(PCRE_LIB) $(LIBUNWIND_LIBS)
574 t_test_request_SOURCES = t/test_request.c request.c buffer.c array.c data_integer.c data_string.c http_header.c http_kv.c log.c sock_addr.c
575 t_test_request_LDADD = $(LIBUNWIND_LIBS)
577 noinst_HEADERS   = $(hdr)
578 EXTRA_DIST = \
579         mod_skeleton.c \
580         configparser.y \
581         mod_ssi_exprparser.y \
582         lemon.c \
583         lempar.c \
584         SConscript \
585         CMakeLists.txt config.h.cmake \
586         meson.build