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