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