File: Makefile.PL.pkg

package info (click to toggle)
libpdl-linearalgebra-perl 0.12-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,932 kB
  • ctags: 253
  • sloc: perl: 5,291; makefile: 6
file content (25 lines) | stat: -rwxr-xr-x 894 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

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

use ExtUtils::MakeMaker;
PDL::Core::Dev->import();

@pack = (["Complex.pd",Complex, PDL::LinearAlgebra::Complex]);

%hash = pdlpp_stdargs_int(@::pack);
# $hash{'OPTIMIZE'}  = '-g'; # If you want to debug, uncomment this.
$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lf77blas -lcblas -latlas -lg2c ';

$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/lapack.lib' if $^O =~ /MSWin/;
WriteMakefile(
	%hash,
	'VERSION_FROM' => "complex.pd",
);

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