1999-02-10 17:38:31 +08:00
|
|
|
##
|
|
|
|
## Makefile.PL -- Perl MakeMaker specification
|
|
|
|
##
|
|
|
|
|
1999-07-23 00:10:31 +08:00
|
|
|
open(IN,"<../Makefile.ssl") || die "unable to open Makefile.ssl!\n";
|
|
|
|
while(<IN>) {
|
|
|
|
$V=$1 if (/^VERSION=(.*)$/);
|
|
|
|
}
|
|
|
|
close(IN);
|
1999-03-08 19:25:49 +08:00
|
|
|
print "Configuring companion Perl module for OpenSSL $V\n";
|
|
|
|
|
1998-12-21 18:56:39 +08:00
|
|
|
use ExtUtils::MakeMaker;
|
1999-02-10 17:38:31 +08:00
|
|
|
|
1998-12-21 18:56:39 +08:00
|
|
|
WriteMakefile(
|
1999-02-10 17:38:31 +08:00
|
|
|
'OPTIMIZE' => '',
|
1999-03-08 19:25:49 +08:00
|
|
|
'DISTNAME' => "openssl-$V",
|
1999-02-10 17:38:31 +08:00
|
|
|
'NAME' => 'OpenSSL',
|
|
|
|
'VERSION_FROM' => 'OpenSSL.pm',
|
1999-03-08 19:25:49 +08:00
|
|
|
'LIBS' => ( $^O eq 'MSWin32'
|
|
|
|
? [ '-L../out32dll -lssleay32 -llibeay32' ]
|
|
|
|
: [ '-L.. -lssl -lcrypto' ] ),
|
1999-02-10 17:38:31 +08:00
|
|
|
'DEFINE' => '',
|
|
|
|
'INC' => '-I../include',
|
|
|
|
'H' => ['openssl.h'],
|
|
|
|
'OBJECT' =>
|
|
|
|
'OpenSSL.o ' .
|
|
|
|
'openssl_bio.o ' .
|
|
|
|
'openssl_bn.o ' .
|
|
|
|
'openssl_cipher.o ' .
|
|
|
|
'openssl_digest.o ' .
|
|
|
|
'openssl_err.o ' .
|
|
|
|
'openssl_ssl.o ' .
|
|
|
|
'openssl_x509.o ',
|
|
|
|
'XS' => {
|
|
|
|
'OpenSSL.xs' => 'OpenSSL.c',
|
|
|
|
'openssl_bio.xs' => 'openssl_bio.c',
|
|
|
|
'openssl_bn.xs' => 'openssl_bn.c',
|
|
|
|
'openssl_cipher.xs' => 'openssl_cipher.c',
|
|
|
|
'openssl_digest.xs' => 'openssl_digest.c',
|
|
|
|
'openssl_err.xs' => 'openssl_err.c',
|
|
|
|
'openssl_ssl.xs' => 'openssl_ssl.c',
|
|
|
|
'openssl_x509.xs' => 'openssl_x509.c',
|
|
|
|
},
|
|
|
|
);
|
|
|
|
|