#!/usr/bin/perl -w # -*- perl -*- # # $Id: Makefile.PL,v 1.9 2004/12/12 20:33:01 eserte Exp $ # Author: Slaven Rezic # # Copyright (C) 2001 Slaven Rezic. All rights reserved. # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # # Mail: slaven@rezic.de # WWW: http://bbbike.sourceforge.net # use Inline::MakeMaker; use Config; use Cwd; my $thisdir = getcwd(); chdir("../.."); my $root = getcwd(); chdir($thisdir); # ***FILTER=1*** my $inlinedistpm = "InlineDist.pm"; my $inlinepm = "Inline.pm"; # ***FILTER=2*** #my $inlinedistpm = "Inline2Dist.pm"; #my $inlinepm = "Inline2.pm"; # ***FILTER=all*** if (! -e $inlinedistpm) { open(FH, ">> $inlinedistpm") or die $!; close FH; utime 0,0, $inlinedistpm; } WriteInlineMakefile ( # ***FILTER=1*** 'NAME' => 'Strassen::Inline', 'OBJECT' => 'heap$(OBJ_EXT)', # ***FILTER=2*** # 'NAME' => 'Strassen::Inline2', # #'OBJECT' => '../Strassen-Inline/heap$(OBJ_EXT)', # ***FILTER=all*** 'VERSION_FROM' => $inlinepm, 'AUTHOR' => 'Slaven Rezic (slaven@rezic.de)', 'CCFLAGS' => "$Config{ccflags} -ffast-math -fomit-frame-pointer", ); sub MY::install { my $rule = ""; if ($] >= 5.006) { $rule .= <