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 ..
|
|
|
|
|
2015-12-10 22:55:00 +00:00
|
|
|
cd tests
|
2015-06-03 13:07:00 +01:00
|
|
|
|
2015-12-10 22:55:00 +00:00
|
|
|
echo> Make.inc
|
|
|
|
TESTS=`ls T*.cc`
|
|
|
|
TESTLIST=`echo ${TESTS} | sed s/.cc//g `
|
2015-06-03 13:07:00 +01:00
|
|
|
|
2015-12-10 22:55:00 +00:00
|
|
|
echo > Make.inc
|
2016-05-01 19:18:25 +01:00
|
|
|
echo bin_PROGRAMS += ${TESTLIST} | sed s/Test_zmm//g >> Make.inc
|
2015-12-10 22:55:00 +00: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
|
|
|
|
|
|
|
|
cd qdpxx
|
2015-06-03 13:07:00 +01:00
|
|
|
|
|
|
|
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-12-10 22:55:00 +00: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 ..
|