blob: 49eb5cf3430a2dab7b44be4158a833833afe9a48 [file] [log] [blame]
Igor Sysoev9bf11aa2006-01-16 14:56:53 +00001
2# Copyright (C) Igor Sysoev
3
4
5cat << END >> $NGX_MAKEFILE
6
7$NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so: \
8 src/http/modules/perl/nginx.pm \
9 src/http/modules/perl/nginx.xs \
10 src/http/modules/perl/ngx_http_perl_module.h \
11 $NGX_OBJS/src/http/modules/perl/Makefile
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000012 cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/
13
14 cd $NGX_OBJS/src/http/modules/perl && make
15
Igor Sysoev54ed5aa2006-10-05 14:18:08 +000016 rm -rf $NGX_OBJS/install_perl
17
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000018
Igor Sysoevae33d012006-01-17 20:04:32 +000019$NGX_OBJS/src/http/modules/perl/Makefile: \
20 src/http/modules/perl/Makefile.PL \
21 src/http/modules/perl/nginx.pm
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000022 cp -p src/http/modules/perl/nginx.* $NGX_OBJS/src/http/modules/perl/
23 cp -p src/http/modules/perl/typemap $NGX_OBJS/src/http/modules/perl/
24 cp -p src/http/modules/perl/Makefile.PL $NGX_OBJS/src/http/modules/perl/
25
26 cd $NGX_OBJS/src/http/modules/perl \
Igor Sysoevda173ab2006-08-30 10:39:17 +000027 && NGX_PM_CFLAGS="\$(NGX_PM_CFLAGS) -g $NGX_CC_OPT" \
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000028 NGX_PCRE=$PCRE \
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000029 NGX_OBJS=$NGX_OBJS \
30 $NGX_PERL Makefile.PL \
Igor Sysoevb4887b22006-12-24 18:12:18 +000031 LIB=$NGX_PERL_MODULES \
Igor Sysoev948265b2006-12-24 18:23:11 +000032 INSTALLSITEMAN3DIR=$NGX_PERL_MODULES_MAN
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000033
Igor Sysoev9bf11aa2006-01-16 14:56:53 +000034END