-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (42 loc) · 1.01 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
NAME = webserv
CXX = c++
CXXFLAGS = -Wall -Werror -Wextra -std=c++98
SRCS = config/Server.cpp \
config/Location.cpp \
config/ConfigParser.cpp \
utils/StatusException.cpp \
utils/Config.cpp \
utils/Util.cpp \
core/Kqueue.cpp \
core/Event.cpp \
core/Socket.cpp \
server/Connection.cpp \
server/ServerManager.cpp \
server/EventLoop.cpp \
http/Request.cpp \
http/RequestParser.cpp \
http/Response.cpp \
http/AResponseBuilder.cpp \
http/ErrorBuilder.cpp \
http/StaticFileBuilder.cpp \
http/AutoindexBuilder.cpp \
http/RedirectBuilder.cpp \
http/CgiBuilder.cpp \
http/DeleteBuilder.cpp \
http/BuilderSelector.cpp \
main.cpp
OBJS = $(SRCS:%.cpp=%.o)
all : $(NAME)
$(NAME) : $(OBJS)
$(CXX) $(CXXFLAGS) -o $(NAME) $(OBJS)
%.o : %.cpp
$(CXX) $(CXXFLAGS) -c $^ -I./ -o $@
clean :
rm -f $(OBJS)
fclean :
make clean
rm -f $(NAME)
re :
make fclean
make all
.PHONY : all clean fclean re