aboutsummaryrefslogtreecommitdiffstats
path: root/src/contrib/perl-xs/Makefile.PL
blob: ab28bff1f050783a3bfe628ed84ea353a47c1bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use ExtUtils::MakeMaker;

my ($cc, $cflags, $lids);
if ( $^O eq 'MSWin32' )
{
#    $cflags = '';
#    $libs = ':nosearch -lgdi32 -llibeay32';
}
else
{
    $cc = 'g++';
    $cflags = $Config::Config{ccflags} . ' -Wno-write-strings -fexceptions ' . qx( botan config --cflags );
    $libs = qx( botan config --libs );
}

WriteMakefile(
    'NAME'		=> 'Botan',
    'DISTNAME'		=> 'Botan-XS',
    'VERSION_FROM'	=> 'Botan.pm',		# finds $VERSION
    'XSOPT'		=> '-C++',
    'CC'                => $cc,
    'LD'                => '$(CC)',
    'CCFLAGS'		=> $cflags,
    'LIBS'		=> [ $libs ],
    'OPTIMIZE'		=> '-g',
#    'clean'		=> {
#	    'FILES'	=> 'neco.p12 rnd',
#	},
);