-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
62 lines (46 loc) · 1.57 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
CC= gcc
CFLAGS= -g -Wall -O2 -Wc++-compat -Wno-unused-function
CPPFLAGS=
OBJS= kexpr.o bgzf.o hts.o fmf.o vcf.o atomic.o bedidx.o pbwt.o bgt.o
INCLUDES=
LIBS= -L. -lbgt -lpthread -lz -lm
PROG= bgt
PROG_EXTRA= pbfview kexpr fmf
.SUFFIXES:.c .o
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $< -o $@
all:$(PROG)
extra:$(PROG_EXTRA)
libbgt.a:$(OBJS)
$(AR) -csru $@ $(OBJS)
bgt:libbgt.a main.o import.o view.o
$(CC) main.o import.o view.o -o $@ $(LIBS)
bgt-server:bgt-server.go libbgt.a
go build bgt-server.go
pbfview:pbfview.o pbwt.o
$(CC) $^ -o $@
kexpr:kexpr.c kexpr.h
$(CC) $(CFLAGS) -DKE_MAIN $< -o $@ -lm
fmf:fmf.c kexpr.o fmf.h
$(CC) $(CFLAGS) -DFMF_MAIN fmf.c kexpr.o -o $@ -lz -lm
fmf.o:fmf.c fmf.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) -DFMF_HAVE_HTS $< -o $@
bgzf.o:bgzf.c bgzf.h khash.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) -DBGZF_MT -DBGZF_CACHE $(INCLUDES) $< -o $@
clean:
rm -fr gmon.out *.o a.out *.dSYM *~ *.a *.so *.dylib $(PROG) $(PROG_EXTRA) pbwt.aux pbwt.pdf pbwt.log
depend:
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(DFLAGS) -- *.c)
# DO NOT DELETE
atomic.o: atomic.h vcf.h bgzf.h hts.h kstring.h ksort.h
bedidx.o: ksort.h kseq.h khash.h
bgt.o: bgt.h vcf.h bgzf.h hts.h kstring.h pbwt.h fmf.h kexpr.h khash.h
bgzf.o: bgzf.h
fmf.o: fmf.h kexpr.h kseq.h khash.h kstring.h
hts.o: bgzf.h hts.h kseq.h khash.h ksort.h
import.o: atomic.h vcf.h bgzf.h hts.h kstring.h pbwt.h
kexpr.o: kexpr.h
pbfview.o: pbwt.h
pbwt.o: pbwt.h ksort.h
vcf.o: kstring.h bgzf.h vcf.h hts.h khash.h kseq.h
view.o: bgt.h vcf.h bgzf.h hts.h kstring.h pbwt.h fmf.h kexpr.h