7 use Cwd qw( abs_path );
8 use File::Basename qw( dirname );
13 my $ccflags = q<( $Config::Config{ccflags} || '' ) . ' -I.'>;
14 $ccflags .= q< . ' -Wall -Wdeclaration-after-statement'>
23 return eval(ccflags_dyn($is_dev));
29 for my $xs ( glob "xs/*.xs" ) {
30 ( my $c = $xs ) =~ s/\.xs$/.c/i;
31 ( my $o = $xs ) =~ s/\.xs$/\$(OBJ_EXT)/i;
37 for my $c ( glob "*.c" ) {
38 ( my $o = $c ) =~ s/\.c$/\$(OBJ_EXT)/i;
43 clean => { FILES => join( q{ }, @object ) },
44 OBJECT => join( q{ }, @object ),
58 $message = <<'MESSAGE';
60 ********************************* ERROR ************************************
62 This module uses Dist::Zilla for development. This Makefile.PL will let you
63 run the tests, but should not be used for installation or building dists.
64 Building a dist should be done with 'dzil build', installation should be
65 done with 'dzil install', and releasing should be done with 'dzil release'.
67 ****************************************************************************
70 $message =~ s/^(.*)$/\t\$(NOECHO) echo "$1";/mg;
74 my $ret = shift->SUPER::const_cccmd(@_);
75 return q{} unless $ret;
77 if ($Config{cc} =~ /^cl\b/i) {
78 warn 'you are using MSVC... my condolences.';
98 \$(NOECHO) echo "Running dzil install for you...";
99 \$(NOECHO) dzil install
107 \$(NOECHO) echo "Running dzil build for you...";
108 \$(NOECHO) dzil build