#!/usr/bin/perl -w # -*- perl -*- # # $Id: Makefile.PL,v 1.4 2004/12/12 20:32:49 eserte Exp $ # Author: Slaven Rezic # # Copyright (C) 2001,2004 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 ExtUtils::MakeMaker; use Config; use Cwd; my $thisdir = getcwd(); chdir("../.."); my $root = getcwd(); chdir($thisdir); my $inlinedistpm = "InlineDist.pm"; my $inlinepm = "Inline.pm"; if (! -e $inlinedistpm) { open(FH, ">> $inlinedistpm") or die $!; close FH; utime 0,0, $inlinedistpm; } WriteMakefile ( 'NAME' => 'VectorUtil::Inline', 'VERSION_FROM' => 'Inline.pm', 'AUTHOR' => 'Slaven Rezic (slaven@rezic.de)', 'CCFLAGS' => "$Config{ccflags} -ffast-math -fomit-frame-pointer", ); sub MY::install { my $rule = ""; if ($] >= 5.006) { $rule .= <