2006-01-16 22:56:53 +08:00
|
|
|
|
|
|
|
# Copyright (C) Igor Sysoev
|
2012-01-18 23:07:43 +08:00
|
|
|
# Copyright (C) Nginx, Inc.
|
2006-01-16 22:56:53 +08:00
|
|
|
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
2016-02-26 19:27:04 +08:00
|
|
|
$NGX_OBJS/src/http/modules/perl/ngx_http_perl_module.o: \\
|
|
|
|
$NGX_OBJS/$ngx_perl_module
|
|
|
|
|
|
|
|
$NGX_OBJS/$ngx_perl_module: \\
|
2013-03-28 16:45:45 +08:00
|
|
|
\$(CORE_DEPS) \$(HTTP_DEPS) \\
|
|
|
|
src/http/modules/perl/ngx_http_perl_module.h \\
|
2006-01-16 22:56:53 +08:00
|
|
|
$NGX_OBJS/src/http/modules/perl/Makefile
|
2012-09-11 20:43:59 +08:00
|
|
|
cd $NGX_OBJS/src/http/modules/perl && \$(MAKE)
|
2006-01-16 22:56:53 +08:00
|
|
|
|
2006-10-05 22:18:08 +08:00
|
|
|
rm -rf $NGX_OBJS/install_perl
|
|
|
|
|
2006-01-16 22:56:53 +08:00
|
|
|
|
2013-03-28 16:45:45 +08:00
|
|
|
$NGX_OBJS/src/http/modules/perl/Makefile: \\
|
2013-07-12 00:34:02 +08:00
|
|
|
$NGX_AUTO_CONFIG_H \\
|
2013-03-28 16:47:06 +08:00
|
|
|
src/core/nginx.h \\
|
2013-03-28 16:45:45 +08:00
|
|
|
src/http/modules/perl/Makefile.PL \\
|
2013-03-28 16:46:12 +08:00
|
|
|
src/http/modules/perl/nginx.pm \\
|
|
|
|
src/http/modules/perl/nginx.xs \\
|
|
|
|
src/http/modules/perl/typemap
|
2016-12-17 00:54:37 +08:00
|
|
|
grep 'define NGINX_VERSION' src/core/nginx.h \\
|
|
|
|
| sed -e 's/^.*"\(.*\)".*/\1/' > \\
|
|
|
|
$NGX_OBJS/src/http/modules/perl/version
|
|
|
|
sed "s/%%VERSION%%/\`cat $NGX_OBJS/src/http/modules/perl/version\`/" \\
|
|
|
|
src/http/modules/perl/nginx.pm > \\
|
2013-03-28 16:47:06 +08:00
|
|
|
$NGX_OBJS/src/http/modules/perl/nginx.pm
|
|
|
|
cp -p src/http/modules/perl/nginx.xs $NGX_OBJS/src/http/modules/perl/
|
2006-01-16 22:56:53 +08:00
|
|
|
cp -p src/http/modules/perl/typemap $NGX_OBJS/src/http/modules/perl/
|
|
|
|
cp -p src/http/modules/perl/Makefile.PL $NGX_OBJS/src/http/modules/perl/
|
|
|
|
|
2013-03-28 16:45:45 +08:00
|
|
|
cd $NGX_OBJS/src/http/modules/perl \\
|
|
|
|
&& NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \\
|
2016-09-21 03:11:23 +08:00
|
|
|
NGX_PM_LDFLAGS="$NGX_LD_OPT \$(NGX_PM_LDFLAGS)" \\
|
2013-04-19 20:19:57 +08:00
|
|
|
NGX_INCS="$CORE_INCS $NGX_OBJS $HTTP_INCS" \\
|
2013-04-11 01:07:44 +08:00
|
|
|
NGX_DEPS="\$(CORE_DEPS) \$(HTTP_DEPS)" \\
|
2013-03-28 16:45:45 +08:00
|
|
|
$NGX_PERL Makefile.PL \\
|
|
|
|
LIB=$NGX_PERL_MODULES \\
|
2006-12-25 02:23:11 +08:00
|
|
|
INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
|
2006-01-16 22:56:53 +08:00
|
|
|
|
|
|
|
END
|