2015-06-03 12:47:46 +01:00
|
|
|
#!/bin/bash
|
2015-06-03 13:07:00 +01:00
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
home=`pwd`
|
|
|
|
|
|
|
|
cd $home/lib
|
2016-07-30 17:53:18 +01:00
|
|
|
HFILES=`find . -type f -name '*.h' -not -path '*/Old/*' -not -path '*/Eigen/*'`
|
|
|
|
HFILES="$HFILES"
|
2015-06-03 12:47:46 +01:00
|
|
|
CCFILES=`find . -type f -name '*.cc' -not -name '*ommunicator*.cc'`
|
2015-06-03 13:07:00 +01:00
|
|
|
echo> Make.inc
|
|
|
|
echo HFILES=$HFILES >> Make.inc
|
2015-06-03 12:47:46 +01:00
|
|
|
echo >> Make.inc
|
|
|
|
echo CCFILES=$CCFILES >> Make.inc
|
2015-06-03 13:07:00 +01:00
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
cd $home/tests
|
2015-06-03 13:07:00 +01:00
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
dirs=`find . -type d `
|
2015-12-10 22:55:00 +00:00
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
for subdir in $dirs
|
2015-12-10 22:55:00 +00:00
|
|
|
do
|
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
cd $home/tests/$subdir
|
2015-06-03 13:07:00 +01:00
|
|
|
|
|
|
|
TESTS=`ls T*.cc`
|
|
|
|
TESTLIST=`echo ${TESTS} | sed s/.cc//g `
|
|
|
|
|
2016-07-30 17:53:18 +01:00
|
|
|
echo noinst_PROGRAMS = > Make.inc
|
|
|
|
echo noinst_PROGRAMS += ${TESTLIST} >> Make.inc
|
2015-06-03 13:07:00 +01:00
|
|
|
echo >> Make.inc
|
|
|
|
for f in $TESTS
|
|
|
|
do
|
|
|
|
BNAME=`basename $f .cc`
|
|
|
|
echo >> Make.inc
|
|
|
|
echo ${BNAME}_SOURCES=$f >> Make.inc
|
|
|
|
echo ${BNAME}_LDADD=-lGrid>> Make.inc
|
|
|
|
echo >> Make.inc
|
|
|
|
done
|
|
|
|
|
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
done
|
2015-06-03 13:07:00 +01:00
|
|
|
|
2016-07-07 22:31:07 +01:00
|
|
|
cd $home/benchmarks
|
2015-06-03 13:07:00 +01:00
|
|
|
|
|
|
|
echo> Make.inc
|
|
|
|
TESTS=`ls B*.cc`
|
|
|
|
TESTLIST=`echo ${TESTS} | sed s/.cc//g `
|
|
|
|
|
|
|
|
echo > Make.inc
|
|
|
|
echo bin_PROGRAMS = ${TESTLIST} >> Make.inc
|
|
|
|
echo >> Make.inc
|
|
|
|
|
|
|
|
for f in $TESTS
|
|
|
|
do
|
|
|
|
BNAME=`basename $f .cc`
|
|
|
|
echo >> Make.inc
|
|
|
|
echo ${BNAME}_SOURCES=$f >> Make.inc
|
|
|
|
echo ${BNAME}_LDADD=-lGrid>> Make.inc
|
|
|
|
echo >> Make.inc
|
|
|
|
done
|
2015-06-04 10:11:32 +01:00
|
|
|
|
|
|
|
cd ..
|