Annotation of embedaddon/lighttpd/src/Makefile.am, revision 1.1
1.1 ! misho 1: AM_CFLAGS = $(FAM_CFLAGS)
! 2:
! 3: noinst_PROGRAMS=proc_open lemon # simple-fcgi #graphic evalo bench ajp ssl error_test adserver gen-license
! 4: sbin_PROGRAMS=lighttpd lighttpd-angel
! 5: LEMON=$(top_builddir)/src/lemon$(EXEEXT)
! 6:
! 7: lemon_SOURCES=lemon.c
! 8:
! 9: lighttpd_angel_SOURCES=lighttpd-angel.c
! 10:
! 11: .PHONY: versionstamp parsers
! 12:
! 13: versionstamp:
! 14: @test -f versionstamp.h || touch versionstamp.h; \
! 15: REVISION=""; \
! 16: if test -d "$(top_srcdir)/.svn" -a -x "`which svnversion`"; then \
! 17: REVISION="$$(LANG= LC_ALL=C svnversion "$(top_srcdir)" 2>/dev/null || echo exported)"; \
! 18: if test "$$REVISION" = "exported"; then \
! 19: REVISION=""; \
! 20: fi; \
! 21: fi; \
! 22: if test -z "$$REVISION" -a -d "$(top_srcdir)/.git" -a -x "`which git`"; then \
! 23: REVISION="$$(cd "$(top_srcdir)"; LANG= LC_ALL=C git describe --always 2>/dev/null || echo)"; \
! 24: fi; \
! 25: if test -n "$$REVISION"; then \
! 26: echo "#define REPO_VERSION \"-devel-$$REVISION\"" > versionstamp.h.tmp; \
! 27: else \
! 28: echo "#define REPO_VERSION \"\"" > versionstamp.h.tmp; \
! 29: fi; \
! 30: if ! diff versionstamp.h.tmp versionstamp.h >/dev/null 2>/dev/null; then \
! 31: mv versionstamp.h.tmp versionstamp.h; \
! 32: else \
! 33: rm versionstamp.h.tmp; \
! 34: fi
! 35:
! 36: if CROSS_COMPILING
! 37: configparser.c configparser.h:
! 38: mod_ssi_exprparser.c mod_ssi_exprparser.h:
! 39:
! 40: parsers:
! 41: else
! 42: configparser.h: configparser.c
! 43: configparser.c: $(srcdir)/configparser.y $(srcdir)/lempar.c lemon$(EXEEXT)
! 44: rm -f configparser.h
! 45: $(LEMON) -q $(srcdir)/configparser.y $(srcdir)/lempar.c
! 46:
! 47: mod_ssi_exprparser.h: mod_ssi_exprparser.c
! 48: mod_ssi_exprparser.c: $(srcdir)/mod_ssi_exprparser.y $(srcdir)/lempar.c lemon$(EXEEXT)
! 49: rm -f mod_ssi_exprparser.h
! 50: $(LEMON) -q $(srcdir)/mod_ssi_exprparser.y $(srcdir)/lempar.c
! 51:
! 52: parsers: configparser.c mod_ssi_exprparser.c
! 53: endif
! 54:
! 55: BUILT_SOURCES = parsers versionstamp
! 56: MAINTAINERCLEANFILES = configparser.c configparser.h mod_ssi_exprparser.c mod_ssi_exprparser.h
! 57: CLEANFILES = versionstamp.h versionstamp.h.tmp
! 58:
! 59: common_src=buffer.c log.c \
! 60: keyvalue.c chunk.c \
! 61: http_chunk.c stream.c fdevent.c \
! 62: stat_cache.c plugin.c joblist.c etag.c array.c \
! 63: data_string.c data_count.c data_array.c \
! 64: data_integer.c md5.c data_fastcgi.c \
! 65: fdevent_select.c fdevent_libev.c \
! 66: fdevent_poll.c fdevent_linux_sysepoll.c \
! 67: fdevent_solaris_devpoll.c fdevent_solaris_port.c \
! 68: fdevent_freebsd_kqueue.c \
! 69: data_config.c bitset.c \
! 70: inet_ntop_cache.c crc32.c \
! 71: connections-glue.c \
! 72: configfile-glue.c \
! 73: http-header-glue.c \
! 74: network_write.c network_linux_sendfile.c \
! 75: network_freebsd_sendfile.c network_writev.c \
! 76: network_solaris_sendfilev.c network_openssl.c \
! 77: splaytree.c status_counter.c
! 78:
! 79: src = server.c response.c connections.c network.c \
! 80: configfile.c configparser.c request.c proc_open.c
! 81:
! 82: lib_LTLIBRARIES =
! 83:
! 84: if NO_RDYNAMIC
! 85: # if the linker doesn't allow referencing symbols of the binary
! 86: # we have to put everything into a shared-lib and link it into
! 87: # everything
! 88: lib_LTLIBRARIES += liblightcomp.la
! 89: liblightcomp_la_SOURCES=$(common_src)
! 90: liblightcomp_la_CFLAGS=$(AM_CFLAGS) $(LIBEV_CFLAGS)
! 91: liblightcomp_la_LDFLAGS = -avoid-version -no-undefined
! 92: liblightcomp_la_LIBADD = $(PCRE_LIB) $(SSL_LIB) $(FAM_LIBS) $(LIBEV_LIBS)
! 93: common_libadd = liblightcomp.la
! 94: else
! 95: src += $(common_src)
! 96: common_libadd =
! 97: endif
! 98:
! 99: lib_LTLIBRARIES += mod_flv_streaming.la
! 100: mod_flv_streaming_la_SOURCES = mod_flv_streaming.c
! 101: mod_flv_streaming_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 102: mod_flv_streaming_la_LIBADD = $(common_libadd)
! 103:
! 104: lib_LTLIBRARIES += mod_evasive.la
! 105: mod_evasive_la_SOURCES = mod_evasive.c
! 106: mod_evasive_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 107: mod_evasive_la_LIBADD = $(common_libadd)
! 108:
! 109: lib_LTLIBRARIES += mod_webdav.la
! 110: mod_webdav_la_SOURCES = mod_webdav.c
! 111: mod_webdav_la_CFLAGS = $(AM_CFLAGS) $(XML_CFLAGS) $(SQLITE_CFLAGS)
! 112: mod_webdav_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 113: mod_webdav_la_LIBADD = $(common_libadd) $(XML_LIBS) $(SQLITE_LIBS) $(UUID_LIBS)
! 114:
! 115: lib_LTLIBRARIES += mod_magnet.la
! 116: mod_magnet_la_SOURCES = mod_magnet.c mod_magnet_cache.c
! 117: mod_magnet_la_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
! 118: mod_magnet_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 119: mod_magnet_la_LIBADD = $(common_libadd) $(LUA_LIBS) -lm
! 120:
! 121: lib_LTLIBRARIES += mod_cml.la
! 122: mod_cml_la_SOURCES = mod_cml.c mod_cml_lua.c mod_cml_funcs.c
! 123: mod_cml_la_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
! 124: mod_cml_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 125: mod_cml_la_LIBADD = $(MEMCACHE_LIB) $(common_libadd) $(LUA_LIBS) -lm
! 126:
! 127: lib_LTLIBRARIES += mod_trigger_b4_dl.la
! 128: mod_trigger_b4_dl_la_SOURCES = mod_trigger_b4_dl.c
! 129: mod_trigger_b4_dl_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 130: mod_trigger_b4_dl_la_LIBADD = $(GDBM_LIB) $(MEMCACHE_LIB) $(PCRE_LIB) $(common_libadd)
! 131:
! 132: lib_LTLIBRARIES += mod_mysql_vhost.la
! 133: mod_mysql_vhost_la_SOURCES = mod_mysql_vhost.c
! 134: mod_mysql_vhost_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 135: mod_mysql_vhost_la_LIBADD = $(MYSQL_LIBS) $(common_libadd)
! 136: mod_mysql_vhost_la_CPPFLAGS = $(MYSQL_INCLUDE)
! 137:
! 138: lib_LTLIBRARIES += mod_cgi.la
! 139: mod_cgi_la_SOURCES = mod_cgi.c
! 140: mod_cgi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 141: mod_cgi_la_LIBADD = $(common_libadd)
! 142:
! 143: lib_LTLIBRARIES += mod_scgi.la
! 144: mod_scgi_la_SOURCES = mod_scgi.c
! 145: mod_scgi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 146: mod_scgi_la_LIBADD = $(common_libadd)
! 147:
! 148: lib_LTLIBRARIES += mod_staticfile.la
! 149: mod_staticfile_la_SOURCES = mod_staticfile.c
! 150: mod_staticfile_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 151: mod_staticfile_la_LIBADD = $(common_libadd)
! 152:
! 153: lib_LTLIBRARIES += mod_dirlisting.la
! 154: mod_dirlisting_la_SOURCES = mod_dirlisting.c
! 155: mod_dirlisting_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 156: mod_dirlisting_la_LIBADD = $(common_libadd) $(PCRE_LIB)
! 157:
! 158: lib_LTLIBRARIES += mod_indexfile.la
! 159: mod_indexfile_la_SOURCES = mod_indexfile.c
! 160: mod_indexfile_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 161: mod_indexfile_la_LIBADD = $(common_libadd)
! 162:
! 163: lib_LTLIBRARIES += mod_setenv.la
! 164: mod_setenv_la_SOURCES = mod_setenv.c
! 165: mod_setenv_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 166: mod_setenv_la_LIBADD = $(common_libadd)
! 167:
! 168: lib_LTLIBRARIES += mod_alias.la
! 169: mod_alias_la_SOURCES = mod_alias.c
! 170: mod_alias_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 171: mod_alias_la_LIBADD = $(common_libadd)
! 172:
! 173: lib_LTLIBRARIES += mod_userdir.la
! 174: mod_userdir_la_SOURCES = mod_userdir.c
! 175: mod_userdir_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 176: mod_userdir_la_LIBADD = $(common_libadd)
! 177:
! 178: lib_LTLIBRARIES += mod_rrdtool.la
! 179: mod_rrdtool_la_SOURCES = mod_rrdtool.c
! 180: mod_rrdtool_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 181: mod_rrdtool_la_LIBADD = $(common_libadd)
! 182:
! 183: lib_LTLIBRARIES += mod_usertrack.la
! 184: mod_usertrack_la_SOURCES = mod_usertrack.c
! 185: mod_usertrack_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 186: mod_usertrack_la_LIBADD = $(common_libadd)
! 187:
! 188: lib_LTLIBRARIES += mod_proxy.la
! 189: mod_proxy_la_SOURCES = mod_proxy.c
! 190: mod_proxy_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 191: mod_proxy_la_LIBADD = $(common_libadd)
! 192:
! 193: lib_LTLIBRARIES += mod_ssi.la
! 194: mod_ssi_la_SOURCES = mod_ssi_exprparser.c mod_ssi_expr.c mod_ssi.c
! 195: mod_ssi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 196: mod_ssi_la_LIBADD = $(common_libadd) $(PCRE_LIB)
! 197:
! 198: lib_LTLIBRARIES += mod_secdownload.la
! 199: mod_secdownload_la_SOURCES = mod_secure_download.c
! 200: mod_secdownload_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 201: mod_secdownload_la_LIBADD = $(common_libadd)
! 202:
! 203: #lib_LTLIBRARIES += mod_httptls.la
! 204: #mod_httptls_la_SOURCES = mod_httptls.c
! 205: #mod_httptls_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 206: #mod_httptls_la_LIBADD = $(common_libadd)
! 207:
! 208: lib_LTLIBRARIES += mod_expire.la
! 209: mod_expire_la_SOURCES = mod_expire.c
! 210: mod_expire_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 211: mod_expire_la_LIBADD = $(common_libadd)
! 212:
! 213: lib_LTLIBRARIES += mod_evhost.la
! 214: mod_evhost_la_SOURCES = mod_evhost.c
! 215: mod_evhost_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 216: mod_evhost_la_LIBADD = $(common_libadd)
! 217:
! 218: lib_LTLIBRARIES += mod_simple_vhost.la
! 219: mod_simple_vhost_la_SOURCES = mod_simple_vhost.c
! 220: mod_simple_vhost_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 221: mod_simple_vhost_la_LIBADD = $(common_libadd)
! 222:
! 223: lib_LTLIBRARIES += mod_fastcgi.la
! 224: mod_fastcgi_la_SOURCES = mod_fastcgi.c
! 225: mod_fastcgi_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 226: mod_fastcgi_la_LIBADD = $(common_libadd)
! 227:
! 228: lib_LTLIBRARIES += mod_extforward.la
! 229: mod_extforward_la_SOURCES = mod_extforward.c
! 230: mod_extforward_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 231: mod_extforward_la_LIBADD = $(common_libadd)
! 232:
! 233: lib_LTLIBRARIES += mod_access.la
! 234: mod_access_la_SOURCES = mod_access.c
! 235: mod_access_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 236: mod_access_la_LIBADD = $(common_libadd)
! 237:
! 238: lib_LTLIBRARIES += mod_compress.la
! 239: mod_compress_la_SOURCES = mod_compress.c
! 240: mod_compress_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 241: mod_compress_la_LIBADD = $(Z_LIB) $(BZ_LIB) $(common_libadd)
! 242:
! 243: lib_LTLIBRARIES += mod_auth.la
! 244: mod_auth_la_SOURCES = mod_auth.c http_auth.c
! 245: mod_auth_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 246: mod_auth_la_LIBADD = $(CRYPT_LIB) $(LDAP_LIB) $(LBER_LIB) $(common_libadd)
! 247:
! 248: lib_LTLIBRARIES += mod_rewrite.la
! 249: mod_rewrite_la_SOURCES = mod_rewrite.c
! 250: mod_rewrite_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 251: mod_rewrite_la_LIBADD = $(PCRE_LIB) $(common_libadd)
! 252:
! 253: lib_LTLIBRARIES += mod_redirect.la
! 254: mod_redirect_la_SOURCES = mod_redirect.c
! 255: mod_redirect_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 256: mod_redirect_la_LIBADD = $(PCRE_LIB) $(common_libadd)
! 257:
! 258: lib_LTLIBRARIES += mod_status.la
! 259: mod_status_la_SOURCES = mod_status.c
! 260: mod_status_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 261: mod_status_la_LIBADD = $(common_libadd)
! 262:
! 263: lib_LTLIBRARIES += mod_accesslog.la
! 264: mod_accesslog_la_SOURCES = mod_accesslog.c
! 265: mod_accesslog_la_LDFLAGS = -module -export-dynamic -avoid-version -no-undefined
! 266: mod_accesslog_la_LIBADD = $(common_libadd)
! 267:
! 268:
! 269: hdr = server.h buffer.h network.h log.h keyvalue.h \
! 270: response.h request.h fastcgi.h chunk.h \
! 271: settings.h http_chunk.h \
! 272: md5.h http_auth.h stream.h \
! 273: fdevent.h connections.h base.h stat_cache.h \
! 274: plugin.h mod_auth.h \
! 275: etag.h joblist.h array.h crc32.h \
! 276: network_backends.h configfile.h bitset.h \
! 277: mod_ssi.h mod_ssi_expr.h inet_ntop_cache.h \
! 278: configparser.h mod_ssi_exprparser.h \
! 279: sys-mmap.h sys-socket.h mod_cml.h mod_cml_funcs.h \
! 280: splaytree.h proc_open.h status_counter.h \
! 281: mod_magnet_cache.h \
! 282: version.h
! 283:
! 284: DEFS= @DEFS@ -DHAVE_VERSION_H -DLIBRARY_DIR="\"$(libdir)\"" -DSBIN_DIR="\"$(sbindir)\""
! 285:
! 286: lighttpd_SOURCES = $(src)
! 287: lighttpd_LDADD = $(PCRE_LIB) $(DL_LIB) $(SENDFILE_LIB) $(ATTR_LIB) $(common_libadd) $(SSL_LIB) $(FAM_LIBS) $(LIBEV_LIBS)
! 288: lighttpd_LDFLAGS = -export-dynamic
! 289: lighttpd_CCPFLAGS = $(FAM_CFLAGS) $(LIBEV_CFLAGS)
! 290:
! 291: proc_open_SOURCES = proc_open.c buffer.c
! 292: proc_open_CPPFLAGS= -DDEBUG_PROC_OPEN
! 293:
! 294: #gen_license_SOURCES = license.c md5.c buffer.c gen_license.c
! 295:
! 296: #ssl_SOURCES = ssl.c
! 297:
! 298:
! 299: #adserver_SOURCES = buffer.c iframe.c
! 300: #adserver_LDADD = -lfcgi -lmysqlclient
! 301:
! 302: #error_test_SOURCES = error_test.c
! 303:
! 304: #evalo_SOURCES = buffer.c eval.c
! 305: #bench_SOURCES = buffer.c bench.c
! 306: #ajp_SOURCES = ajp.c
! 307:
! 308: noinst_HEADERS = $(hdr)
! 309: EXTRA_DIST = mod_skeleton.c configparser.y mod_ssi_exprparser.y lempar.c SConscript
! 310:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>