forked from lh3/kmer-cnt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 888 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
35
36
37
CFLAGS=-g -Wall -O2
CXXFLAGS=$(CFLAGS) -std=c++11
LIBS=-lz
PROG=kc-c1 kc-c2 kc-c3 kc-c4 kc-cpp1 kc-cpp2 yak-count
ifneq ($(asan),)
CFLAGS+=-fsanitize=address
LIBS+=-fsanitize=address
endif
.PHONY:all clean
all:$(PROG)
kc-c1:kc-c1.c khashl.h ketopt.h kseq.h
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
kc-c2:kc-c2.c khashl.h ketopt.h kseq.h
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
kc-c3:kc-c3.c khashl.h ketopt.h kseq.h kthread.h
$(CC) $(CFLAGS) -o $@ kc-c3.c kthread.c $(LIBS) -lpthread
kc-c4:kc-c4.c khashl.h ketopt.h kseq.h kthread.h
$(CC) $(CFLAGS) -o $@ kc-c4.c kthread.c $(LIBS) -lpthread
yak-count:yak-count.c khashl.h ketopt.h kseq.h kthread.h
$(CC) $(CFLAGS) -o $@ yak-count.c kthread.c $(LIBS) -lpthread
kc-cpp1:kc-cpp1.cpp ketopt.h
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
kc-cpp2:kc-cpp2.cpp ketopt.h robin_hood.h
$(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
clean:
rm -fr *.dSYM $(PROG)