1 |
# File : Makefile.PL |
# File : Makefile.PL |
2 |
use ExtUtils::MakeMaker; |
use ExtUtils::MakeMaker; |
3 |
|
|
4 |
|
system 'swig -c++ -perl5 -o HyperEstraier_wrap.cpp ../HyperEstraier.i'; |
5 |
|
if ($?){ |
6 |
|
print "error while generating SWIG wrappers: $!\n"; |
7 |
|
exit; |
8 |
|
} |
9 |
|
|
10 |
WriteMakefile( |
WriteMakefile( |
11 |
NAME => 'HyperEstraier', |
NAME => 'HyperEstraier', |
12 |
LIBS => [sprintf('-lstdc++ %s %s' , `estconfig --libs`, `estconfig --mtlibs`)], |
INC => sprintf('%s', `pkg-config --cflags hyperestraier || estconfig --cflags`), |
13 |
|
LIBS => sprintf('-lstdc++ %s %s' , `pkg-config --libs hyperestraier || estconfig --libs`), |
14 |
OBJECT => 'HyperEstraierWrapper.o HyperEstraier_wrap.o' |
OBJECT => 'HyperEstraierWrapper.o HyperEstraier_wrap.o' |
15 |
); |
); |