-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (52 loc) · 2.17 KB
/
Makefile
File metadata and controls
54 lines (52 loc) · 2.17 KB
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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: yuikim <yuikim@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/09/09 20:34:46 by sangwoki #+# #+# #
# Updated: 2024/03/03 22:12:39 by yuikim ### ########.fr #
# #
# **************************************************************************** #
NAME = webserv
SRCS = TestBeanMain.cpp server/setting/ConfigFunctions.cpp server/setting/ConfigParser.cpp server/setting/Location.cpp server/setting/Server.cpp server/ServerConfiguration.cpp server/WebServer.cpp \
server/Event.cpp server/StringUtils.cpp server/SocketUtils.cpp \
HttpRequest/HttpRequestFactory.cpp \
HttpRequest/HttpRequest.cpp \
HttpRequest/HttpRequestParser.cpp \
HttpRequest/RequestLine.cpp \
HttpRequest/HttpHeaders.cpp \
HttpRequest/RequestParams.cpp \
HttpRequest/RequestUtility.cpp \
HttpRequest/HttpRequestHandler.cpp \
controllers/Controller.cpp \
controllers/ControllerMapping.cpp \
Controllers/DefaultController.cpp \
Controllers/MyController.cpp \
Controllers/ChildProcess.cpp \
ResponseHandler/FrontController.cpp \
ResponseHandler/HttpResponse.cpp \
ResponseHandler/MultiRequest.cpp \
ResponseConfig.cpp \
Bean/Bean.cpp \
Bean/BeanFactory.cpp \
Bean/HttpHandler.cpp \
Bean/ReadEventBean.cpp \
Bean/RecvEventBean.cpp \
Bean/SendEventBean.cpp \
Bean/WriteEventBean.cpp
OBJS = $(SRCS:.cpp=.o)
CXX = c++
CXXFLAGS = -Werror -std=c++98
all : $(NAME)
$(NAME) : $(OBJS)
$(CXX) $(CXXFLAGS) -o $(NAME) $(OBJS)
%.o : %.cpp
$(CXX) $(CXXFLAGS) -c $^ -o $@
clean :
rm -f $(OBJS)
fclean : clean
rm -f $(NAME)
re : fclean all
.PHONY: all clean fclean re