annotate PsiCLASS-1.0.2/samtools-0.1.19/bcftools/Makefile @ 0:903fc43d6227 draft default tip

Uploaded
author lsong10
date Fri, 26 Mar 2021 16:52:45 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
1 CC= gcc
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
2 CFLAGS= -g -Wall -O2 #-m64 #-arch ppc
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
3 DFLAGS= -D_FILE_OFFSET_BITS=64 -D_USE_KNETFILE
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
4 LOBJS= bcf.o vcf.o bcfutils.o prob1.o em.o kfunc.o kmin.o index.o fet.o mut.o bcf2qcall.o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
5 OMISC= ..
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
6 AOBJS= call1.o main.o $(OMISC)/kstring.o $(OMISC)/bgzf.o $(OMISC)/knetfile.o $(OMISC)/bedidx.o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
7 PROG= bcftools
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
8 INCLUDES=
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
9 SUBDIRS= .
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
10
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
11 .SUFFIXES:.c .o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
12
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
13 .c.o:
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
14 $(CC) -c $(CFLAGS) $(DFLAGS) -I.. $(INCLUDES) $< -o $@
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
15
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
16 all-recur lib-recur clean-recur cleanlocal-recur install-recur:
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
17 @target=`echo $@ | sed s/-recur//`; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
18 wdir=`pwd`; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
19 list='$(SUBDIRS)'; for subdir in $$list; do \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
20 cd $$subdir; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
21 $(MAKE) CC="$(CC)" DFLAGS="$(DFLAGS)" CFLAGS="$(CFLAGS)" \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
22 INCLUDES="$(INCLUDES)" LIBPATH="$(LIBPATH)" $$target || exit 1; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
23 cd $$wdir; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
24 done;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
25
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
26 all:$(PROG)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
27
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
28 lib:libbcf.a
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
29
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
30 libbcf.a:$(LOBJS)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
31 $(AR) -csru $@ $(LOBJS)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
32
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
33 bcftools:lib $(AOBJS)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
34 $(CC) $(CFLAGS) -o $@ $(AOBJS) -L. $(LIBPATH) -lbcf -lm -lz -lpthread
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
35
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
36 bcf.o:bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
37 vcf.o:bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
38 index.o:bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
39 bcfutils.o:bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
40 prob1.o:prob1.h bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
41 call1.o:prob1.h bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
42 bcf2qcall.o:bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
43 main.o:bcf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
44
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
45 bcf.pdf:bcf.tex
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
46 pdflatex bcf
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
47
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
48 cleanlocal:
903fc43d6227 Uploaded
lsong10
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*
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
50
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
51 clean:cleanlocal-recur