| 1 |
TOP=.. |
| 2 |
include ${TOP}/Makefile.defs |
| 3 |
|
| 4 |
PROG=bio-eg |
| 5 |
|
| 6 |
# filtering causes this example to fail... |
| 7 |
FILTER = --filter |
| 8 |
FILTER = |
| 9 |
|
| 10 |
.hi.o : |
| 11 |
@ dummy |
| 12 |
|
| 13 |
${PROG} : Bio.o Main.lhs |
| 14 |
${GHC} -cpp -fglasgow-exts -o ${PROG} --make Main.lhs |
| 15 |
|
| 16 |
BioData.hs Bio.hs : Bio.y |
| 17 |
${HAPPY} --info --glr --ghc ${FILTER} $< |
| 18 |
|
| 19 |
Bio.o : Bio.hs BioData.hi |
| 20 |
${GHC} -cpp -fglasgow-exts -O2 -c Bio.hs |
| 21 |
|
| 22 |
DATA_FLAGS = -funfolding-use-threshold0 -fno-strictness |
| 23 |
BioData.hi BioData.o : BioData.hs |
| 24 |
@echo "Making BioData.hs WITHOUT optimisation (for speed)" |
| 25 |
${GHC} -cpp -fglasgow-exts ${DATA_FLAGS} -c $< |
| 26 |
|
| 27 |
run : run12 |
| 28 |
|
| 29 |
run6 : ${PROG} |
| 30 |
./${PROG} +RTS -s -K5M -RTS `cat 1-600.dna` |
| 31 |
|
| 32 |
run12 : ${PROG} |
| 33 |
rm -f out.1200 |
| 34 |
./${PROG} +RTS -s -K15M -RTS `cat 1-1200.dna` > out.1200 2>&1 |
| 35 |
echo Expect NINE matches, got `grep '^[(,0-9]*G_Match' out.1200 | wc -l` |
| 36 |
|
| 37 |
clean : |
| 38 |
rm -rf ${PROG} Bio.info Bio.hs BioData.hs *.o *.hi out.daVinci \ |
| 39 |
out.1200 out.600 |