-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (40 loc) · 2.32 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: emcnab <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/04/06 14:08:48 by emcnab #+# #+# #
# Updated: 2023/10/25 16:24:28 by marvin ### ########.fr #
# #
# **************************************************************************** #
DOCKER = docker run --rm -v .:/app trantorian/criterion:2.4.2.v
VALGRIND = valgrind --trace-children=yes --leak-check=full --show-leak-kinds=all
CORES = $(($(nproc) + 1))
# **************************************************************************** #
# COMPILATIONS TASKS #
# **************************************************************************** #
all: final
fclean: fclean_debug fclean_test fclean_final
# **************************************************************************** #
# FINAL TASK #
# **************************************************************************** #
final:
@echo "$(BOLD)$(BLUE)[ Building in Final Mode ]$(RESET)"
@make -j$(CORES) --silent --file=./build/build_final.mf
clean_final:
@echo "$(BOLD)$(BLUE)[ Removing all Final objects ]$(RESET)"
@make clean --silent --file=./build/build_final.mf
fclean_final:
@echo "$(BOLD)$(BLUE)[ Removing all Final files ]$(RESET)"
@make fclean --silent --file=./build/build_final.mf
re_final:
@echo "$(BOLD)$(BLUE)[ Rebuilding Final binary ]$(RESET)"
@make fclean --silent --file=./build/build_final.mf
@make final
-include ./build/colors.mf
.PHONY: all fclean \
debug clean_debug fclean_debug re_debug \
test test_verbose clean_test fclean_test re_test \
final clean_final fclean_final re_final