X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-perl/blobdiff_plain/f9952aec1cf6c64a5681308eea817b6113a37433..fcd15e0b7a3d0f0ca2f30953573f8d1f6b8e8bd2:/Makefile.PL diff --git a/Makefile.PL b/Makefile.PL index 88318e2..9d06e47 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -28,6 +28,17 @@ use ExtUtils::MakeMaker; use Config; +sub pmfix { + my $h = {}; + foreach my $i (@_) { + my $f = $i; + $f =~ s!::!/!; + $f .= ".pm"; + $h->{$f} = "\$(INST_LIBDIR)/$f"; + } + return $h; +} + WriteMakefile(NAME => "Catacomb", DISTNAME => "catacomb-perl", AUTHOR => "Mark Wooding (mdw\@nsict.org)", @@ -37,12 +48,17 @@ WriteMakefile(NAME => "Catacomb", @{[qw(algs mpstuff catacomb algstuff keystuff pgproc utils)]}), CONFIGURE => \&configure, + PM => pmfix(Catacomb, Catacomb::Base, Catacomb::Cache, + Catacomb::MP, Catacomb::Field, Catacomb::EC, + Catacomb::Group, Catacomb::GF, Catacomb::Rand, + Catacomb::Crypto, Catacomb::Key), + PERL_MALLOC_OK => 1, PL_FILES => { 'algs.PL' => 'algs.c' }, depend => { '$(MAKEFILE)' => '$(VERSION_FROM)', 'catacomb.c' => join(" ", grep { s/$/.xs/ } @{[qw(catacomb algorithms mp field ec - gf misc pgen key)]}) + gf misc pgen key group pubkey)]}) }, VERSION_FROM => "Catacomb.pm");