mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +00:00
77 lines
1.2 KiB
Bash
Executable File
77 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cd lib
|
|
|
|
HFILES=`find . -type f -name '*.h'`
|
|
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
|
|
|
|
cd ..
|
|
|
|
cd tests
|
|
|
|
echo> Make.inc
|
|
TESTS=`ls T*.cc`
|
|
TESTLIST=`echo ${TESTS} | sed s/.cc//g `
|
|
|
|
echo > Make.inc
|
|
echo bin_PROGRAMS += ${TESTLIST} | sed s/Test_zmm//g >> 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 qdpxx
|
|
|
|
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
|
|
|
|
cd ..
|
|
cd ..
|
|
|
|
|
|
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
|
|
|
|
cd ..
|