2003-11-25 14:44:56 -06:00
|
|
|
|
2004-09-29 11:00:49 -05:00
|
|
|
# Copyright (C) Igor Sysoev
|
2012-01-18 09:07:43 -06:00
|
|
|
# Copyright (C) Nginx, Inc.
|
2004-09-29 11:00:49 -05:00
|
|
|
|
|
|
|
|
2009-05-10 13:38:11 -05:00
|
|
|
echo "creating $NGX_MAKEFILE"
|
|
|
|
|
2004-11-25 10:17:31 -06:00
|
|
|
mkdir -p $NGX_OBJS/src/core $NGX_OBJS/src/event $NGX_OBJS/src/event/modules \
|
|
|
|
$NGX_OBJS/src/os/unix $NGX_OBJS/src/os/win32 \
|
2015-09-11 12:13:06 -05:00
|
|
|
$NGX_OBJS/src/http $NGX_OBJS/src/http/v2 $NGX_OBJS/src/http/modules \
|
2015-04-03 10:20:57 -05:00
|
|
|
$NGX_OBJS/src/http/modules/perl \
|
2008-03-18 05:36:27 -05:00
|
|
|
$NGX_OBJS/src/mail \
|
2015-04-20 05:05:11 -05:00
|
|
|
$NGX_OBJS/src/stream \
|
2008-03-18 05:36:27 -05:00
|
|
|
$NGX_OBJS/src/misc
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_objs_dir=$NGX_OBJS$ngx_regex_dirsep
|
|
|
|
ngx_use_pch=`echo $NGX_USE_PCH | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
cat << END > $NGX_MAKEFILE
|
2004-03-09 13:47:07 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
CC = $CC
|
|
|
|
CFLAGS = $CFLAGS
|
|
|
|
CPP = $CPP
|
|
|
|
LINK = $LINK
|
2004-03-09 13:47:07 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2009-05-10 13:35:08 -05:00
|
|
|
|
2006-08-30 05:39:17 -05:00
|
|
|
if test -n "$NGX_PERL_CFLAGS"; then
|
|
|
|
echo NGX_PERL_CFLAGS = $NGX_PERL_CFLAGS >> $NGX_MAKEFILE
|
|
|
|
echo NGX_PM_CFLAGS = $NGX_PM_CFLAGS >> $NGX_MAKEFILE
|
2016-09-20 14:11:23 -05:00
|
|
|
echo NGX_PM_LDFLAGS = $NGX_PM_LDFLAGS >> $NGX_MAKEFILE
|
2006-08-30 05:39:17 -05:00
|
|
|
fi
|
|
|
|
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2005-02-16 07:40:36 -06:00
|
|
|
# ALL_INCS, required by the addons and by OpenWatcom C precompiled headers
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2015-04-20 09:36:51 -05:00
|
|
|
ngx_incs=`echo $CORE_INCS $NGX_OBJS $HTTP_INCS $MAIL_INCS $STREAM_INCS\
|
2004-10-21 10:34:38 -05:00
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ALL_INCS = $ngx_include_opt$ngx_incs
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_all_srcs="$CORE_SRCS"
|
2004-03-05 02:34:24 -06:00
|
|
|
|
|
|
|
|
2015-06-03 00:23:35 -05:00
|
|
|
# the core dependencies and include paths
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-11-20 13:52:20 -06:00
|
|
|
ngx_deps=`echo $CORE_DEPS $NGX_AUTO_CONFIG_H $NGX_PCH \
|
2004-10-21 10:34:38 -05:00
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-11-25 10:17:31 -06:00
|
|
|
ngx_incs=`echo $CORE_INCS $NGX_OBJS \
|
2004-10-21 10:34:38 -05:00
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
CORE_DEPS = $ngx_deps
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
CORE_INCS = $ngx_include_opt$ngx_incs
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2004-09-07 10:29:22 -05:00
|
|
|
|
|
|
|
|
2015-06-03 00:23:35 -05:00
|
|
|
# the http dependencies and include paths
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
if [ $HTTP = YES ]; then
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_all_srcs="$ngx_all_srcs $HTTP_SRCS"
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_deps=`echo $HTTP_DEPS \
|
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_incs=`echo $HTTP_INCS \
|
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
HTTP_DEPS = $ngx_deps
|
2004-09-07 10:29:22 -05:00
|
|
|
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
HTTP_INCS = $ngx_include_opt$ngx_incs
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
fi
|
2004-09-07 10:29:22 -05:00
|
|
|
|
|
|
|
|
2015-06-03 00:23:35 -05:00
|
|
|
# the mail dependencies and include paths
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2016-02-04 11:25:29 -06:00
|
|
|
if [ $MAIL != NO ]; then
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2016-02-04 11:25:29 -06:00
|
|
|
if [ $MAIL = YES ]; then
|
|
|
|
ngx_all_srcs="$ngx_all_srcs $MAIL_SRCS"
|
|
|
|
fi
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
ngx_deps=`echo $MAIL_DEPS \
|
2004-10-21 10:34:38 -05:00
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
ngx_incs=`echo $MAIL_INCS \
|
2004-10-21 10:34:38 -05:00
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
MAIL_DEPS = $ngx_deps
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
MAIL_INCS = $ngx_include_opt$ngx_incs
|
2004-03-04 01:04:55 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
fi
|
2004-03-04 01:04:55 -06:00
|
|
|
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2015-06-03 00:23:35 -05:00
|
|
|
# the stream dependencies and include paths
|
2015-04-20 05:05:11 -05:00
|
|
|
|
2016-02-04 11:25:29 -06:00
|
|
|
if [ $STREAM != NO ]; then
|
2015-04-20 05:05:11 -05:00
|
|
|
|
2016-02-04 11:25:29 -06:00
|
|
|
if [ $STREAM = YES ]; then
|
|
|
|
ngx_all_srcs="$ngx_all_srcs $STREAM_SRCS"
|
|
|
|
fi
|
2015-04-20 05:05:11 -05:00
|
|
|
|
|
|
|
ngx_deps=`echo $STREAM_DEPS \
|
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
ngx_incs=`echo $STREAM_INCS \
|
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont$ngx_include_opt\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
STREAM_DEPS = $ngx_deps
|
|
|
|
|
|
|
|
|
|
|
|
STREAM_INCS = $ngx_include_opt$ngx_incs
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2016-02-04 09:30:21 -06:00
|
|
|
ngx_all_srcs="$ngx_all_srcs $MISC_SRCS"
|
2008-03-18 05:36:27 -05:00
|
|
|
|
|
|
|
|
2016-11-21 07:49:19 -06:00
|
|
|
if test -n "$NGX_ADDON_SRCS$DYNAMIC_MODULES"; then
|
2005-02-16 07:40:36 -06:00
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
2005-09-08 09:36:09 -05:00
|
|
|
ADDON_DEPS = \$(CORE_DEPS) $NGX_ADDON_DEPS
|
2005-02-16 07:40:36 -06:00
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
# nginx
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_all_srcs=`echo $ngx_all_srcs | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2005-02-16 07:40:36 -06:00
|
|
|
|
|
|
|
for ngx_src in $NGX_ADDON_SRCS
|
|
|
|
do
|
|
|
|
ngx_obj="addon/`basename \`dirname $ngx_src\``"
|
|
|
|
|
|
|
|
test -d $NGX_OBJS/$ngx_obj || mkdir -p $NGX_OBJS/$ngx_obj
|
|
|
|
|
|
|
|
ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
ngx_all_srcs="$ngx_all_srcs $ngx_obj"
|
|
|
|
done
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_all_objs=`echo $ngx_all_srcs \
|
2006-07-11 08:20:19 -05:00
|
|
|
| sed -e "s#\([^ ]*\.\)cpp#$NGX_OBJS\/\1$ngx_objext#g" \
|
|
|
|
-e "s#\([^ ]*\.\)cc#$NGX_OBJS\/\1$ngx_objext#g" \
|
|
|
|
-e "s#\([^ ]*\.\)c#$NGX_OBJS\/\1$ngx_objext#g" \
|
|
|
|
-e "s#\([^ ]*\.\)S#$NGX_OBJS\/\1$ngx_objext#g"`
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2005-02-16 07:40:36 -06:00
|
|
|
ngx_modules_c=`echo $NGX_MODULES_C | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_modules_obj=`echo $ngx_modules_c | sed -e "s/\(.*\.\)c/\1$ngx_objext/"`
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-11-11 08:07:14 -06:00
|
|
|
|
|
|
|
if test -n "$NGX_RES"; then
|
|
|
|
ngx_res=$NGX_RES
|
|
|
|
else
|
|
|
|
ngx_res="$NGX_RC $NGX_ICONS"
|
|
|
|
ngx_rcc=`echo $NGX_RCC | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
fi
|
|
|
|
|
|
|
|
ngx_deps=`echo $ngx_all_objs $ngx_modules_obj $ngx_res $LINK_DEPS \
|
2004-10-21 10:34:38 -05:00
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_objs=`echo $ngx_all_objs $ngx_modules_obj \
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-09 11:25:55 -06:00
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_long_regex_cont\1/g" \
|
2004-10-21 10:34:38 -05:00
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
2004-03-04 01:04:55 -06:00
|
|
|
|
2016-02-04 11:25:29 -06:00
|
|
|
ngx_libs=
|
2006-07-28 10:16:17 -05:00
|
|
|
if test -n "$NGX_LD_OPT$CORE_LIBS"; then
|
|
|
|
ngx_libs=`echo $NGX_LD_OPT $CORE_LIBS \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`
|
|
|
|
fi
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_link=${CORE_LINK:+`echo $CORE_LINK \
|
nginx-0.3.8-RELEASE import
*) Security: nginx now checks URI got from a backend in
"X-Accel-Redirect" header line or in SSI file for the "/../" paths
and zeroes.
*) Change: nginx now does not treat the empty user name in the
"Authorization" header line as valid one.
*) Feature: the "ssl_session_timeout" directives of the
ngx_http_ssl_module and ngx_imap_ssl_module.
*) Feature: the "auth_http_header" directive of the
ngx_imap_auth_http_module.
*) Feature: the "add_header" directive.
*) Feature: the ngx_http_realip_module.
*) Feature: the new variables to use in the "log_format" directive:
$bytes_sent, $apache_bytes_sent, $status, $time_gmt, $uri,
$request_time, $request_length, $upstream_status,
$upstream_response_time, $gzip_ratio, $uid_got, $uid_set,
$connection, $pipe, and $msec. The parameters in the "%name" form
will be canceled soon.
*) Change: now the false variable values in the "if" directive are the
empty string "" and string starting with "0".
*) Bugfix: while using proxied or FastCGI-server nginx may leave
connections and temporary files with client requests in open state.
*) Bugfix: the worker processes did not flush the buffered logs on
graceful exit.
*) Bugfix: if the request URI was changes by the "rewrite" directive
and the request was proxied in location given by regular expression,
then the incorrect request was transferred to backend; the bug had
appeared in 0.2.6.
*) Bugfix: the "expires" directive did not remove the previous
"Expires" header.
*) Bugfix: nginx may stop to accept requests if the "rtsig" method and
several worker processes were used.
*) Bugfix: the "\"" and "\'" escape symbols were incorrectly handled in
SSI commands.
*) Bugfix: if the response was ended just after the SSI command and
gzipping was used, then the response did not transferred complete or
did not transferred at all.
2005-11-09 11:25:55 -06:00
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`}
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2016-02-04 11:25:29 -06:00
|
|
|
ngx_main_link=${MAIN_LINK:+`echo $MAIN_LINK \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`}
|
|
|
|
|
2004-11-11 08:07:14 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2016-02-19 09:13:54 -06:00
|
|
|
build: binary modules manpage
|
|
|
|
|
2016-03-10 01:43:00 -06:00
|
|
|
binary: $NGX_OBJS${ngx_dirsep}nginx$ngx_binext
|
2016-02-19 09:13:54 -06:00
|
|
|
|
2016-03-10 01:43:00 -06:00
|
|
|
$NGX_OBJS${ngx_dirsep}nginx$ngx_binext: $ngx_deps$ngx_spacer
|
2019-01-30 10:28:27 -06:00
|
|
|
\$(LINK) $ngx_long_start$ngx_binout$NGX_OBJS${ngx_dirsep}nginx$ngx_binext$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_main_link
|
2004-11-11 08:07:14 -06:00
|
|
|
$ngx_rcc
|
2016-03-10 01:43:00 -06:00
|
|
|
$ngx_long_end
|
2016-02-04 11:25:29 -06:00
|
|
|
|
|
|
|
modules:
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2004-03-05 02:34:24 -06:00
|
|
|
|
|
|
|
|
|
|
|
# ngx_modules.c
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
if test -n "$NGX_PCH"; then
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
|
2004-03-09 13:47:07 -06:00
|
|
|
else
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS)"
|
2004-03-09 13:47:07 -06:00
|
|
|
fi
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c
|
2005-10-12 08:50:36 -05:00
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_modules_obj$ngx_tab$ngx_modules_c$NGX_AUX
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
# the core sources
|
|
|
|
|
|
|
|
for ngx_src in $CORE_SRCS
|
2003-11-25 14:44:56 -06:00
|
|
|
do
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
ngx_obj=`echo $ngx_src \
|
2006-07-11 08:20:19 -05:00
|
|
|
| sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
|
2004-10-21 10:34:38 -05:00
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ngx_obj: \$(CORE_DEPS)$ngx_cont$ngx_src
|
2005-10-12 08:50:36 -05:00
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
2004-10-21 10:34:38 -05:00
|
|
|
|
|
|
|
END
|
|
|
|
|
2003-11-25 14:44:56 -06:00
|
|
|
done
|
|
|
|
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
# the http sources
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2004-09-07 10:29:22 -05:00
|
|
|
if [ $HTTP = YES ]; then
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
if test -n "$NGX_PCH"; then
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
|
2004-09-07 10:29:22 -05:00
|
|
|
else
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(HTTP_INCS)"
|
2016-02-26 05:27:04 -06:00
|
|
|
ngx_perl_cc="\$(CC) $ngx_compile_opt \$(NGX_PERL_CFLAGS)"
|
2006-08-30 05:39:17 -05:00
|
|
|
ngx_perl_cc="$ngx_perl_cc \$(CORE_INCS) \$(HTTP_INCS)"
|
2004-09-07 10:29:22 -05:00
|
|
|
fi
|
|
|
|
|
2006-08-30 05:39:17 -05:00
|
|
|
for ngx_source in $HTTP_SRCS
|
2004-09-07 10:29:22 -05:00
|
|
|
do
|
2006-08-30 05:39:17 -05:00
|
|
|
ngx_src=`echo $ngx_source | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_obj=`echo $ngx_src \
|
2006-07-11 08:20:19 -05:00
|
|
|
| sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
|
2004-10-21 10:34:38 -05:00
|
|
|
|
2006-08-30 05:39:17 -05:00
|
|
|
if [ $ngx_source = src/http/modules/perl/ngx_http_perl_module.c ]; then
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ngx_obj: \$(CORE_DEPS) \$(HTTP_DEPS)$ngx_cont$ngx_src
|
|
|
|
$ngx_perl_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
|
|
|
|
|
|
|
END
|
|
|
|
else
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-10-21 10:34:38 -05:00
|
|
|
|
|
|
|
$ngx_obj: \$(CORE_DEPS) \$(HTTP_DEPS)$ngx_cont$ngx_src
|
2005-10-12 08:50:36 -05:00
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
2004-10-21 10:34:38 -05:00
|
|
|
|
|
|
|
END
|
2006-08-30 05:39:17 -05:00
|
|
|
|
|
|
|
fi
|
2004-10-21 10:34:38 -05:00
|
|
|
done
|
2004-03-09 13:47:07 -06:00
|
|
|
|
|
|
|
fi
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-03-05 02:34:24 -06:00
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
# the mail sources
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
if [ $MAIL = YES ]; then
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
if test -n "$NGX_PCH"; then
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
|
2004-03-05 02:34:24 -06:00
|
|
|
else
|
2007-03-19 08:36:56 -05:00
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(MAIL_INCS)"
|
2004-03-05 02:34:24 -06:00
|
|
|
fi
|
2004-09-07 10:29:22 -05:00
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
for ngx_src in $MAIL_SRCS
|
2004-09-07 10:29:22 -05:00
|
|
|
do
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
ngx_obj=`echo $ngx_src \
|
2006-07-11 08:20:19 -05:00
|
|
|
| sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
|
2004-10-21 10:34:38 -05:00
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
2007-03-19 08:36:56 -05:00
|
|
|
$ngx_obj: \$(CORE_DEPS) \$(MAIL_DEPS)$ngx_cont$ngx_src
|
2005-10-12 08:50:36 -05:00
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
2004-10-21 10:34:38 -05:00
|
|
|
|
|
|
|
END
|
2005-02-16 07:40:36 -06:00
|
|
|
done
|
2004-10-21 10:34:38 -05:00
|
|
|
|
2005-02-16 07:40:36 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2015-04-20 05:05:11 -05:00
|
|
|
# the stream sources
|
|
|
|
|
|
|
|
if [ $STREAM = YES ]; then
|
|
|
|
|
|
|
|
if test -n "$NGX_PCH"; then
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
|
|
|
|
else
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(STREAM_INCS)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
for ngx_src in $STREAM_SRCS
|
|
|
|
do
|
|
|
|
ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
ngx_obj=`echo $ngx_src \
|
|
|
|
| sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ngx_obj: \$(CORE_DEPS) \$(STREAM_DEPS)$ngx_cont$ngx_src
|
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
|
|
|
|
|
|
|
END
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2008-03-18 05:36:27 -05:00
|
|
|
# the misc sources
|
|
|
|
|
2016-02-04 09:30:21 -06:00
|
|
|
if test -n "$MISC_SRCS"; then
|
2008-03-18 05:36:27 -05:00
|
|
|
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
|
|
|
|
|
2016-02-04 09:30:21 -06:00
|
|
|
for ngx_src in $MISC_SRCS
|
2008-03-18 05:36:27 -05:00
|
|
|
do
|
|
|
|
ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
ngx_obj=`echo $ngx_src \
|
|
|
|
| sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ngx_obj: \$(CORE_DEPS) $ngx_cont$ngx_src
|
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
|
|
|
|
|
|
|
END
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2005-02-16 07:40:36 -06:00
|
|
|
# the addons sources
|
|
|
|
|
|
|
|
if test -n "$NGX_ADDON_SRCS"; then
|
|
|
|
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
|
|
|
|
|
|
|
|
for ngx_src in $NGX_ADDON_SRCS
|
|
|
|
do
|
|
|
|
ngx_obj="addon/`basename \`dirname $ngx_src\``"
|
|
|
|
|
|
|
|
ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
ngx_obj=`echo $ngx_obj \
|
2006-07-11 08:20:19 -05:00
|
|
|
| sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
|
2005-02-16 07:40:36 -06:00
|
|
|
|
|
|
|
ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ngx_obj: \$(ADDON_DEPS)$ngx_cont$ngx_src
|
2005-10-12 08:50:36 -05:00
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
2005-02-16 07:40:36 -06:00
|
|
|
|
|
|
|
END
|
2004-10-21 10:34:38 -05:00
|
|
|
done
|
2004-09-07 10:29:22 -05:00
|
|
|
|
|
|
|
fi
|
2004-03-09 13:47:07 -06:00
|
|
|
|
|
|
|
|
2005-12-26 11:07:48 -06:00
|
|
|
# the addons config.make
|
|
|
|
|
2016-02-25 06:22:05 -06:00
|
|
|
if test -n "$NGX_ADDONS$DYNAMIC_ADDONS"; then
|
2005-12-26 11:07:48 -06:00
|
|
|
|
2016-02-25 06:22:05 -06:00
|
|
|
for ngx_addon_dir in $NGX_ADDONS $DYNAMIC_ADDONS
|
2005-12-26 11:07:48 -06:00
|
|
|
do
|
|
|
|
if test -f $ngx_addon_dir/config.make; then
|
|
|
|
. $ngx_addon_dir/config.make
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-11-11 08:07:14 -06:00
|
|
|
# Win32 resource file
|
|
|
|
|
|
|
|
if test -n "$NGX_RES"; then
|
|
|
|
|
|
|
|
ngx_res=`echo "$NGX_RES: $NGX_RC $NGX_ICONS" \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
ngx_rcc=`echo $NGX_RCC | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
$ngx_res
|
|
|
|
$ngx_rcc
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
# the precompiled headers
|
|
|
|
|
|
|
|
if test -n "$NGX_PCH"; then
|
2004-11-25 10:17:31 -06:00
|
|
|
echo "#include <ngx_config.h>" > $NGX_OBJS/ngx_pch.c
|
2004-10-21 10:34:38 -05:00
|
|
|
|
2004-11-25 10:17:31 -06:00
|
|
|
ngx_pch="src/core/ngx_config.h $OS_CONFIG $NGX_OBJS/ngx_auto_config.h"
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_pch=`echo "$NGX_PCH: $ngx_pch" | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
ngx_src="\$(CC) \$(CFLAGS) $NGX_BUILD_PCH $ngx_compile_opt \$(ALL_INCS)"
|
2004-11-25 10:17:31 -06:00
|
|
|
ngx_src="$ngx_src $ngx_objout$NGX_OBJS/ngx_pch.obj $NGX_OBJS/ngx_pch.c"
|
2004-10-21 10:34:38 -05:00
|
|
|
ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
2004-03-09 13:47:07 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
$ngx_pch
|
|
|
|
$ngx_src
|
2004-03-09 13:47:07 -06:00
|
|
|
|
2004-10-21 10:34:38 -05:00
|
|
|
END
|
2004-03-09 13:47:07 -06:00
|
|
|
|
|
|
|
fi
|
2016-02-04 11:25:29 -06:00
|
|
|
|
|
|
|
|
|
|
|
# dynamic modules
|
|
|
|
|
|
|
|
if test -n "$NGX_PCH"; then
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
|
|
|
|
else
|
|
|
|
ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) \$(ALL_INCS)"
|
2016-02-26 05:27:04 -06:00
|
|
|
ngx_perl_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(NGX_PERL_CFLAGS)"
|
|
|
|
ngx_perl_cc="$ngx_perl_cc \$(ALL_INCS)"
|
2016-02-04 11:25:29 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
for ngx_module in $DYNAMIC_MODULES
|
|
|
|
do
|
|
|
|
eval ngx_module_srcs="\$${ngx_module}_SRCS"
|
|
|
|
eval eval ngx_module_libs="\\\"\$${ngx_module}_LIBS\\\""
|
|
|
|
|
|
|
|
eval ngx_module_modules="\$${ngx_module}_MODULES"
|
|
|
|
eval ngx_module_order="\$${ngx_module}_ORDER"
|
|
|
|
|
|
|
|
ngx_modules_c=$NGX_OBJS/${ngx_module}_modules.c
|
|
|
|
|
|
|
|
cat << END > $ngx_modules_c
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
for mod in $ngx_module_modules
|
|
|
|
do
|
|
|
|
echo "extern ngx_module_t $mod;" >> $ngx_modules_c
|
|
|
|
done
|
|
|
|
|
|
|
|
echo >> $ngx_modules_c
|
|
|
|
echo 'ngx_module_t *ngx_modules[] = {' >> $ngx_modules_c
|
|
|
|
|
|
|
|
for mod in $ngx_module_modules
|
|
|
|
do
|
|
|
|
echo " &$mod," >> $ngx_modules_c
|
|
|
|
done
|
|
|
|
|
|
|
|
cat << END >> $ngx_modules_c
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
echo 'char *ngx_module_names[] = {' >> $ngx_modules_c
|
|
|
|
|
|
|
|
for mod in $ngx_module_modules
|
|
|
|
do
|
|
|
|
echo " \"$mod\"," >> $ngx_modules_c
|
|
|
|
done
|
|
|
|
|
|
|
|
cat << END >> $ngx_modules_c
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
echo 'char *ngx_module_order[] = {' >> $ngx_modules_c
|
|
|
|
|
|
|
|
for mod in $ngx_module_order
|
|
|
|
do
|
|
|
|
echo " \"$mod\"," >> $ngx_modules_c
|
|
|
|
done
|
|
|
|
|
|
|
|
cat << END >> $ngx_modules_c
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
END
|
|
|
|
|
|
|
|
ngx_modules_c=`echo $ngx_modules_c | sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
ngx_modules_obj=`echo $ngx_modules_c \
|
|
|
|
| sed -e "s/\(.*\.\)c/\1$ngx_objext/"`
|
|
|
|
|
|
|
|
ngx_module_objs=
|
|
|
|
for ngx_src in $ngx_module_srcs
|
|
|
|
do
|
|
|
|
case "$ngx_src" in
|
|
|
|
src/*)
|
|
|
|
ngx_obj=$ngx_src
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
ngx_obj="addon/`basename \`dirname $ngx_src\``"
|
|
|
|
mkdir -p $NGX_OBJS/$ngx_obj
|
|
|
|
ngx_obj="$ngx_obj/`basename $ngx_src`"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
ngx_module_objs="$ngx_module_objs $ngx_obj"
|
|
|
|
done
|
|
|
|
|
|
|
|
ngx_module_objs=`echo $ngx_module_objs \
|
|
|
|
| sed -e "s#\([^ ]*\.\)cpp#$NGX_OBJS\/\1$ngx_objext#g" \
|
|
|
|
-e "s#\([^ ]*\.\)cc#$NGX_OBJS\/\1$ngx_objext#g" \
|
|
|
|
-e "s#\([^ ]*\.\)c#$NGX_OBJS\/\1$ngx_objext#g" \
|
|
|
|
-e "s#\([^ ]*\.\)S#$NGX_OBJS\/\1$ngx_objext#g"`
|
|
|
|
|
|
|
|
ngx_deps=`echo $ngx_module_objs $ngx_modules_obj $LINK_DEPS \
|
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_regex_cont\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
|
|
|
ngx_objs=`echo $ngx_module_objs $ngx_modules_obj \
|
|
|
|
| sed -e "s/ *\([^ ][^ ]*\)/$ngx_long_regex_cont\1/g" \
|
|
|
|
-e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
|
2016-03-10 01:43:00 -06:00
|
|
|
ngx_obj=$NGX_OBJS$ngx_dirsep$ngx_module$ngx_modext
|
2016-02-04 11:25:29 -06:00
|
|
|
|
|
|
|
if [ "$NGX_PLATFORM" = win32 ]; then
|
|
|
|
ngx_module_libs="$CORE_LIBS $ngx_module_libs"
|
|
|
|
fi
|
|
|
|
|
|
|
|
ngx_libs=
|
|
|
|
if test -n "$NGX_LD_OPT$ngx_module_libs"; then
|
|
|
|
ngx_libs=`echo $NGX_LD_OPT $ngx_module_libs \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`
|
|
|
|
fi
|
|
|
|
|
|
|
|
ngx_link=${CORE_LINK:+`echo $CORE_LINK \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`}
|
|
|
|
|
|
|
|
ngx_module_link=${MODULE_LINK:+`echo $MODULE_LINK \
|
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g" -e "s/^/$ngx_long_regex_cont/"`}
|
|
|
|
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
|
|
|
modules: $ngx_obj
|
|
|
|
|
|
|
|
$ngx_obj: $ngx_deps$ngx_spacer
|
|
|
|
\$(LINK) $ngx_long_start$ngx_binout$ngx_obj$ngx_long_cont$ngx_objs$ngx_libs$ngx_link$ngx_module_link
|
|
|
|
$ngx_long_end
|
|
|
|
|
|
|
|
$ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c
|
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_modules_obj$ngx_tab$ngx_modules_c$NGX_AUX
|
|
|
|
|
|
|
|
END
|
|
|
|
|
2016-02-26 05:27:04 -06:00
|
|
|
for ngx_source in $ngx_module_srcs
|
2016-02-04 11:25:29 -06:00
|
|
|
do
|
2016-02-26 05:27:04 -06:00
|
|
|
case "$ngx_source" in
|
2016-02-04 11:25:29 -06:00
|
|
|
src/*)
|
2016-02-26 05:27:04 -06:00
|
|
|
ngx_obj=`echo $ngx_source | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2016-02-04 11:25:29 -06:00
|
|
|
;;
|
|
|
|
*)
|
2016-02-26 05:27:04 -06:00
|
|
|
ngx_obj="addon/`basename \`dirname $ngx_source\``"
|
|
|
|
ngx_obj=`echo $ngx_obj/\`basename $ngx_source\` \
|
2016-02-04 11:25:29 -06:00
|
|
|
| sed -e "s/\//$ngx_regex_dirsep/g"`
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
ngx_obj=`echo $ngx_obj \
|
|
|
|
| sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
|
|
|
|
-e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
|
|
|
|
|
2016-02-26 05:27:04 -06:00
|
|
|
ngx_src=`echo $ngx_source | sed -e "s/\//$ngx_regex_dirsep/g"`
|
2016-02-04 11:25:29 -06:00
|
|
|
|
2016-02-26 05:27:04 -06:00
|
|
|
if [ $ngx_source = src/http/modules/perl/ngx_http_perl_module.c ]; then
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
2016-11-21 07:49:19 -06:00
|
|
|
$ngx_obj: \$(ADDON_DEPS)$ngx_cont$ngx_src
|
2016-02-26 05:27:04 -06:00
|
|
|
$ngx_perl_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
|
|
|
|
|
|
|
END
|
|
|
|
else
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
2016-02-04 11:25:29 -06:00
|
|
|
|
2016-11-21 07:49:19 -06:00
|
|
|
$ngx_obj: \$(ADDON_DEPS)$ngx_cont$ngx_src
|
2016-02-04 11:25:29 -06:00
|
|
|
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
|
|
|
|
|
|
|
|
END
|
|
|
|
|
2016-02-26 05:27:04 -06:00
|
|
|
fi
|
2016-02-04 11:25:29 -06:00
|
|
|
done
|
|
|
|
done
|