File: Makefile.PL

package info (click to toggle)
libfreecontact-perl 0.08-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 280 kB
  • ctags: 6
  • sloc: perl: 87; makefile: 12
file content (28 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (4)
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: