-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (41 loc) · 1.6 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
49
50
51
52
53
54
55
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: sriyani <sriyani@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/03/19 15:27:10 by mbadaoui #+# #+# #
# Updated: 2023/05/23 14:34:03 by sriyani ### ########.fr #
# #
# **************************************************************************** #
NAME = webserv
CPP = c++
CPPFLAGS = -std=c++98 -Wall -Werror -Wextra
SRC = main.cpp\
Server/Server.cpp \
Request-Response/Request.cpp \
Request-Response/get_method.cpp \
Request-Response/delete_method.cpp \
Request-Response/post_method.cpp \
Request-Response/Response.cpp \
Request-Response/method_checkers.cpp \
CGI/cgi.cpp\
Utils/ft_split.cpp \
Utils/utils_functions.cpp \
Parse/parsing.cpp \
HEADERS = Server/Server.hpp \
Request-Response/Request.hpp \
CGI/cgi.hpp \
Utils/utils.hpp \
Parse/parsing.hpp
OBJ = $(SRC:.cpp=.o)
all : $(NAME)
$(NAME): $(OBJ) $(HEADERS)
$(CPP) $(CPPFLAGS) $(SRC) -o $(NAME)
clean:
@/bin/rm -f $(OBJ)
fclean: clean
@/bin/rm -f $(NAME)
re : fclean all
.PHONY : all clean fclean re