-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 1.23 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: grial <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/09/10 17:57:09 by grial #+# #+# #
# Updated: 2024/10/02 17:22:03 by grial ### ########.fr #
# #
# **************************************************************************** #
NAME = philo
SRC = main.c create_program.c run_program.c routines.c arguments.c monitor.c exit.c utils.c print_status.c forks.c
OBJS = ${SRC:.c=.o}
CC = cc
CFLAGS = -Wall -Wextra -Werror
all: ${NAME}
$(NAME): $(OBJS)
$(CC) $(OBJS) -o $(NAME) -lpthread
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all