-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 888 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 888 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
32
33
34
35
36
37
38
39
40
41
42
CC = g++
FLAGS = -w -O3 -mavx2 #-fsanitize=leak
# TARGET = HashFuncsAnalyze
TARGET = HashTableOpt
SRC_DIR = ./Source
OBJ_DIR = ./Object
LIBS = ./Libs/List/Source/List.cpp
all: compile link run
# parse:
# cd ./Data
# make
# cd ../
compile:
@g++ $(FLAGS) -c $(SRC_DIR)/HashFunctions.cpp -o $(OBJ_DIR)/HashFunctions.o
@g++ $(FLAGS) -c $(SRC_DIR)/HashTable.cpp -o $(OBJ_DIR)/HashTable.o
@g++ $(FLAGS) -c $(LIBS) -o $(OBJ_DIR)/List.o
@g++ $(FLAGS) -c ./HashTableOpt.cpp -o $(OBJ_DIR)/HashTableOpt.o
@nasm -f elf64 -g $(SRC_DIR)/Crc32Hash.s -o $(OBJ_DIR)/Crc32Hash.o
link:
@g++ $(OBJ_DIR)/*.o -o ./$(TARGET)
run:
@./$(TARGET)
valgrind_check:
g++ $(SRC_DIR)/*.cpp $(LIBS) ./$(TARGET).cpp -g -O0 -o vgcheck
valgrind ./vgcheck
callgrind_check:
valgrind --tool=callgrind ./HashTableOpt
# kcachegrind callgrind.out
# mv callgrind.out ./Valgrind
clean:
rm ./$(TARGET)