blob: c33b1fc72ffa206611e65af8650f76fe88b6ccf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# 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',
CCFLAGS => "$ENV{NGX_PM_CFLAGS}",
OPTIMIZE => '-O',
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} " .
($ENV{NGX_PCRE} =~ /^(YES|NO)/ ? "" :
($ENV{NGX_PCRE} =~ m#^/# ? "-I $ENV{NGX_PCRE} " :
"-I ../../../../../$ENV{NGX_PCRE} ")),
depend => {
'nginx.c' =>
"../../../../../src/http/modules/perl/ngx_http_perl_module.h"
},
PM => {
'nginx.pm' => '$(INST_LIBDIR)/nginx.pm'
}
);
|