File: Makefile.PL

package info (click to toggle)
libpdl-linearalgebra-perl 0.12-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,936 kB
  • sloc: perl: 5,291; makefile: 6
file content (37 lines) | stat: -rwxr-xr-x 1,615 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37

# Use this as a template for the Makefile.PL for
# any external PDL module.

use ExtUtils::MakeMaker;
use PDL::Core::Dev;
use Config;
do('../Config');

@pack = (["real.pd",Real,PDL::LinearAlgebra::Real]);
%hash = pdlpp_stdargs(@::pack);
#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml ';
#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lblas -latlas ';
# $hash{'OPTIMIZE'}  = '-g'; # If you want to debug, uncomment this.
#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml ';
#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lblas -latlas ';
#$hash{'OPTIMIZE'}  = '-O2 -mtune=k8'; # If you want to debug, uncomment this.

$hash{LIBS}[0] .= ( eval {require PkgConfig; join ' ', PkgConfig->find('lapack')->get_ldflags} ||
                    eval {require ExtUtils::PkgConfig; ExtUtils::PkgConfig->libs('lapack')} ||
                    `pkg-config lapack blas --libs` ||
                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lquadmath";

$hash{LDLOADLIBS} .= 'oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib  ../lapack/libacml.lib "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrt.lib" ' if $^O =~ /MSWin/ && $Config{cc} eq 'cl';

WriteMakefile(
	%hash,
	'VERSION_FROM' => 'real.pd',
        'clean' => { FILES => '*~' },
);

# Add genpp rule
# add other makefile additions as required (see also ExtUtils::MakeMaker)
sub MY::postamble {
	pdlpp_postamble(@::pack);
}