X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=Makefile.PL;h=406476e1cd3166b47d6271f116e003f6093f26b4;hb=HEAD;hp=05b01e69c339d3c8183d394c7ea58f378047b780;hpb=c61dec8ff21760377f7aea48fcc69defb091c14f;p=chaz%2Fp5-File-KDBX-XS diff --git a/Makefile.PL b/Makefile.PL index 05b01e6..406476e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -14,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 @@ -56,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 @@ -68,6 +69,7 @@ if ($^O !~ /^(MSWin32|darwin|solaris)$/ && ($Config{ld} =~ /gcc|g\+\+/ || $Confi my %eumm_args = ( 'NAME' => 'File::KDBX::XS',##{ # List NAME explicitly here so it works even without dzil. ##} + 'VERSION' => '999.999', ##{ $plugin->get_default(qw{ABSTRACT AUTHOR DISTNAME LICENSE MIN_PERL_VERSION VERSION test}) ##} ##{ $plugin->get_prereqs(1) ##} @EUMM_INC_LIB, @@ -93,7 +95,7 @@ sub MY::postamble { }; $extra_targets = qq{ -\$(MYEXTLIB): libtomcrypt/Makefile +\$(MYEXTLIB): libtomcrypt/Makefile.nmake \tcd libtomcrypt && \$(MAKE) -f Makefile.nmake CFLAGS="$mycflags" } if $^O eq 'MSWin32' && $Config{make} =~ /nmake/ && $Config{cc} =~ /cl/;