1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00
Grid/scripts/filelist

61 lines
1.0 KiB
Plaintext
Raw Normal View History

#!/bin/bash
2016-07-07 22:31:07 +01:00
home=`pwd`
cd $home/lib
HFILES=`find . -type f -name '*.h' -not -path '*/Old/*' -not -path '*/Eigen/*'`
HFILES="$HFILES"
CCFILES=`find . -type f -name '*.cc' -not -name '*ommunicator*.cc'`
echo> Make.inc
echo HFILES=$HFILES >> Make.inc
echo >> Make.inc
echo CCFILES=$CCFILES >> Make.inc
2016-07-07 22:31:07 +01:00
cd $home/tests
2016-07-07 22:31:07 +01:00
dirs=`find . -type d `
2016-07-07 22:31:07 +01:00
for subdir in $dirs
do
2016-07-07 22:31:07 +01:00
cd $home/tests/$subdir
TESTS=`ls T*.cc`
TESTLIST=`echo ${TESTS} | sed s/.cc//g `
echo noinst_PROGRAMS = > Make.inc
echo noinst_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
2016-07-07 22:31:07 +01:00
done
2016-07-07 22:31:07 +01:00
cd $home/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
cd ..