Commit | Line | Data |
d9b022a1 |
1 | #!/usr/bin/perl -w |
177ebd37 |
2 | use 5.005; |
6cc998b7 |
3 | use ExtUtils::MakeMaker; |
d9b022a1 |
4 | use strict; |
6cc998b7 |
5 | |
5f03b77e |
6 | use Config; |
7 | (unpack "B*", pack "N", $Config{ptrsize}) =~ /^0+1(0+)$/ |
390777e7 |
8 | or die "Your pointer size of $Config{ptrsize} is very confusing"; |
5f03b77e |
9 | my $ptr_bits = length $1; |
10 | |
1a36ac09 |
11 | WriteMakefile( |
c07e8ef8 |
12 | OPTIMIZE => "-g", |
d3b8a135 |
13 | NAME => 'Devel::Memory', |
14 | VERSION_FROM => 'lib/Devel/Memory.pm', |
15 | DEFINE => "-DALIGN_BITS=$ptr_bits", |
986013ef |
16 | PREREQ_PM => { |
17 | 'Test::More' => 0, |
18 | 'JSON::XS' => 0, |
19 | 'HTML::Entities' => 0, |
63cf269b |
20 | 'Mojolicious::Lite' => 0, |
21 | 'Devel::Dwarn' => 0, |
986013ef |
22 | XSLoader => 0, |
7cc24077 |
23 | ORLite => 0, |
986013ef |
24 | }, |
d3b8a135 |
25 | EXE_FILES => [ 'bin/dmemtree.pl' ], |
26 | (eval $ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => '5.005') : ()), |
27 | (eval $ExtUtils::MakeMaker::VERSION >= 6.31 ? (LICENSE => 'perl') : ()), |
6cc998b7 |
28 | ); |