Mercurial > hg > nginx
annotate src/http/modules/perl/Makefile.PL @ 5168:482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
To avoid further breaks it's now done properly, all the dependencies
are now passed to Makefile.PL. While here, fixed include list passed to
Makefile.PL to use Makefile variables rather than a list expanded during
configure.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 10 Apr 2013 17:07:44 +0000 |
parents | ae3ebf5ac8cd |
children | 2db6bdcaedc0 |
rev | line source |
---|---|
599 | 1 |
2 # Copyright (C) Igor Sysoev | |
4412 | 3 # Copyright (C) Nginx, Inc. |
599 | 4 |
5 use 5.006001; | |
6 use ExtUtils::MakeMaker; | |
7 | |
8 WriteMakefile( | |
9 NAME => 'nginx', | |
10 VERSION_FROM => 'nginx.pm', # finds $VERSION | |
11 PREREQ_PM => {}, # e.g., Module::Name => 1.1 | |
12 | |
13 ABSTRACT_FROM => 'nginx.pm', # retrieve abstract from module | |
14 AUTHOR => 'Igor Sysoev', | |
15 | |
681 | 16 CCFLAGS => "$ENV{NGX_PM_CFLAGS}", |
619 | 17 OPTIMIZE => '-O', |
599 | 18 |
4945
ae3ebf5ac8cd
Fixed build with embedded perl in certain setups (ticket #48).
Ruslan Ermilov <ru@nginx.com>
parents:
4473
diff
changeset
|
19 INC => join(" ", map { |
ae3ebf5ac8cd
Fixed build with embedded perl in certain setups (ticket #48).
Ruslan Ermilov <ru@nginx.com>
parents:
4473
diff
changeset
|
20 m#^/# ? "-I $_" : "-I ../../../../../$_" |
ae3ebf5ac8cd
Fixed build with embedded perl in certain setups (ticket #48).
Ruslan Ermilov <ru@nginx.com>
parents:
4473
diff
changeset
|
21 } (split /\s+/, $ENV{NGX_INCS})), |
599 | 22 |
23 depend => { | |
5168
482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
Maxim Dounin <mdounin@mdounin.ru>
parents:
4945
diff
changeset
|
24 'nginx.c' => join(" ", map { |
482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
Maxim Dounin <mdounin@mdounin.ru>
parents:
4945
diff
changeset
|
25 "../../../../../$_" |
482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
Maxim Dounin <mdounin@mdounin.ru>
parents:
4945
diff
changeset
|
26 } (split(/\s+/, $ENV{NGX_DEPS}), |
482fda984556
Configure: fixed nginx.so rebuild (broken by r5145).
Maxim Dounin <mdounin@mdounin.ru>
parents:
4945
diff
changeset
|
27 "src/http/modules/perl/ngx_http_perl_module.h")) |
599 | 28 }, |
29 | |
30 PM => { | |
31 'nginx.pm' => '$(INST_LIBDIR)/nginx.pm' | |
32 } | |
33 ); |