Gimp/plug-ins/perl/Module/Makefile.PL

23 lines
536 B
Perl
Raw Normal View History

1999-04-14 12:49:43 -07:00
use ExtUtils::MakeMaker;
chomp ($_gccflags = qx<glib-config --cflags glib gmodule>);
chomp ($_gldflags = qx<glib-config --libs glib gmodule>);
do '../config.pl';
sub MY::postamble {
<<"EOF";
clean ::
test -f Makefile || mv -f Makefile.old Makefile
EOF
}
WriteMakefile(
'NAME' => 'Gimp::Module',
'VERSION_FROM' => '../Gimp.pm',
1999-05-05 14:41:05 -07:00
'INC' => "$INC1 $GIMP_INC_NOUI $_gccflags $CPPFLAGS $CFLAGS",
1999-04-14 12:49:43 -07:00
'macro' => \%cfg,
1999-05-05 14:41:05 -07:00
'DEFINE' => "$DEFINE1 $DEFS",
1999-04-14 12:49:43 -07:00
dynamic_lib => { OTHERLDFLAGS => "$LDFLAGS $LIBS $_gldflags" },
);