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
|
#!/usr/bin/perl
use 5.010001;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
# Example: /usr/share/doc/libextutils-xspp-perl/examples/Object-WithIntAndString/Makefile.PL
my $CC = 'g++';
WriteMakefile(
NAME => 'FreeContact',
VERSION_FROM => 'lib/FreeContact.pm', # finds $VERSION
PREREQ_PM => {
'ExtUtils::XSpp' => '0.01',
},
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/FreeContact.pm',
AUTHOR => 'Laszlo Kajan <lkajan@rostlab.org>') : ()),
LIBS => ['-lfreecontact'],
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => '-I.',
OBJECT => '$(O_FILES)',
XSOPT => '-C++ -hiertype -noprototypes', # man xsubpp
TYPEMAPS => ['perlobject.map', 'typemap'],
CC => $CC,
LD => '$(CC)',
);
# vim:et:ts=4:ai:
|