forked from VictorHarri-Chal/The-Plazza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 842 Bytes
/
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
##
## EPITECH PROJECT, 2022
## theplazza
## File description:
## Makefile
##
SRC = src/Main.cpp \
src/Exceptions/Exceptions.cpp \
src/Parsers/ArgsParser.cpp \
src/Parsers/PromptParser.cpp \
src/MessageQueue/MessageQueue.cpp \
src/Kitchens.cpp \
src/Mutex.cpp \
src/Reception.cpp \
src/Log/Log.cpp \
src/Globals.cpp \
src/Pizzas.cpp \
OBJ = $(SRC:.cpp=.o)
NAME = plazza
CC = g++
RM = rm -f
FLAGS = -Wall -Wextra -Werror -pthread -std=c++20
%.o : %.cpp
$(CC) -o $@ $(FLAGS) -c $<
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(FLAGS) -o $(NAME) $(OBJ)
$(RM) $(OBJ)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re