annotate pyPRADA_1.2/tools/bwa-0.5.7-mh/Makefile @ 3:f17965495ec9 draft default tip

Uploaded
author siyuan
date Tue, 11 Mar 2014 12:14:01 -0400
parents acc2ca1a3ba4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
1 CC= gcc
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
2 CXX= g++
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
3 CFLAGS= -g -Wall -O2 -m64
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
4 CXXFLAGS= $(CFLAGS)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
5 DFLAGS= -DHAVE_PTHREAD #-D_FILE_OFFSET_BITS=64
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
6 OBJS= utils.o bwt.o bwtio.o bwtaln.o bwtgap.o is.o \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
7 bntseq.o bwtmisc.o bwtindex.o stdaln.o simple_dp.o \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
8 bwaseqio.o bwase.o bwape.o kstring.o cs2nt.o \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
9 bwtsw2_core.o bwtsw2_main.o bwtsw2_aux.o bwt_lite.o \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
10 bwtsw2_chain.o
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
11 PROG= bwa
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
12 INCLUDES=
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
13 LIBS= -lm -lz -lpthread -Lbwt_gen -lbwtgen
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
14 SUBDIRS= . bwt_gen
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
15
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
16 .SUFFIXES:.c .o .cc
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
17
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
18 .c.o:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
19 $(CC) -c $(CFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
20 .cc.o:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
21 $(CXX) -c $(CXXFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
22
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
23 all:$(PROG)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
24
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
25 lib-recur all-recur clean-recur cleanlocal-recur install-recur:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
26 @target=`echo $@ | sed s/-recur//`; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
27 wdir=`pwd`; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
28 list='$(SUBDIRS)'; for subdir in $$list; do \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
29 cd $$subdir; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
30 $(MAKE) CC="$(CC)" CXX="$(CXX)" DFLAGS="$(DFLAGS)" CFLAGS="$(CFLAGS)" \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
31 INCLUDES="$(INCLUDES)" $$target || exit 1; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
32 cd $$wdir; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
33 done;
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
34
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
35 lib:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
36
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
37 bwa:lib-recur $(OBJS) main.o
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
38 $(CC) $(CFLAGS) $(DFLAGS) $(OBJS) main.o -o $@ $(LIBS)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
39
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
40 bwt.o:bwt.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
41 bwtio.o:bwt.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
42 bwtaln.o:bwt.h bwtaln.h kseq.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
43 bwt1away.o:bwt.h bwtaln.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
44 bwt2fmv.o:bwt.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
45 bntseq.o:bntseq.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
46 bwtgap.o:bwtgap.h bwtaln.h bwt.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
47
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
48 bwtsw2_core.o:bwtsw2.h bwt.h bwt_lite.h stdaln.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
49 bwtsw2_aux.o:bwtsw2.h bwt.h bwt_lite.h stdaln.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
50 bwtsw2_main.o:bwtsw2.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
51
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
52 cleanlocal:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
53 rm -f gmon.out *.o a.out $(PROG) *~ *.a
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
54
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
55 clean:cleanlocal-recur