-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
81 lines (54 loc) · 3.26 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
DEST_DIR = ~/bin
CFLAGS = -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing
CC = gcc
ALL = FAtoGDB GDBtoFA GDBstat GDBshow GIXmake GIXshow GIXrm GIXmv GIXcp FastGA ALNshow ALNtoPAF ALNtoPSL ALNreset ALNplot ALNchain ONEview
all: $(ALL)
libfastk.c: gene_core.c gene_core.h
libfastk.h: gene_core.h
GDB.c: gene_core.c gene_core.h
GDB.h: gene_core.h
FAtoGDB: FAtoGDB.c GDB.c GDB.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o FAtoGDB FAtoGDB.c GDB.c gene_core.c ONElib.c -lm -lz
GDBtoFA: GDBtoFA.c GDB.c GDB.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o GDBtoFA GDBtoFA.c GDB.c gene_core.c ONElib.c -lm -lz
GDBstat: GDBstat.c GDB.c GDB.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o GDBstat GDBstat.c GDB.c gene_core.c ONElib.c -lpthread -lm -lz
GDBshow: GDBshow.c GDB.h GDB.c select.c select.h hash.c hash.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o GDBshow GDBshow.c ONElib.c GDB.c select.c hash.c gene_core.c -lpthread -lm -lz
GIXmake: GIXmake.c MSDsort.c libfastk.c libfastk.h ONElib.c ONElib.h GDB.c GDB.h
$(CC) $(CFLAGS) -DLCPs -o GIXmake GIXmake.c MSDsort.c libfastk.c ONElib.c GDB.c gene_core.c -lpthread -lm -lz
GIXshow: GIXshow.c libfastk.c libfastk.h gene_core.c gene_core.h
$(CC) $(CFLAGS) -o GIXshow GIXshow.c libfastk.c gene_core.c -lpthread -lm
GIXrm: GIXrm.c gene_core.c gene_core.h
$(CC) $(CFLAGS) -o GIXrm GIXrm.c gene_core.c -lm
GIXmv: GIXxfer.c GDB.c GDB.h gene_core.c ONElib.c ONElib.h gene_core.h
$(CC) $(CFLAGS) -DMOVE -o GIXmv GIXxfer.c GDB.c ONElib.c gene_core.c -lm -lz
GIXcp: GIXxfer.c GDB.c GDB.h ONElib.c ONElib.h gene_core.c gene_core.h
$(CC) $(CFLAGS) -o GIXcp GIXxfer.c GDB.c ONElib.c gene_core.c -lm -lz
FastGA: FastGA.c libfastk.c libfastk.h GDB.c GDB.h RSDsort.c align.c align.h alncode.c alncode.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o FastGA FastGA.c RSDsort.c libfastk.c align.c GDB.c alncode.c gene_core.c ONElib.c -lpthread -lm -lz
ALNshow: ALNshow.c align.h align.c GDB.c GDB.h select.c select.h hash.c hash.h alncode.c alncode.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o ALNshow ALNshow.c align.c GDB.c alncode.c select.c hash.c gene_core.c ONElib.c -lpthread -lm -lz
ALNtoPAF: ALNtoPAF.c align.h align.c GDB.c GDB.h alncode.c alncode.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o ALNtoPAF ALNtoPAF.c align.c GDB.c alncode.c gene_core.c ONElib.c -lpthread -lm -lz
ALNtoPSL: ALNtoPSL.c align.h align.c GDB.c GDB.h alncode.c alncode.h ONElib.c ONElib.h
$(CC) $(CFLAGS) -o ALNtoPSL ALNtoPSL.c align.c GDB.c alncode.c gene_core.c ONElib.c -lpthread -lm -lz
ALNreset: ALNreset.c GDB.c GDB.h ONElib.c ONElib.h alncode.c alncode.h
$(CC) $(CFLAGS) -o ALNreset ALNreset.c GDB.c alncode.c gene_core.c ONElib.c -lpthread -lm -lz
ALNplot: ALNplot.c hash.c hash.h select.c select.h GDB.c GDB.h ONElib.c ONElib.h alncode.c alncode.h
$(CC) $(CFLAGS) -o ALNplot ALNplot.c GDB.c alncode.c select.c hash.c gene_core.c ONElib.c -lpthread -lm -lz
ALNchain: ALNchain.c GDB.c GDB.h ONElib.c ONElib.h alncode.c alncode.h
$(CC) $(CFLAGS) -o ALNchain ALNchain.c GDB.c alncode.c gene_core.c ONElib.c -lpthread -lm -lz
ONEview: ONEview.c ONElib.c ONElib.h
$(CC) $(CFLAGS) -o ONEview ONEview.c ONElib.c -lm -lz
clean:
rm -f $(ALL)
rm -fr *.dSYM
rm -f FastGA.tar.gz
install:
cp $(ALL) $(DEST_DIR)
package:
make clean
tar -zcf FastGA.tar.gz LICENSE README.md Makefile *.h *.c
deploy:
macdeployqt ALNview.app -dmg