-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (35 loc) · 1.51 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aamzil <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/13 15:29:46 by aamzil #+# #+# #
# Updated: 2021/11/13 15:29:47 by aamzil ### ########.fr #
# #
# **************************************************************************** #
NAME=philo
FLAGS=-Wall -Wextra -Werror
SRC = error_handling/error.c \
helper_functions/convert_to_milisec.c \
helper_functions/custom_isdigit.c \
helper_functions/custom_printf.c \
helper_functions/custom_usleep.c \
helper_functions/ft_atoi.c \
helper_functions/get_time_now.c \
helper_functions/watcher_helper_function.c \
init.c \
main.c \
parser/parser.c \
philosopher/philo.c \
philosopher/routines.c \
philosopher/start_threads.c \
all: $(NAME)
$(NAME): $(SRC)
gcc $(FLAGS) $(SRC) -o $(NAME)
clean:
rm -rf $(NAME)
fclean:
rm -rf $(NAME)
re: fclean all