5 use ExtUtils::MakeMaker;
9 ********************************* WARNING **********************************
11 This module uses Dist::Zilla for development. This Build.PL will let you run
12 the tests, but you are encouraged to install Dist::Zilla and the needed
13 plugins if you intend on doing any serious hacking.
15 ****************************************************************************
19 my $ccflags = ( $Config::Config{ccflags} || '' ) . ' -I.';
20 $ccflags .= ' -Wall -Wdeclaration-after-statement';
22 my %mm = ( CCFLAGS => $ccflags );
27 for my $xs (<xs/*.xs>) {
28 (my $c = $xs) =~ s/\.xs$/.c/i;
29 (my $o = $xs) =~ s/\.xs$/\$(OBJ_EXT)/i;
36 (my $o = $c) =~ s/\.c$/\$(OBJ_EXT)/i;
42 clean => { FILES => join( q{ }, @OBJECT ) },
43 OBJECT => join( q{ }, @OBJECT ),
58 my $ret = shift->SUPER::const_cccmd(@_);
59 return q{} unless $ret;
61 if ($Config{cc} =~ /^cl\b/i) {
62 warn 'you are using MSVC... my condolences.';