File: Makefile.PL

package info (click to toggle)
libalgorithm-svm-perl 0.13-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: cpp: 3,051; perl: 364; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use ExtUtils::MakeMaker;
use Config;

$CC = 'g++';

%args = ('CCFLAGS' => "-Wall $Config{ccflags}");

if($^O eq 'cygwin') {
  $args{'LDDLFLAGS'} = '-shared -L/usr/local/lib';
}

WriteMakefile('NAME'          => 'Algorithm::SVM',
	      'VERSION_FROM'  => 'lib/Algorithm/SVM.pm',
	      'PREREQ_PM'     => {},
	      ($] >= 5.005 ?
	       (ABSTRACT_FROM => 'lib/Algorithm/SVM.pm',
		AUTHOR        => 'Matthew Laird <matt@brinkman.mbb.sfu.ca>') : ()),
	      'OPTIMIZE'      => '-O3',  # segfaults with gcc 2.96 if lower (?)
	      'LIBS'          => '-lsvm',
	      'CC'            => $CC,
	      'LD'            => '$(CC)',
	      'OBJECT'        => 'SVM.o bindings.o',
	      'XSOPT'         => '-C++ -noprototypes',
              %args);