-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (32 loc) · 1016 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
# =================================================
# Variables
# =================================================
path_bin = ./bin
source_path = ./src/source
graph_path = ./src/graph_instances
compile_flags = g++ -g -ggdb -Wall -Weffc++ -Wextra -Werror -o2 -std=c++2a -fopenmp
# =================================================
# Execution parameters
# =================================================
# valgrind
ifeq (${v}, 1)
exe_command = valgrind --leak-check=full
endif
# time
ifeq (${t}, 1)
exe_command += time
endif
# =================================================
# Target
# =================================================
all: clean source
source: ${source_path}/*.cpp
$(info ******************* Compiling *******************)
$(info *************************************************)
@${compile_flags} ${source_path}/*.cpp -o ${path_bin}/exe
@clear
run:
@${exe_command} ${path_bin}/exe ${inst} ${config} ${exec_num}
clean:
@clear
@rm -rf ${path_bin}/*exe