lighttpd 1.4.x https://www.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

603 lines
19 KiB

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