Build the benchmark in bench/gspn-ssp/ using makefiles

This commit is contained in:
Alexandre Duret-Lutz 2008-08-08 10:26:21 +02:00
parent b83349d416
commit 56d1dbc610
20 changed files with 8643 additions and 146 deletions

View file

@ -1,8 +1,10 @@
#!/bin/sh
for i in 3 4 5 6 8 ; do
sfx=$i
. ../common
. templates/common
PRS=`seq 1 $i | sed 's/^/pr/;s/$/,/' | tr -d '\n' | sed 's/,$//'`
sed "s/@PR@/$PRS/" "$name.def" > "$dst/$name$sfx.def"
sed "s/:.*//" < "$name.prop" | tr '\n' ' ' > "$dst/$name$sfx.ap"
echo " sed 's/@PR@/$PRS/' '\$(srcdir)/$name/$bname.def' > '$dst/$bname$sfx.def'" >>tmp$$
echo " sed 's/:.*//' '\$(srcdir)/$name/$bname.prop' | tr '\n' ' ' > '$dst/$bname$sfx.ap'" >>tmp$$
FILES="$FILES $name/$bname.def $name/$bname.prop"
finish
done

View file

@ -1,8 +1,10 @@
#!/bin/sh
for i in 2; do
sfx=$i
. ../common
. templates/common
X=`seq 1 $i | sed 's/^/x/;s/$/,/' | tr -d '\n' | sed 's/,$//'`
sed "s/@X@/$X/" "$name.def" > "$dst/$name$sfx.def"
sed "s/:.*//" < "$name.prop" | tr '\n' ' ' > "$dst/$name$sfx.ap"
echo " sed 's/@X@/$X/' '\$(srcdir)/$name/$bname.def' > '$dst/$bname$sfx.def'" >>tmp$$
echo " sed 's/:.*//' '\$(srcdir)/$name/$bname.prop' | tr '\n' ' ' > '$dst/$bname$sfx.ap'" >>tmp$$
FILES="$FILES $name/$bname.def $name/$bname.prop"
finish
done

View file

@ -1,7 +1,24 @@
name=$(basename $(pwd))
dst=../../models/$name$sfx
mkdir "$dst"
bname=$(basename $name)
dst=models/$bname$sfx
FILES=
for ext in con net prop; do
cp "$name".$ext "$dst/$name$sfx.$ext"
echo " cp '\$(srcdir)/$name/$bname.$ext' $dst/$bname$sfx.$ext" >>tmp$$
FILES="$FILES $name/$bname.$ext"
done
test -f "$name".gd && cp "$name".gd "$dst/$name$sfx.gd"
if test -f "$name/$bname.gd"; then
echo " cp '\$(srcdir)/$name/$bname.gd' $dst/$bname$sfx.gd" >>tmp$$
FILES="$FILES $name/$bname.gd"
fi
finish()
{
echo
echo "TEMPLATES +=$FILES $name/gen"
echo "MODELS += $dst/stamp"
echo "$dst/stamp:$FILES"
echo " mkdir -p '$dst'"
cat tmp$$
rm -f tmp$$
echo ' touch $@'
}

View file

@ -1,6 +1,7 @@
#!/bin/sh
rm -Rf ../models
mkdir ../models
for dir in predef WCSsym bagrodia s2j2t2 s2j3t2 s3j2t2; do
(cd $dir && ./gen)
echo '# This file is automatically generated by modelgen-create, do not edit.'
for dir in WCSsym bagrodia predef; do
export name=templates/$dir
$name/gen
done

View file

@ -1,9 +1,18 @@
#!/bin/sh
for i in 3 4 5 6 8; do
dst=../../models/WCSasym$i.rg
mkdir $dst
dst=models/WCSasym$i.rg
echo
echo "MODELS += $dst/stamp"
echo "$dst/stamp: $name/WCSasym$i.def $name/WCSasym$i.net $name/WCSasym$i.tobs"
echo " mkdir -p $dst"
for e in def net tobs; do
cp WCSasym$i.$e $dst/WCSasym$i.rg.$e
echo " cp '\$(srcdir)/$name/WCSasym$i.$e' '$dst/WCSasym$i.rg.$e'"
S="$S $name/WCSasym$i.$e"
done
echo 'P1 P2 P3 P4 P5 P6 P7 P8' > $dst/WCSasym$i.rg.ap
echo " echo 'P1 P2 P3 P4 P5 P6 P7 P8' > $dst/WCSasym$i.rg.ap"
echo ' touch $@'
done
echo
echo "TEMPLATES +=$S $name/gen"