2006-01-16 22:56:53 +08:00
|
|
|
|
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
use 5.006001;
|
|
|
|
use ExtUtils::MakeMaker;
|
|
|
|
|
|
|
|
WriteMakefile(
|
|
|
|
NAME => 'nginx',
|
|
|
|
VERSION_FROM => 'nginx.pm', # finds $VERSION
|
|
|
|
PREREQ_PM => {}, # e.g., Module::Name => 1.1
|
|
|
|
|
|
|
|
ABSTRACT_FROM => 'nginx.pm', # retrieve abstract from module
|
|
|
|
AUTHOR => 'Igor Sysoev',
|
|
|
|
|
2006-08-30 18:39:17 +08:00
|
|
|
CCFLAGS => "$ENV{NGX_PM_CFLAGS}",
|
2006-03-10 20:51:52 +08:00
|
|
|
OPTIMIZE => '-O',
|
2006-01-16 22:56:53 +08:00
|
|
|
|
|
|
|
INC => "-I ../../../../../src/core " .
|
|
|
|
"-I ../../../../../src/event " .
|
|
|
|
"-I ../../../../../src/os/unix " .
|
|
|
|
"-I ../../../../../src/http " .
|
|
|
|
"-I ../../../../../src/http/modules " .
|
|
|
|
"-I ../../../../../src/http/modules/perl " .
|
|
|
|
"-I ../../../../../$ENV{NGX_OBJS} " .
|
2006-08-30 18:39:17 +08:00
|
|
|
($ENV{NGX_PCRE} =~ /^(YES|NO)/ ? "" :
|
|
|
|
($ENV{NGX_PCRE} =~ m#^/# ? "-I $ENV{NGX_PCRE} " :
|
|
|
|
"-I ../../../../../$ENV{NGX_PCRE} ")),
|
2006-01-16 22:56:53 +08:00
|
|
|
|
|
|
|
depend => {
|
|
|
|
'nginx.c' =>
|
|
|
|
"../../../../../src/http/modules/perl/ngx_http_perl_module.h"
|
|
|
|
},
|
|
|
|
|
|
|
|
PM => {
|
|
|
|
'nginx.pm' => '$(INST_LIBDIR)/nginx.pm'
|
|
|
|
}
|
|
|
|
);
|