annotate pyPRADA_1.2/tools/samtools-0.1.16/bcftools/Makefile @ 0:acc2ca1a3ba4

Uploaded
author siyuan
date Thu, 20 Feb 2014 00:44:58 -0500
parents
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 CFLAGS= -g -Wall -O2 #-m64 #-arch ppc
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
3 DFLAGS= -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
4 LOBJS= bcf.o vcf.o bcfutils.o prob1.o em.o kfunc.o kmin.o index.o fet.o bcf2qcall.o
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
5 OMISC= ..
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
6 AOBJS= call1.o main.o $(OMISC)/kstring.o $(OMISC)/bgzf.o $(OMISC)/knetfile.o $(OMISC)/bedidx.o
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
7 PROG= bcftools
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
8 INCLUDES=
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
9 SUBDIRS= .
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
10
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
11 .SUFFIXES:.c .o
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
12
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
13 .c.o:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
14 $(CC) -c $(CFLAGS) $(DFLAGS) -I.. $(INCLUDES) $< -o $@
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
15
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
16 all-recur lib-recur clean-recur cleanlocal-recur install-recur:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
17 @target=`echo $@ | sed s/-recur//`; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
18 wdir=`pwd`; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
19 list='$(SUBDIRS)'; for subdir in $$list; do \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
20 cd $$subdir; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
21 $(MAKE) CC="$(CC)" DFLAGS="$(DFLAGS)" CFLAGS="$(CFLAGS)" \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
22 INCLUDES="$(INCLUDES)" LIBPATH="$(LIBPATH)" $$target || exit 1; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
23 cd $$wdir; \
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
24 done;
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
25
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
26 all:$(PROG)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
27
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
28 lib:libbcf.a
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
29
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
30 libbcf.a:$(LOBJS)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
31 $(AR) -cru $@ $(LOBJS)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
32
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
33 bcftools:lib $(AOBJS)
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
34 $(CC) $(CFLAGS) -o $@ $(AOBJS) -L. $(LIBPATH) -lbcf -lm -lz
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
35
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
36 bcf.o:bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
37 vcf.o:bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
38 index.o:bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
39 bcfutils.o:bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
40 prob1.o:prob1.h bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
41 call1.o:prob1.h bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
42 bcf2qcall.o:bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
43 main.o:bcf.h
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
44
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
45 bcf.pdf:bcf.tex
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
46 pdflatex bcf
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
47
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
48 cleanlocal:
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
49 rm -fr gmon.out *.o a.out *.dSYM $(PROG) *~ *.a bcf.aux bcf.log bcf.pdf *.class libbcf.*.dylib libbcf.so*
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
50
acc2ca1a3ba4 Uploaded
siyuan
parents:
diff changeset
51 clean:cleanlocal-recur