X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=perl%2FMakefile.PL.in;h=8d4eae166cc0b86d9cf110b00975b09d4d0d839b;hb=4cea1b9769079a2cdc143f4fe483e69d5b77a813;hp=08b600a0bf95f3af3f7b356fbf3fab76586b1500;hpb=af03c4a4f5320b52c7cc5f47bab7c9ad4b3e384d;p=idzebra-moved-to-github.git diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index 08b600a..8d4eae1 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -1,11 +1,25 @@ use ExtUtils::MakeMaker; +my $libs = `../idzebra-config --libs`; +my $flags = `../idzebra-config --cflags`; WriteMakefile( - 'NAME' => 'IDZebra', - 'OBJECT' => 'IDZebra_wrap.o zebra_api_ext.o zebra_perl.o' , - 'INC' => "-I../index -I../include @YAZINC@", - 'LIBS' => "-L../index -lzebra -L../data1 -ldata1 @ZPERL_LIBS@ @TCL_LIB@ @YAZLIB@", - 'OPTIMIZE' => '-g -O2' - + 'NAME' => 'IDZebra', + 'OBJECT' => 'IDZebra_wrap.o zebra_perl.o' , + 'INC' => $flags, + 'LIBS' => [$libs], + 'OPTIMIZE' => '-g', +# 'PREREQ_FATAL' => 1, + 'PREREQ_PM' => { + 'Scalar::Util' => '1.0', + 'Test::More' => '0.40', + } + ); +sub MY::postamble { +'IDZebra_wrap.c: IDZebra.i + ./doswig' + ; +} + +