forked from DReichLab/adna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 877 Bytes
/
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
CC=gcc
CFLAGS=-g -Wall -O2 -Wno-unused-function
PROG=adna-trim adna-ldup
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $< -o $@
all:$(PROG)
adna-trim:kthread.o trim.o
$(CC) $(CFLAGS) $^ -o $@ -lz -lm -lpthread
adna-ldup:ldup.o bgzf.o hts.o sam.o
$(CC) $(CFLAGS) $^ -o $@ -lz -lm -lpthread
bgzf.o:bgzf.c bgzf.h khash.h
$(CC) -c $(CFLAGS) $(DFLAGS) -DBGZF_MT $(INCLUDES) bgzf.c -o $@
ldup.o:ldup.c sam.h bgzf.h hts.h kdq.h khash.h
$(CC) -c $(CFLAGS) $(DFLAGS) -DBGZF_MT $(INCLUDES) ldup.c -o $@
clean:
rm -fr gmon.out *.o ext/*.o a.out *~ *.a *.dSYM session* $(PROG)
depend:
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(DFLAGS) -- *.c)
# DO NOT DELETE
bgzf.o: bgzf.h
hts.o: bgzf.h hts.h kseq.h khash.h ksort.h
ldup.o: sam.h bgzf.h hts.h kdq.h khash.h
sam.o: sam.h bgzf.h hts.h khash.h kseq.h kstring.h
trim.o: kvec.h kstring.h khash.h kseq.h