Debian Codegraph @

src/sa-Makefile.in

raw
1 #################################################################
2 # Infernal
3 # src Makefile
4
5 SHELL = /bin/sh
6
7 ## your compiler and compiler flags
8 #
9 CC = @CC@
10 CFLAGS = @CFLAGS@
11
12 ## other defined flags.
13 # DEFS contains stuff that autoconf decides on.
14 # LIBS contains system libraries that the configure script decides we need.
15 #
16 DEFS = @DEFS@
17 LIBS = @LIBS@ -lm
18
19 ## archiving command, and ranlib command if you need one.
20 # In general, you shouldn't need to change these, and they're
21 # only used for building the testsuite anyway... e.g. we
22 # make a "libinfernal.a" library for building the testsuite.
23 #
24 AR = @AR@ rcv
25 RANLIB = @RANLIB@
26
27 # Where the build arena is (module .h and .o files)
28 #
29 MYLIBS = -leasel
30 MYLIBDIR = -L../../easel
31 MYINCDIR = -I../../easel
32
33 PROGS = cmalign cmbuild cmcalibrate cmemit cmscore cmsearch cmstat trcyk truncyk_check
34
35 OBJS = cm.o\
36 cm_dpalign.o\
37 cm_dpsearch.o\
38 cm_dpsmall.o\
39 cm_io.o\
40 cm_modelconfig.o\
41 cm_modelmaker.o\
42 cm_mx.o\
43 cm_parsetree.o\
44 cm_qdband.o\
45 cm_submodel.o\
46 cp9.o\
47 cp9_dp.o\
48 cp9_modelconfig.o\
49 cp9_modelmaker.o\
50 cp9_mx.o\
51 cp9_trace.o\
52 alphabet.o\
53 dispatch.o\
54 display.o\
55 eweight.o\
56 errors.o\
57 hmmband.o\
58 hybridsearch.o\
59 logsum.o\
60 mpisupport.o\
61 prior.o\
62 rnamat.o\
63 searchinfo.o\
64 seqstoaln.o\
65 stats.o\
66 truncyk.o
67
68 HDRS = funcs.h\
69 structs.h
70
71 .c.o:
72 $(CC) $(CFLAGS) $(DEFS) $(MYINCDIR) -c $<
73
74 #################################################################
75 ## Targets defining how to make INFERNAL executables.
76 ##
77 all: $(PROGS)
78
79 $(PROGS): % : %.o $(OBJS) ${HDRS}
80 $(CC) $(CFLAGS) $(DEFS) $(MYLIBDIR) -o $@ [email protected] $(OBJS) $(MYLIBS) $(LIBS) $(MPILIBS)
81
82
83 #################################################################
84 ## Targets used in making INFERNAL module for testsuite compilation.
85 ##
86 module: libinfernal.a
87
88 libinfernal.a: $(OBJS) ${HDRS}
89 $(AR) libinfernal.a $(OBJS)
90 $(RANLIB) libinfernal.a
91 chmod 644 libinfernal.a
92
93 #################################################################
94 ## Miscellaneous targets.
95 ##
96 clean:
97 -rm -f *.o *~ Makefile.bak core $(PROGS) TAGS gmon.out libinfernal.a
98
99 distclean:
100 -rm -f *.o *~ Makefile.bak core $(PROGS) TAGS gmon.out libinfernal.a
101 -rm -f Makefile config.h
102
103 TAGS:
104 etags -t *.c *.h Makefile.in
105
106
107 #################################################################
108 ## For building as a library with an SSU-ALIGN distribution.
109 ##
110 ssu: module
111 mv cmalign ssu-cmalign
112 mv cmbuild ssu-cmbuild
113 mv cmcalibrate ssu-cmcalibrate
114 mv cmemit ssu-cmemit
115 mv cmscore ssu-cmscore
116 mv cmsearch ssu-cmsearch
117 mv cmstat ssu-cmstat