forked from lh3/treebest
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
37 lines (27 loc) · 836 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
CC= gcc
CFLAGS= -g -O2 -Wall
DFLAGS= #-DUSE_KR_ALLOC
LIBOBJS= aa2nt.o aa2nt_local.o transaln.o \
splice.o splice_local.o splice_bound.o \
common_align.o \
seq.o table.o align.o \
pwalign.o
EXEOBJS= pwalign_main.o ../common/getopt.o ../common/mem.o
SMEXEOBJS= make_matrix.o
INCLUDES= -I..
.SUFFIXES:.c .o
.c.o:
$(CC) -c $(CFLAGS) $(DFLAGS) $< -o $@ $(INCLUDES) -I..
all:pwalign
lib:libalign.a
install:
libalign.a:$(LIBOBJS)
$(AR) -cru $@ $(LIBOBJS)
pwalign:libalign.a $(EXEOBJS)
$(CC) $(CFLAGS) $(DFLAGS) $(EXEOBJS) -L. -lalign -o $@
make_matrix.o:gen_nt_sm.c
$(CC) -c $(CFLAGS) $(DFLAGS) -DALN_MATRIX_DEBUG gen_nt_sm.c -o $@ $(INCLUDES)
make_matrix: $(SMEXEOBJS)
$(CC) $(CFLAGS) $(DFLAGS) $(SMEXEOBJS) -o $@ -lm $(INCLUDES)
clean:
rm -f *.o common/*.o libalign.a pwalign gmon.out a.out make_matrix