Commit | Line | Data |
34f7f30d |
1 | use 5.006; |
159fce98 |
2 | use strict; |
3 | use warnings; |
b4ad57f4 |
4 | use ExtUtils::MakeMaker; |
5 | |
f9f7a334 |
6 | unless ($^O eq "MSWin32" || $^O eq "cygwin") { |
7 | die "OS unsupported\n"; |
8 | } |
9 | |
159fce98 |
10 | my %param = ( |
34f7f30d |
11 | NAME => 'Win32', |
12 | VERSION_FROM => 'Win32.pm', |
34f7f30d |
13 | INSTALLDIRS => ($] >= 5.008004 ? 'perl' : 'site'), |
b4ad57f4 |
14 | ); |
159fce98 |
15 | $param{NO_META} = 1 if eval "$ExtUtils::MakeMaker::VERSION" >= 6.10_03; |
16 | $param{LIBS} = ['-L/lib/w32api -lole32 -lversion'] if $^O eq "cygwin"; |
17 | |
18 | WriteMakefile(%param); |