-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 1.24 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: anarodri <anarodri@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/08/31 09:47:30 by anarodri #+# #+# #
# Updated: 2022/09/09 14:06:27 by anarodri ### ########.fr #
# #
# **************************************************************************** #
NAME = philo
CC = gcc
CFLAGS = -g -pthread
#CFLAGS = -Wall -Wextra -Werror -g -pthread
RM = rm -rf
SRC = $(addprefix src/, init.c main.c philoacts.c philocontrol.c timeutils.c utils.c)
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $@
clean:
@$(RM) $(OBJ)
fclean: clean
@$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re