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
|
|
|
|
|
|
|
|
2013-03-28 16:47:06 +08:00
|
|
|
v=`grep 'define NGINX_VERSION' src/core/nginx.h | sed -e 's/^.*"\(.*\)".*/\1/'`
|
|
|
|
|
|
|
|
|
2006-01-16 22:56:53 +08:00
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
2013-03-28 16:46:42 +08:00
|
|
|
$NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext: \\
|
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-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
|
2013-03-28 16:47:06 +08:00
|
|
|
sed "s/%%VERSION%%/$v/" src/http/modules/perl/nginx.pm > \\
|
|
|
|
$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" \\
|
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
|