comparison tomsfastmath/gen.pl @ 643:a362b62d38b2 dropbear-tfm

Add tomsfastmath from git rev bfa4582842bc3bab42e4be4aed5703437049502a with Makefile.in renamed
author Matt Johnston <matt@ucc.asn.au>
date Wed, 23 Nov 2011 18:10:20 +0700
parents
children
comparison
equal deleted inserted replaced
642:33fd2f3499d2 643:a362b62d38b2
1 #!/usr/bin/perl -w
2 #
3 # Generates a "single file" you can use to quickly
4 # add the whole source without any makefile troubles
5 #
6 use strict;
7
8 open( OUT, ">mpi.c" ) or die "Couldn't open mpi.c for writing: $!";
9 foreach my $filename (glob "*fp_*.c") {
10 next if ($filename eq "fp_sqr_comba_generic.c");
11 open( SRC, "<$filename" ) or die "Couldn't open $filename for reading: $!";
12 print OUT "/* Start: $filename */\n";
13 print OUT while <SRC>;
14 print OUT "\n/* End: $filename */\n\n";
15 close SRC or die "Error closing $filename after reading: $!";
16 }
17 print OUT "\n/* EOF */\n";
18 close OUT or die "Error closing mpi.c after writing: $!";