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_deflate.la 331mod_deflate_la_SOURCES = mod_deflate.c 332mod_deflate_la_LDFLAGS = $(BROTLI_CFLAGS) $(common_module_ldflags) 333mod_deflate_la_LIBADD = $(Z_LIB) $(BZ_LIB) $(BROTLI_LIBS) $(common_libadd) 334 335lib_LTLIBRARIES += mod_auth.la 336mod_auth_la_SOURCES = mod_auth.c 337mod_auth_la_LDFLAGS = $(common_module_ldflags) 338mod_auth_la_LIBADD = $(CRYPTO_LIB) $(common_libadd) 339 340lib_LTLIBRARIES += mod_authn_file.la 341mod_authn_file_la_SOURCES = mod_authn_file.c 342mod_authn_file_la_LDFLAGS = $(common_module_ldflags) 343mod_authn_file_la_LIBADD = $(CRYPT_LIB) $(CRYPTO_LIB) $(common_libadd) 344 345if BUILD_WITH_DBI 346lib_LTLIBRARIES += mod_authn_dbi.la 347mod_authn_dbi_la_SOURCES = mod_authn_dbi.c 348mod_authn_dbi_la_LDFLAGS = $(common_module_ldflags) 349mod_authn_dbi_la_LIBADD = $(CRYPT_LIB) $(DBI_LIBS) $(common_libadd) 350mod_authn_dbi_la_CPPFLAGS = $(DBI_CFLAGS) 351endif 352 353if BUILD_WITH_KRB5 354lib_LTLIBRARIES += mod_authn_gssapi.la 355mod_authn_gssapi_la_SOURCES = mod_authn_gssapi.c 356mod_authn_gssapi_la_LDFLAGS = $(common_module_ldflags) 357mod_authn_gssapi_la_LIBADD = $(KRB5_LIB) $(common_libadd) 358endif 359 360if BUILD_WITH_LDAP 361lib_LTLIBRARIES += mod_authn_ldap.la 362mod_authn_ldap_la_SOURCES = mod_authn_ldap.c 363mod_authn_ldap_la_LDFLAGS = $(common_module_ldflags) 364mod_authn_ldap_la_LIBADD = $(LDAP_LIB) $(LBER_LIB) $(common_libadd) 365endif 366 367if BUILD_WITH_PAM 368lib_LTLIBRARIES += mod_authn_pam.la 369mod_authn_pam_la_SOURCES = mod_authn_pam.c 370mod_authn_pam_la_LDFLAGS = $(common_module_ldflags) 371mod_authn_pam_la_LIBADD = $(PAM_LIB) $(common_libadd) 372endif 373 374if BUILD_WITH_MYSQL 375lib_LTLIBRARIES += mod_authn_mysql.la 376mod_authn_mysql_la_SOURCES = mod_authn_mysql.c 377mod_authn_mysql_la_LDFLAGS = $(common_module_ldflags) 378mod_authn_mysql_la_LIBADD = $(CRYPT_LIB) $(MYSQL_LIBS) $(common_libadd) 379mod_authn_mysql_la_CPPFLAGS = $(MYSQL_CFLAGS) 380endif 381 382if BUILD_WITH_SASL 383lib_LTLIBRARIES += mod_authn_sasl.la 384mod_authn_sasl_la_SOURCES = mod_authn_sasl.c 385mod_authn_sasl_la_LDFLAGS = $(common_module_ldflags) 386mod_authn_sasl_la_LIBADD = $(SASL_LIBS) $(common_libadd) 387mod_authn_sasl_la_CPPFLAGS = $(SASL_CFLAGS) 388endif 389 390if BUILD_WITH_OPENSSL 391lib_LTLIBRARIES += mod_openssl.la 392mod_openssl_la_SOURCES = mod_openssl.c 393mod_openssl_la_LDFLAGS = $(common_module_ldflags) 394mod_openssl_la_LIBADD = $(SSL_LIB) $(common_libadd) 395endif 396 397if BUILD_WITH_MBEDTLS 398lib_LTLIBRARIES += mod_mbedtls.la 399mod_mbedtls_la_SOURCES = mod_mbedtls.c 400mod_mbedtls_la_LDFLAGS = $(common_module_ldflags) 401mod_mbedtls_la_LIBADD = $(MTLS_LIB) $(common_libadd) 402endif 403 404if BUILD_WITH_GNUTLS 405lib_LTLIBRARIES += mod_gnutls.la 406mod_gnutls_la_SOURCES = mod_gnutls.c 407mod_gnutls_la_LDFLAGS = $(common_module_ldflags) 408mod_gnutls_la_LIBADD = $(GNUTLS_LIBS) $(common_libadd) 409mod_gnutls_la_CPPFLAGS = $(GNUTLS_CFLAGS) 410endif 411 412if BUILD_WITH_NSS 413lib_LTLIBRARIES += mod_nss.la 414mod_nss_la_SOURCES = mod_nss.c 415mod_nss_la_LDFLAGS = $(common_module_ldflags) 416mod_nss_la_LIBADD = $(NSS_LIBS) $(common_libadd) 417mod_nss_la_CPPFLAGS = $(NSS_CFLAGS) 418endif 419 420 421lib_LTLIBRARIES += mod_rewrite.la 422mod_rewrite_la_SOURCES = mod_rewrite.c 423mod_rewrite_la_LDFLAGS = $(common_module_ldflags) 424mod_rewrite_la_LIBADD = $(PCRE_LIB) $(common_libadd) 425 426lib_LTLIBRARIES += mod_redirect.la 427mod_redirect_la_SOURCES = mod_redirect.c 428mod_redirect_la_LDFLAGS = $(common_module_ldflags) 429mod_redirect_la_LIBADD = $(PCRE_LIB) $(common_libadd) 430 431lib_LTLIBRARIES += mod_status.la 432mod_status_la_SOURCES = mod_status.c 433mod_status_la_LDFLAGS = $(common_module_ldflags) 434mod_status_la_LIBADD = $(common_libadd) 435 436lib_LTLIBRARIES += mod_accesslog.la 437mod_accesslog_la_SOURCES = mod_accesslog.c 438mod_accesslog_la_LDFLAGS = $(common_module_ldflags) 439mod_accesslog_la_LIBADD = $(common_libadd) 440 441lib_LTLIBRARIES += mod_uploadprogress.la 442mod_uploadprogress_la_SOURCES = mod_uploadprogress.c 443mod_uploadprogress_la_LDFLAGS = $(common_module_ldflags) 444mod_uploadprogress_la_LIBADD = $(common_libadd) 445 446lib_LTLIBRARIES += mod_wstunnel.la 447mod_wstunnel_la_SOURCES = mod_wstunnel.c 448mod_wstunnel_la_LDFLAGS = $(common_module_ldflags) 449mod_wstunnel_la_LIBADD = $(common_libadd) $(CRYPTO_LIB) 450 451 452hdr = base64.h buffer.h burl.h network.h log.h http_kv.h keyvalue.h \ 453 response.h request.h fastcgi.h chunk.h \ 454 first.h settings.h http_chunk.h \ 455 algo_sha1.h md5.h http_auth.h http_header.h http_vhostdb.h stream.h \ 456 fdevent.h gw_backend.h connections.h base.h base_decls.h stat_cache.h \ 457 plugin.h plugin_config.h \ 458 etag.h array.h vector.h crc32.h \ 459 fdevent_impl.h network_write.h configfile.h \ 460 mod_ssi.h mod_ssi_expr.h inet_ntop_cache.h \ 461 configparser.h mod_ssi_exprparser.h \ 462 rand.h \ 463 sys-crypto.h sys-crypto-md.h \ 464 sys-endian.h sys-mmap.h sys-socket.h sys-strings.h \ 465 mod_cml.h mod_cml_funcs.h \ 466 safe_memclear.h sock_addr.h splaytree.h status_counter.h \ 467 mod_magnet_cache.h 468 469 470DEFS= @DEFS@ -DHAVE_VERSIONSTAMP_H -DLIBRARY_DIR="\"$(libdir)\"" -DSBIN_DIR="\"$(sbindir)\"" 471 472 473if LIGHTTPD_STATIC 474 475## static lighttpd server (used in conjunction with -DLIGHTTPD_STATIC) 476## (order is not important) 477lighttpd_SOURCES = \ 478 $(src) \ 479 mod_access.c \ 480 mod_accesslog.c \ 481 mod_alias.c \ 482 mod_auth.c \ 483 mod_authn_file.c \ 484 mod_cgi.c \ 485 mod_deflate.c \ 486 mod_dirlisting.c \ 487 mod_evasive.c \ 488 mod_expire.c \ 489 mod_extforward.c \ 490 mod_fastcgi.c \ 491 mod_flv_streaming.c \ 492 mod_indexfile.c \ 493 mod_proxy.c \ 494 mod_redirect.c \ 495 mod_rewrite.c \ 496 mod_rrdtool.c \ 497 mod_scgi.c \ 498 mod_secdownload.c \ 499 mod_setenv.c \ 500 mod_simple_vhost.c \ 501 mod_ssi_exprparser.c mod_ssi_expr.c mod_ssi.c \ 502 mod_staticfile.c \ 503 mod_status.c \ 504 mod_uploadprogress.c \ 505 mod_userdir.c \ 506 mod_usertrack.c \ 507 mod_vhostdb.c \ 508 mod_webdav.c 509lighttpd_CPPFLAGS = \ 510 -DLIGHTTPD_STATIC \ 511 $(XML_CFLAGS) $(SQLITE_CFLAGS) \ 512 $(FAM_CFLAGS) $(LIBEV_CFLAGS) $(LIBUNWIND_CFLAGS) 513lighttpd_LDADD = \ 514 $(common_libadd) \ 515 $(CRYPT_LIB) $(CRYPTO_LIB) \ 516 $(XML_LIBS) $(SQLITE_LIBS) $(UUID_LIBS) $(ELFTC_LIB) \ 517 $(PCRE_LIB) $(Z_LIB) $(BZ_LIB) $(BROTLI_LIBS) \ 518 $(DL_LIB) $(SENDFILE_LIB) $(ATTR_LIB) \ 519 $(FAM_LIBS) $(LIBEV_LIBS) $(LIBUNWIND_LIBS) 520lighttpd_LDFLAGS = -export-dynamic 521 522if BUILD_WITH_GEOIP 523lighttpd_SOURCES += mod_geoip.c 524lighttpd_LDADD += $(GEOIP_LIB) 525endif 526if BUILD_WITH_MAXMINDDB 527lighttpd_SOURCES += mod_maxminddb.c 528lighttpd_LDADD += $(MAXMINDDB_LIB) 529endif 530if BUILD_WITH_LUA 531lighttpd_SOURCES += mod_cml.c mod_cml_lua.c mod_cml_funcs.c \ 532 mod_magnet.c mod_magnet_cache.c 533lighttpd_CPPFLAGS += $(LUA_CFLAGS) 534lighttpd_LDADD += $(LUA_LIBS) -lm 535endif 536if BUILD_WITH_KRB5 537lighttpd_SOURCES += mod_authn_gssapi.c 538lighttpd_LDADD += $(KRB5_LIB) 539endif 540if BUILD_WITH_LDAP 541lighttpd_SOURCES += mod_authn_ldap.c mod_vhostdb_ldap.c 542lighttpd_LDADD += $(LDAP_LIB) $(LBER_LIB) 543endif 544if BUILD_WITH_PAM 545lighttpd_SOURCES += mod_authn_pam.c 546lighttpd_LDADD += $(PAM_LIB) 547endif 548if BUILD_WITH_MYSQL 549lighttpd_SOURCES += mod_authn_mysql.c mod_mysql_vhost.c mod_vhostdb_mysql.c 550lighttpd_CPPFLAGS += $(MYSQL_CFLAGS) 551lighttpd_LDADD += $(MYSQL_LIBS) 552endif 553if BUILD_WITH_PGSQL 554lighttpd_SOURCES += mod_vhostdb_pgsql.c 555lighttpd_CPPFLAGS += $(PGSQL_CFLAGS) 556lighttpd_LDADD += $(PGSQL_LIBS) 557endif 558if BUILD_WITH_DBI 559lighttpd_SOURCES += mod_authn_dbi.c mod_vhostdb_dbi.c 560lighttpd_CPPFLAGS += $(DBI_CFLAGS) 561lighttpd_LDADD += $(DBI_LIBS) 562endif 563if BUILD_WITH_OPENSSL 564lighttpd_SOURCES += mod_openssl.c 565lighttpd_LDADD += $(SSL_LIB) 566endif 567if BUILD_WITH_MEMCACHED 568lighttpd_CPPFLAGS += $(MEMCACHED_CFLAGS) 569lighttpd_LDADD += $(MEMCACHED_LIB) 570endif 571if BUILD_WITH_GDBM 572lighttpd_LDADD += $(GDBM_LIB) 573endif 574if BUILD_MOD_TRIGGER_B4_DL 575lighttpd_SOURCES += mod_trigger_b4_dl.c 576endif 577 578else 579 580## default lighttpd server 581lighttpd_SOURCES = $(src) 582lighttpd_CPPFLAGS = $(FAM_CFLAGS) $(LIBEV_CFLAGS) 583lighttpd_LDADD = $(PCRE_LIB) $(DL_LIB) $(SENDFILE_LIB) $(ATTR_LIB) $(common_libadd) $(CRYPTO_LIB) $(FAM_LIBS) $(LIBEV_LIBS) $(LIBUNWIND_LIBS) 584lighttpd_LDFLAGS = -export-dynamic 585 586endif 587 588t_test_array_SOURCES = t/test_array.c array.c data_array.c data_integer.c data_string.c buffer.c 589t_test_array_LDADD = $(LIBUNWIND_LIBS) 590 591t_test_buffer_SOURCES = t/test_buffer.c buffer.c 592t_test_buffer_LDADD = $(LIBUNWIND_LIBS) 593 594t_test_base64_SOURCES = t/test_base64.c base64.c buffer.c 595t_test_base64_LDADD = $(LIBUNWIND_LIBS) 596 597t_test_burl_SOURCES = t/test_burl.c burl.c buffer.c base64.c 598t_test_burl_LDADD = $(LIBUNWIND_LIBS) 599 600t_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 601t_test_configfile_LDADD = $(PCRE_LIB) $(LIBUNWIND_LIBS) 602 603t_test_keyvalue_SOURCES = t/test_keyvalue.c burl.c buffer.c base64.c array.c data_integer.c data_string.c log.c 604t_test_keyvalue_LDADD = $(PCRE_LIB) $(LIBUNWIND_LIBS) 605 606t_test_mod_access_SOURCES = t/test_mod_access.c buffer.c array.c data_integer.c data_string.c log.c 607t_test_mod_access_LDADD = $(LIBUNWIND_LIBS) 608 609t_test_mod_evhost_SOURCES = t/test_mod_evhost.c buffer.c array.c data_integer.c data_string.c log.c 610t_test_mod_evhost_LDADD = $(LIBUNWIND_LIBS) 611 612t_test_mod_simple_vhost_SOURCES = t/test_mod_simple_vhost.c buffer.c array.c data_integer.c data_string.c log.c 613t_test_mod_simple_vhost_LDADD = $(LIBUNWIND_LIBS) 614 615t_test_mod_userdir_SOURCES = t/test_mod_userdir.c buffer.c array.c data_integer.c data_string.c log.c 616t_test_mod_userdir_LDADD = $(LIBUNWIND_LIBS) 617 618t_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 619t_test_request_LDADD = $(LIBUNWIND_LIBS) 620 621noinst_HEADERS = $(hdr) 622EXTRA_DIST = \ 623 t/README \ 624 mod_skeleton.c \ 625 configparser.y \ 626 mod_ssi_exprparser.y \ 627 lemon.c \ 628 lempar.c \ 629 SConscript \ 630 CMakeLists.txt config.h.cmake \ 631 meson.build 632