-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 802 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 802 Bytes
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
lib_objs = buffer_manager.o file_manager.o
app : binary_search insertion merge_sort
binary_search : $(lib_objs) binary_search.o
g++ -std=c++11 -o binary_search $(lib_objs) binary_search.o
insertion : $(lib_objs) insertion.o
g++ -std=c++11 -o insertion $(lib_objs) insertion.o
merge_sort : $(lib_objs) merge_sort.o
g++ -std=c++11 -o merge_sort $(lib_objs) merge_sort.o
binary_search.o : binary_search.cpp
g++ -std=c++11 -c binary_search.cpp
insertion.o : insertion.cpp
g++ -std=c++11 -c insertion.cpp
merge_sort.o : merge_sort.cpp
g++ -std=c++11 -c merge_sort.cpp
buffer_manager.o : buffer_manager.cpp
g++ -std=c++11 -c buffer_manager.cpp
file_manager.o : file_manager.cpp
g++ -std=c++11 -c file_manager.cpp
clean :
rm -f *.o
rm -f binary_search insertion merge_sort