-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.PL
executable file
·42 lines (37 loc) · 1.27 KB
/
Makefile.PL
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
38
39
40
41
42
use ExtUtils::MakeMaker;
##{ $share_dir_code{preamble} || '' ##}
my $fxconnect_home = $ENV{FXCONNECT_HOME} || '.';
WriteMakefile(
NAME => 'Finance::FXCM::Simple',
VERSION_FROM => 'lib/Finance/FXCM/Simple.pm',
LIBS => ["-L$fxconnect_home/lib -lForexConnect -lfxmsg"],
DEFINE => '',
INC => "-I. -I$fxconnect_home/include",
OBJECT => '$(O_FILES)', # link all the C files too
'XSOPT' => '-C++',
'TYPEMAPS' => ['perlobject.map'],
'CC' => 'g++',
'LD' => '$(CC)',
'MYEXTLIB' => 'ForexConnectWrapper/libForexConnectWrapper$(LIB_EXT)',
'BUILD_REQUIRES' => {
'Test::More' => 0,
'Scalar::Util' => 0,
},
'PREREQ_PM' => {
'YAML::XS' => 0,
},
LICENSE => 'mit',
( $] >= 5.005 ?
( ABSTRACT_FROM => 'lib/Finance/FXCM/Simple.pm',
AUTHOR => 'João Costa <[email protected]>',
) : ()
),
##{ $plugin->get_prereqs ##}
);
sub MY::postamble {
'
$(MYEXTLIB): ForexConnectWrapper/Makefile
cd ForexConnectWrapper && $(MAKE) $(PASSTHRU)
';
}
##{ $share_dir_code{postamble} || '' ##}