0
|
1 CC = gcc
|
|
2 COPT = -O2
|
|
3 CWARN = -W -Wall
|
|
4 CFLAGS = $(COPT) $(CWARN)
|
|
5 INSTALL_DIR = ../bin
|
|
6
|
|
7 TARGETS = admix_prep coords2admix coverage dist_mat dpmix eval2pct \
|
|
8 Fst_ave Fst_column pop sweep
|
|
9
|
|
10 all: $(TARGETS)
|
|
11
|
|
12 install: $(TARGETS)
|
|
13 if [ ! -d "$(INSTALL_DIR)" ]; then mkdir -p "$(INSTALL_DIR)"; fi
|
|
14 cp $(TARGETS) $(INSTALL_DIR)
|
|
15
|
|
16 admix_prep: admix_prep.c lib.c
|
|
17 $(CC) $(CFLAGS) $^ -o $@
|
|
18
|
|
19 coords2admix: coords2admix.c lib.c
|
|
20 $(CC) $(CFLAGS) $^ -o $@
|
|
21
|
|
22 coverage: coverage.c lib.c
|
|
23 $(CC) $(CFLAGS) $^ -o $@
|
|
24
|
|
25 dist_mat: dist_mat.c lib.c
|
|
26 $(CC) $(CFLAGS) $^ -o $@
|
|
27
|
|
28 dpmix: dpmix.c lib.c
|
|
29 $(CC) $(CFLAGS) $^ -o $@
|
|
30
|
|
31 eval2pct: eval2pct.c lib.c
|
|
32 $(CC) $(CFLAGS) $^ -o $@
|
|
33
|
|
34 Fst_ave: Fst_ave.c Fst_lib.c lib.c
|
|
35 $(CC) $(CFLAGS) $^ -o $@
|
|
36
|
|
37 Fst_column: Fst_column.c Fst_lib.c lib.c
|
|
38 $(CC) $(CFLAGS) $^ -o $@
|
|
39
|
|
40 pop: pop.c lib.c
|
|
41 $(CC) $(CFLAGS) $^ -o $@
|
|
42
|
|
43 sweep: sweep.c lib.c Huang.c
|
|
44 $(CC) $(CFLAGS) $^ -o $@
|
|
45
|
|
46 .PHONY: clean
|
|
47
|
|
48 clean:
|
|
49 rm -f $(TARGETS)
|