-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (36 loc) · 1.43 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: nmattera <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/02 09:45:23 by nmattera #+# #+# #
# Updated: 2022/09/26 16:48:11 by nmattera ### ########.fr #
# #
# **************************************************************************** #
NAME = philo
SRC = src/main.c\
src/philo_parsing.c\
src/philo_end.c\
src/philo_utils.c\
src/philo_time.c\
src/philo_init.c\
src/philo_solo.c
OBJS = ${SRC:.c=.o}
CC = gcc
CFLAGS = -Wall -Wextra -Werror -pthread -fsanitize=thread -g
INCLUDES = -I includes
.c.o:
@${CC} ${CFLAGS} ${INCLUDES} -c -o $@ $<
all: ${NAME}
${NAME}: ${OBJS}
@$(CC) $(CFLAGS) ${OBJS} ${INCLUDES} -o ${NAME}
@echo "Philo compiled!\n"
clean:
@rm -f ${OBJS}
fclean: clean
@rm -f $(NAME)
@echo "Deleting EVERYTHING!"
re: fclean all
.PHONY: all clean fclean re