initial commit
[jalview.git] / forester / archive / RIO / others / hmmer / testsuite / Makefile.in
1 ################################################################
2 # Makefile for HMMER testsuite
3 # CVS $Id: Makefile.in,v 1.1.1.1 2005/03/22 08:34:49 cmzmasek Exp $
4 ##########
5 # HMMER - Biological sequence analysis with profile HMMs
6 # Copyright (C) 1992-1999 Washington University School of Medicine
7 # All Rights Reserved
8
9 #     This source code is distributed under the terms of the
10 #     GNU General Public License. See the files COPYING and LICENSE
11 #     for details.
12 ###########
13
14 CC        = @CC@
15 CFLAGS    = @CFLAGS@
16 MDEFS     = @MDEFS@ @DEFS@
17
18 # Configuration for optional pthreads multiprocessor support
19 #
20 PTHREAD_LIBS   = @PTHREAD_LIBS@
21 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
22
23 SHELL     = /bin/sh
24 MYLIBS    = -lhmmer -lsquid
25 LIBS      = @LIBS@ -lm
26
27 SHIVA = alignalign_test\
28         evd_test\
29         masks_test\
30         parsingviterbi_test\
31         tophits_test\
32         trace_test\
33         viterbi_exercise\
34         weeviterbi_test
35
36 #######
37 ## Targets defining how to make Shiva executables.
38 #######
39
40 .c.o:
41         $(CC) $(CFLAGS) $(PTHREAD_CFLAGS) $(MDEFS) -I../squid -I../src -c $<            
42
43 all:    $(SHIVA)
44
45 $(SHIVA): @EXEC_DEPENDENCY@
46         $(CC) $(CFLAGS) $(PTHREAD_CFLAGS) $(MDEFS) -o $@ -L../squid -L../src $@.o $(MYLIBS) $(PTHREAD_LIBS) $(LIBS)
47
48 #######
49 ## `make check` actually runs the tests.
50 #######
51
52 check: $(SHIVA)
53         @echo 
54         @echo Running compiled Shiva exercises:
55         @echo Warning: some tests may take several minutes to complete. 
56         @for shivatest in $(SHIVA); do\
57            if ./$$shivatest; then\
58               echo $$shivatest: ok;\
59            else\
60               echo $$shivatest: FAILED;\
61            fi;\
62         done
63         @echo
64         @echo Running scripted Shiva exercises:
65         @echo Warning: This also may take several minutes.
66         perl ./Optiontests.pl
67         sh ./Exercises.sh
68
69 #######
70 ## Miscellaneous
71 #######
72
73 clean:
74         -rm -f *.o *~ Makefile.bak core $(SHIVA) TAGS gmon.out
75
76 distclean:
77         make clean
78         -rm -f Makefile
79
80 TAGS:
81         etags -t *.c *.h Makefile.in
82
83