forked from lh3/ksw2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (47 loc) · 1.3 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
CC= gcc
CFLAGS= -g -Wall -Wextra -Wc++-compat -O2
CPPFLAGS= -DHAVE_KALLOC
INCLUDES= -I.
OBJS= ksw2_gg.o ksw2_gg2.o ksw2_gg2_sse.o ksw2_extz.o ksw2_extz2_sse.o \
ksw2_extd.o ksw2_extd2_sse.o ksw2_extf2_sse.o ksw2_exts2_sse.o ksw2_band_doubling.o
PROG= ksw2-test
LIBS= -lz
ifneq ($(gaba),) # gaba source code directory
CPPFLAGS += -DHAVE_GABA
INCLUDES += -I$(gaba)
LIBS_MORE += -L$(gaba)/build -lgaba
CFLAGS += -msse4
endif
ifneq ($(parasail),) # parasail install prefix
CPPFLAGS += -DHAVE_PARASAIL
INCLUDES += -I$(parasail)/include
LIBS_MORE += $(parasail)/lib/libparasail.a # don't link against the dynamic library
endif
ifeq ($(sse2),)
CFLAGS += -march=native
endif
ifneq ($(avx2),)
CFLAGS += -mavx2
endif
.SUFFIXES:.c .o
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $< -o $@
all:$(PROG)
ksw2-test:cli.o kalloc.o $(OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(LIBS_MORE) $(LIBS)
clean:
rm -fr gmon.out *.o a.out $(PROG) $(PROG_EXTRA) *~ *.a *.dSYM session*
depend:
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(DFLAGS) -- *.c)
# DO NOT DELETE
cli.o: ksw2.h kseq.h
kalloc.o: kalloc.h
ksw2_extd.o: ksw2.h
ksw2_extd2_sse.o: ksw2.h
ksw2_extf2_sse.o: ksw2.h
ksw2_extz.o: ksw2.h
ksw2_extz2_sse.o: ksw2.h
ksw2_gg.o: ksw2.h
ksw2_gg2.o: ksw2.h
ksw2_gg2_sse.o: ksw2.h
ksw2_band_doubling.o: ksw2.h