forked from Grian/Storable-AMF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
64 lines (57 loc) · 2.16 KB
/
Makefile.PL
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
use strict;
use ExtUtils::MakeMaker;
use constant { MIN_PERL_VERSION => 5.008001 };
use Config;
exit if ( @ARGV && $ARGV[0] eq '--stop' );
# Perl 5.6.2 or less not supported
if ( $] < MIN_PERL_VERSION ) {
print "Perl $] not supported by this module\n";
exit(0);
}
our %MyModule = (
PREREQ_PM => {
# 'Module::Build::Compat' => 0.02,
# 'Module::Build' => 0.2,
'XSLoader' => 0.06,
}, # e.g., Module::Name => 1.1
ABSTRACT => 'serializing/deserializing AMF0/AMF3 data',
AUTHOR => 'Grishaev Anatoliy <[email protected]>',
$ExtUtils::MakeMaker::VERSION >= 6.48 ? ( MIN_PERL_VERSION => MIN_PERL_VERSION ) : (),
$ExtUtils::MakeMaker::VERSION >= 6.46
? (
META_MERGE => {
resources => {
'repository' => 'git://github.com/Grian/Storable-AMF.git',
'license' => 'http://dev.perl.org/licenses/',
'homepage' => 'http://search.cpan.org/dist/Storable-AMF',
'bugtracker' =>
'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Storable-AMF',
}
}
)
: (),
$ExtUtils::MakeMaker::VERSION >= 6.31 ? ( LICENSE => 'perl' ) : (),
NAME => 'Storable::AMF',
VERSION_FROM => 'lib/Storable/AMF0.pm', # finds $VERSION
INC => '-I.', # e.g., '-I. -I/usr/include/other'
# Un-comment this if you add C files to link with later:
# OBJECT => '$(O_FILES)', # link all the C files too
OPTIMIZE => "-O3 -pipe -fomit-frame-pointer ",
);
if ( $Config{osname} =~ /solaris/ or $Config{cc} eq 'cl' ){
delete $MyModule{OPTIMIZE}
};
if ( $Config{cc} eq 'gcc' || $Config{gccversion}) {
if (0 && $Config{osname}!~m/Win32/i ){
for ($MyModule{CCFLAGS} ){
$_ .= ' -Wunused';
$_ .= ' -Wuninitialized';
$_ .= ' -Wall';
#$_ .= ' -Wunreachable-code';
#$_ .= ' -Wunsafe-loop-optimizations';
};
}
#$MyModule{CCFLAGS} = '-Wunused-variable -Wunused-label -Wunused-function -Wuninitialized -Wunused-value'
}
WriteMakefile(%MyModule);
# -march=opteron -O3 -pipe -fomit-frame-pointer