]> Dogcows Code - chaz/p5-File-KDBX-XS/blobdiff - Makefile.PL
add more files to clean
[chaz/p5-File-KDBX-XS] / Makefile.PL
index 4e627012a3e34d2dc31001ba8aaaa3cf8d154f57..4649ca4ae463a9e3826d1f953ac00b3a146660b9 100644 (file)
@@ -1,5 +1,8 @@
 #!/usr/bin/env perl
 
+# A lot of this is cargo-culted from CryptX which has already gone through a lot of working around platform
+# incompatibilities which we're grateful to take advantage of here -- thanks cpan:MIK!
+
 use warnings;
 use strict;
 
@@ -11,7 +14,7 @@ use ExtUtils::MakeMaker;
 my (@EUMM_INC_LIB, $myarflags, $mycflags);
 
 # use bundled libtomcrypt
-my @myobjs = map { /^(.*)\.c$/ ? "$1.$Config{obj_ext}" : () } qw(
+my @myobjs = map { /^(.*)\.c$/ ? "$1$Config{obj_ext}" : () } qw(
     libtomcrypt/src/ciphers/aes/aes.c
     libtomcrypt/src/misc/compare_testvector.c
     libtomcrypt/src/misc/crypt/crypt_argchk.c
@@ -53,6 +56,7 @@ $mycflags = "$mycflags -Wall -Werror -Wextra" if $ENV{AUTHOR_MODE};
                                                                 : '-DLTM_DESC -Ilibtomcrypt/src/headers',
     MYEXTLIB    => "libtomcrypt/libonlyaes$Config{lib_ext}",
     clean       => { FILES => join(' ', @myobjs, "libtomcrypt/libonlyaes$Config{lib_ext}") },
+    realclean   => { FILES => join(' ', qw{cover_db *.gcda *.gcno *.gcov})},
 );
 
 #FIX: https://github.com/DCIT/perl-CryptX/pull/79
@@ -64,7 +68,8 @@ if ($^O !~ /^(MSWin32|darwin|solaris)$/ && ($Config{ld} =~ /gcc|g\+\+/ || $Confi
 }
 
 my %eumm_args = (
-##{ $plugin->get_default(qw{ABSTRACT AUTHOR DISTNAME LICENSE MIN_PERL_VERSION NAME VERSION test}) ##}
+  'NAME' => 'File::KDBX::XS',##{  # List NAME explicitly here so it works even without dzil. ##}
+##{ $plugin->get_default(qw{ABSTRACT AUTHOR DISTNAME LICENSE MIN_PERL_VERSION VERSION test}) ##}
 ##{ $plugin->get_prereqs(1) ##}
     @EUMM_INC_LIB,
 );
This page took 0.021 seconds and 4 git commands to generate.