-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (44 loc) · 1.13 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
########################################
##
## Makefile
## LINUX compilation
##
##############################################
#FLAGS
C++FLAG = -g -std=c++11 -Wall
#Math Library
MATH_LIBS = -lm
EXEC_DIR=.
#Rule for .cpp files
# .SUFFIXES : .cpp.o
.cc.o:
g++ $(C++FLAG) $(INCLUDES) -c $< -o $@
INCLUDES= -I.
LIBS_ALL = -L/usr/lib -L/usr/local/lib $(MATH_LIBS)
ALL_OBJ0=query_tree.o
PROGRAM_0=query_tree
$(PROGRAM_0): $(ALL_OBJ0)
g++ $(C++FLAG) -o $(EXEC_DIR)/$@ $(ALL_OBJ0) $(INCLUDES) $(LIBS_ALL)
ALL_OBJ1=test_tree.o
PROGRAM_1=test_tree
$(PROGRAM_1): $(ALL_OBJ1)
g++ $(C++FLAG) -o $(EXEC_DIR)/$@ $(ALL_OBJ1) $(INCLUDES) $(LIBS_ALL)
ALL_OBJ2=test_tree_mod.o
PROGRAM_2=test_tree_mod
$(PROGRAM_2): $(ALL_OBJ2)
g++ $(C++FLAG) -o $(EXEC_DIR)/$@ $(ALL_OBJ2) $(INCLUDES) $(LIBS_ALL)
#Compiling all
all:
make $(PROGRAM_0)
make $(PROGRAM_1)
make $(PROGRAM_2)
run1avl:
./$(PROGRAM_0) rebase210.txt
run2avl:
./$(PROGRAM_1) rebase210.txt sequences.txt
run2avl_mod:
./$(PROGRAM_2) rebase210.txt sequences.txt
#Clean obj files
clean:
(rm -f *.o; rm -f test_tree; rm -f query_tree; rm -f test_tree_mod)
(: