-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 1.15 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ttavares <ttavares@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/04/01 19:49:40 by ttavares #+# #+# #
# Updated: 2023/05/24 11:17:50 by ttavares ### ########.fr #
# #
# **************************************************************************** #
CC = cc -Wall -Wextra -Werror
RM = rm -f
TH = -fsanitize=thread
SRC = main.c philo.c check_args.c init.c utils.c
OBJS = $(SRC:.c=.o)
NAME = philo
all: $(NAME)
$(NAME): $(OBJS)
$(CC) -pthread $(OBJS) -o $(NAME)
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all