2006-01-16 08:56:53 -06:00
|
|
|
|
|
|
|
# Copyright (C) Igor Sysoev
|
2012-01-18 09:07:43 -06:00
|
|
|
# Copyright (C) Nginx, Inc.
|
2006-01-16 08:56:53 -06:00
|
|
|
|
|
|
|
|
|
|
|
cat << END >> $NGX_MAKEFILE
|
|
|
|
|
2016-02-26 05:27:04 -06: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 03:45:45 -05:00
|
|
|
\$(CORE_DEPS) \$(HTTP_DEPS) \\
|
|
|
|
src/http/modules/perl/ngx_http_perl_module.h \\
|
2006-01-16 08:56:53 -06:00
|
|
|
$NGX_OBJS/src/http/modules/perl/Makefile
|
2012-09-11 07:43:59 -05:00
|
|
|
cd $NGX_OBJS/src/http/modules/perl && \$(MAKE)
|
2006-01-16 08:56:53 -06:00
|
|
|
|
2006-10-05 09:18:08 -05:00
|
|
|
rm -rf $NGX_OBJS/install_perl
|
|
|
|
|
2006-01-16 08:56:53 -06:00
|
|
|
|
2013-03-28 03:45:45 -05:00
|
|
|
$NGX_OBJS/src/http/modules/perl/Makefile: \\
|
2013-07-11 11:34:02 -05:00
|
|
|
$NGX_AUTO_CONFIG_H \\
|
2013-03-28 03:47:06 -05:00
|
|
|
src/core/nginx.h \\
|
2013-03-28 03:45:45 -05:00
|
|
|
src/http/modules/perl/Makefile.PL \\
|
2013-03-28 03:46:12 -05:00
|
|
|
src/http/modules/perl/nginx.pm \\
|
|
|
|
src/http/modules/perl/nginx.xs \\
|
|
|
|
src/http/modules/perl/typemap
|
2016-12-16 10:54:37 -06: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 03:47:06 -05: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 08:56:53 -06: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 03:45:45 -05:00
|
|
|
cd $NGX_OBJS/src/http/modules/perl \\
|
|
|
|
&& NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \\
|
2016-09-20 14:11:23 -05:00
|
|
|
NGX_PM_LDFLAGS="$NGX_LD_OPT \$(NGX_PM_LDFLAGS)" \\
|
2013-04-19 07:19:57 -05:00
|
|
|
NGX_INCS="$CORE_INCS $NGX_OBJS $HTTP_INCS" \\
|
2013-04-10 12:07:44 -05:00
|
|
|
NGX_DEPS="\$(CORE_DEPS) \$(HTTP_DEPS)" \\
|
2013-03-28 03:45:45 -05:00
|
|
|
$NGX_PERL Makefile.PL \\
|
|
|
|
LIB=$NGX_PERL_MODULES \\
|
2006-12-24 12:23:11 -06:00
|
|
|
INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
|
2006-01-16 08:56:53 -06:00
|
|
|
|
|
|
|
END
|