File: Makefile.PL

package info (click to toggle)
pdl 1%3A2.4.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,140 kB
  • ctags: 3,310
  • sloc: perl: 22,273; ansic: 7,467; fortran: 6,374; sh: 214; makefile: 53
file content (27 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
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
use ExtUtils::MakeMaker;

@pack = (["matrixops.pd",MatrixOps,PDL::MatrixOps]);
%hash = pdlpp_stdargs_int(@::pack);

PDL::Core::Dev->import();

%source = qw(blas blas
	     eigens eigens
	     simq simq
	     svd svd
	     );

foreach $func(sort keys %source) {
  $file = $source{$func};
  next if $file eq 'system';
  $hash{OBJECT} .= " $file\$(OBJ_EXT)" unless $seen{$file}++;
  $hash{DEFINE} .= ' -DMY_'.uc($func);
}

$hash{LIBS}->[0] .= " -lm ";

WriteMakefile( %hash );

sub MY::postamble {
  pdlpp_postamble_int(@::pack);
}