Commit | Line | Data |
72b16652 |
1 | use ExtUtils::MakeMaker; |
1cb0fb50 |
2 | use ExtUtils::Constant 0.11 'WriteConstants'; |
72b16652 |
3 | WriteMakefile( |
4 | NAME => 'File::Glob', |
5 | VERSION_FROM => 'Glob.pm', |
6 | MAN3PODS => {}, # Pods will be built by installman. |
7 | OBJECT => 'bsd_glob$(OBJ_EXT) Glob$(OBJ_EXT)', |
ece2ffd9 |
8 | realclean => {FILES=> 'const-c.inc const-xs.inc'}, |
72b16652 |
9 | |
10 | ## uncomment for glob debugging (will cause make test to fail) |
11 | # DEFINE => '-DGLOB_DEBUG', |
12 | # OPTIMIZE => '-g', |
13 | ); |
19e194ad |
14 | use Config; |
15 | sub MY::cflags { |
16 | package MY; |
17 | my $inherited = shift->SUPER::cflags(@_); |
18 | if ($Config::Config{archname} =~ /^aix/ and |
19 | $Config::Config{use64bitall} eq 'define') { |
20 | $inherited =~ s/\s-O\d?//m; |
21 | } |
22 | $inherited; |
23 | } |
72f7b9a1 |
24 | |
25 | WriteConstants( |
26 | NAME => 'File::Glob', |
27 | NAMES => [qw(GLOB_ABEND GLOB_ALPHASORT GLOB_ALTDIRFUNC GLOB_BRACE GLOB_ERR |
28 | GLOB_LIMIT GLOB_MARK GLOB_NOCASE GLOB_NOCHECK GLOB_NOMAGIC |
1e2c6ed7 |
29 | GLOB_NOSORT GLOB_NOSPACE GLOB_QUOTE GLOB_TILDE), |
89ca4ac7 |
30 | {name=>"GLOB_ERROR", macro=>["#ifdef GLOB_ERROR\n\tdMY_CXT;\n\n","#endif\n"]}], |
72f7b9a1 |
31 | BREAKOUT_AT => 8, |
32 | ); |