-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (31 loc) · 869 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# makefile for phynder, developed on Richard's Mac.
#CFLAGS= -O3
CFLAGS= -g # for debugging
HTSDIR=../htslib
CPPFLAGS=-I$(HTSDIR)
HTSLIB=$(HTSDIR)/libhts.a
include $(HTSDIR)/htslib_static.mk
LDLIBS=$(HTSLIB) -lpthread $(HTSLIB_static_LIBS)
all: phynder
clean:
$(RM) -r phynder *.o *~ *test *.dSYM
install: phynder
cp phynder ~/bin
### header dependencies
UTILS_HEADERS=utils.h array.h hash.h dict.h
tree.h: $(UTILS_HEADERS)
newick.h: tree.h
vcf.h: $(UTILS_HEADERS)
### object files
UTILS_OBJS=dict.o array.o hash.o utils.o
$(UTILS_OBJS): utils.h $(UTILS_HEADERS)
tree.o: tree.h
newick.o: newick.h
vcf.o: vcf.h
ONElib.o: ONElib.h
### programs
phynder: phynder.c tree.o newick.o vcf.o ONElib.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(LDLIBS)
newick-test: newick.c tree.o $(UTILS_OBJS)
$(CC) -DTEST $(CFLAGS) $^ -o $@ $(LDLIBS)
### end of file