X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=Makefile.PL;h=21d5d608c1e0d8fd57aa8968ef18013971d794c0;hb=edf0073dbd02a322815c772215b10a5212637910;hp=05b01e69c339d3c8183d394c7ea58f378047b780;hpb=c61dec8ff21760377f7aea48fcc69defb091c14f;p=chaz%2Fp5-File-KDBX-XS diff --git a/Makefile.PL b/Makefile.PL index 05b01e6..21d5d60 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 @@ -93,7 +94,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/;