Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /Complex/Makefile.PL [3ed49e] .. [591b21] Maximize Restore

  Switch to unified view

a/Complex/Makefile.PL b/Complex/Makefile.PL
1
1
2
# Use this as a template for the Makefile.PL for
2
# Use this as a template for the Makefile.PL for

3
# any external PDL module.
3
# any external PDL module.

4
4
5
use ExtUtils::MakeMaker;
5
use ExtUtils::MakeMaker;

6
use PDL::Core::Dev;
6
use PDL::Core::Dev;

7
use Config;
7
8
9
@pack = (["complex.pd",Complex, PDL::LinearAlgebra::Complex]);
8
@pack = (["complex.pd",Complex, PDL::LinearAlgebra::Complex]);

10
9
11
%hash = pdlpp_stdargs(@::pack);
10
%hash = pdlpp_stdargs(@::pack);

12
# $hash{'OPTIMIZE'}  = '-g'; # If you want to debug, uncomment this.
11
# $hash{'OPTIMIZE'}  = '-g'; # If you want to debug, uncomment this.

13
#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml -lgfortran ';
12
#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-lacml -lgfortran ';

14
#$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lblas -latlas ';
13
$hash{LIBS}[0] .= $^O =~ /MSWin/ ? '' : '-L/usr/lib/atlas -llapack -lblas -latlas ';

15
#$hash{'OPTIMIZE'}  = '-O2 -mtune=k8'; # If you want to debug, uncomment this.
14
#$hash{'OPTIMIZE'}  = '-O2 -mtune=k8'; # If you want to debug, uncomment this.

16
15
17
$hash{LIBS}[0] .= ( eval {require PkgConfig; join ' ', PkgConfig->find('lapack')->get_ldflags} ||
18
                    eval {require ExtUtils::PkgConfig; ExtUtils::PkgConfig->libs('lapack')} ||
19
                    `pkg-config lapack blas --libs` ||
20
                    '-L/usr/lib/atlas -llapack -lblas -latlas' ) . " -lgfortran";
21
22
$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';
16
$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/;

23
24
WriteMakefile(
17
WriteMakefile(

25
    %hash,
18
    %hash,

26
  'VERSION_FROM' => 'complex.pd',
19
  VERSION => 0.03,
27
);
20
);

28
21
29
# Add genpp rule
22
# Add genpp rule

30
# add other makefile additions as required (see also ExtUtils::MakeMaker)
23
# add other makefile additions as required (see also ExtUtils::MakeMaker)

31
sub MY::postamble {
24
sub MY::postamble {

32
    pdlpp_postamble(@::pack);
25
    pdlpp_postamble(@::pack);

33
}
26
}

34
27