use ExtUtils::MakeMaker;
+my $libs = `../idzebra-config --libs`;
+my $flags = `../idzebra-config --cflags`;
WriteMakefile(
- 'NAME' => 'IDZebra',
- 'OBJECT' => 'IDZebra_wrap.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'
+ ;
+}
+
+