2015-06-03 12:47:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd lib
|
2015-06-03 13:07:00 +01:00
|
|
|
|
2015-06-03 12:47:46 +01:00
|
|
|
HFILES=`find . -type f -name '*.h'`
|
|
|
|
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
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd tests
|
|
|
|
|
|
|
|
echo> Make.inc
|
|
|
|
TESTS=`ls T*.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-03 12:47:46 +01:00
|
|
|
cd ..
|
2015-06-03 13:07:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
cd benchmarks
|
|
|
|
|
|
|
|
|
|
|
|
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 ..
|